Introduction: Lab Uno

This is a lab that utilizes two inputs (buttons) and two outputs (LED lights) to show how they work together. One button turns one LED off while the other button turns the other LED off while keeping the other light on.

Step 1: Step 1: Add a Green LED

1. Place a green LED into the breadboard
2. Connect one end of 220 Ω (ohm) resistor to the top lead (+), should be the longer lead, and the other end into Pin 13 on your Arduino Board.

3. Connect a Jumper Wire to the bottom lead (-) and to the grounded rail on the breadboard.

4. Connect a Jumper Wire from the grounded rail to the GND (ground) Pin on the Arduino.

Step 2: Step 2: Add a Blue LED

1. Place a blue LED into the breadboard
2. Connect one end of 220 Ω (ohm) resistor to the top lead (+), should be the longer lead, and the other end into Pin 12 on your Arduino Board.

3. Connect a Jumper Wire to the bottom lead (-) and to the grounded rail on the breadboard.

4. Connect a Jumper Wire from the grounded rail to the GND (ground) Pin on the Arduino.

Step 3: Step 3: Add a Push Button

1. Attach the push button to the breadboard by having it connect to the “E” and “F” columns.

2. Place a 10k Ω resistor to connect the right side of the button to the grounded rail.

3. Place a Jumper Wire to connect the right side of the button to the power rail.

4. Place a Jumper Wire to connect to pin 4 and the other side of it on the same line as the resistor is on.

Note:Make sure to add a Jumper Wire to connect it to the 5v and attach the other end to the positive rail.

Step 4: Step 4: Add a Second Push Button

1. Attach the push button to the breadboard by having it connect to the “E” and “F” columns.

2. Place a 10k Ω resistor to connect the right side of the button to the grounded rail.

3. Place a Jumper Wire to connect the right side of the button to the power rail.

4. Place a Jumper Wire to connect to pin 3 and the other side of it on the same line as the resistor is on.

Note: You no longer have to worry about the Jumper Wire connected to the 5v since we took care of it in the last step.

Step 5: Step 5: Code for Lab Uno

Attached is the code for the lab.