How to use Button with Arduino

Опубликовано: 05 Июнь 2025
на канале: Bong Tech Guide
287
12

The pushbutton is a component that connects two points in a circuit when you press it. The example turns on an LED when you press the button. We connect three wires to the Arduino board. The first goes from one leg of the pushbutton through a pull-up resistor (here 1 KOhms) to the 5 volt supply. The second goes from the corresponding leg of the push button to ground. The third connects to a digital i/o pin (here pin 4) which reads the button's state. This is a small example of push-button, you can use this knowledge in a bigger project

//Coding//
Link:https://github.com/PabitraKumarGhorai...