Two Way Switch

Aim

The goal of the activity is to demonstrate the use of a two-way switch operation using an LED and two buttons connected to an Arduino board. The LED can be switched on by one of the two buttons and be switched off by the other button.

Materials Required

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

Wiring Diagram

Desired Outcome

The LED can be switched on by using either of the buttons and switched off with the same or the other button. You may try the following actions:

• Switch on using the left button and switch off using the right button.
• Switch on using the right button and switch off using the left button.
• Switch on using the left button and switch off using the same left button.
• Switch on using the right button and switch off using the same right button.