Button Controlled LED

Aim

The goal of the activity is to connect an LED and a button to an Arduino board. The LED must be switched on or switched off, using the button.

Materials Required

1. Arduino UNO R3 – 1
2. USB Cable – 1
3. Breadboard – 1
4. LED – 1
5. 220Ω Resistors – 2
6. Push Button – 1

Wiring Diagram

Desired Outcome

Press the button, the LED must switch on. Press the button again and the LED must get switched off.