Push buttons are the basic on-off switching buttons most commonly used in less to highly complex electronic devices. Push buttons can connect two points whenever they are pressed. The Push-button acts as a manually operated control device. When the button is pressed that means the short circuit is achieved between two points. On the other side when the button is not pressed then the open circuit or no connection develops between the points.
In this article, I will explain to you all the basics about the push button. A push-button is a simple control device but we can operate it with pull-up and pull-down resistors. I will explain how an LED can be operated using a push button with a pull-up and a pull-down resistor. I will also explain to you how a buzzer can be operated with the help of a push button. All these examples will help you to understand all the basics about the push button.
The push-button has four legs but we can use only two because of their internal structure. We can connect the push button directly with the VCC or 5-volt power supply. After that when we press it then the software will read it as HIGH until we change the state and perform the operation. But when the button is released after that system will get confused and does not able to recognize what is connected to the input.
As a result, the software will read HIGH or LOW values non-uniformly and assume some noise in this condition, due to which unexpected output will be observed. To avoid this situation it is necessary to connect pull-up or pull-down resistors with the push button.
How to operate LED using a push button (with an internal pull-up resistor):
How to operate LED by Push Button (with external pull-down resistor):How to operate the buzzer using a push-button with Arduino Uno:For more detail please visit:
https://arduinounomagic.com/how-to-operate-push-button-with-arduino/
Comments