Introduction: Lab 1 - Serial Demo

About: I am currently a senior in college

This example demonstrates how to use Serial input to control LEDs

Step 1: Adding an LED

1. Place an LED (any color) 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 3 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: LED Errors

Step 3: Add a Green LED

The green LED has the same setup as our red LED.

1. Connect the led to the breadboard.

2. Connect a 220Ω resistor to the positive(+) lead of the LED and to a Pin 5 on the Arduino.

3. Connect the negative lead to the ground rail.

Step 4: Add a Red LED

The red LED has the same setup as our blue and green LEDs.

1. Connect the led to the breadboard.

2. Connect a 220Ω resistor to the positive(+) lead of the LED and to Pin 9 on the Arduino.

3. Connect the negative lead to the ground rail.

Step 5: Code for Serial Demo

Attached is the SerialDemo.ino which contains all of the code for running the binary counter project on an Arduino Uno.