Arduino LED control using Two Push buttons

36 Просмотры
A simple circuit to control an LED using two push buttons is built around the Arduino UNO board. When no button is pressed the LED stays off. When either of the two push buttons is pressed the LED turns on.

An extra red colour LED is connected between pin 13 and GND pin of UNO board for good visibility. Note: The pin 13 of Arduino UNO board has built-in resistor for limiting current to LED. So no need to connect a resistor in series with our red LED. Its safe!

The two push buttons are connected to pin 2 of UNO board such that when a button is pressed the pin reads HIGH (+5V) otherwise it reads LOW (0V).

For code, goto Arduino IDE, File→Examples→02.Digital→Button

#Arduino #UNO #ArduinoUNO #ArduinoIDE #LED #PushButton
For assignment1 of #InterfacingwithArduino on #Coursera.⚡
Комментариев нет.