Lab 2
Chasing LEDs
After setting up the Arduino on my computer and achieving the happily blinking YELLOW LED on the Arduino, I set off to using the program given to flash a red LED on the breadboard.
Blinking RED LED
Using a lead from pin 10 on the Arduino, the breadboard is connected at pin a17. Along row 27 at column e, the long leg of the red LED is connected. The short leg connected at pin e25 wherein the same row the resister is connected at pin c25 and the ground bus. From the ground bus a lead is connected to the ground on the board.
Grey lead: output
Black lead: ground
Four Blinking LEDs
Using the same lead, LED, resistor, ground sequence the other three LEDs were connected. Yellow LED to pin 9, green LED to pin 8, blue LED to pin 7.
Next was to modify the program.
In the setup, the other pins were set up using the same format as for the red LED at pin 10. The pin values were modified to the pins 9 (yellow), 8 (green), and 7 (blue).
In the loop, the same process was done.
Once completed the program was ran with success!

Comments
Post a Comment