Introduction: Making 1x10 LED Array With Random Patterns

Picture of Making 1x10 LED Array With Random Patterns

This will teach you how to make a very simple 1x10 array of LEDs on a breadboard controlled by an Arduino Uno to make the LEDs blink and flash in 10 different patterns.

Link to notebook for project:  https://docs.google.com/document/d/1YP4p11SbDNOnM7mDn-sRjJLnxGPj6o0DkrFZnznVMvk/edit
Link to YouTube video of LEDs in action:  http://youtu.be/waaNSYbWn2Y

Step 1: Insert LEDs Into Breadboard

Picture of Insert LEDs Into Breadboard

Insert 10 single-color LEDs in a row onto the breadboard with all the longer, positive leads facing the same way (for ease).  Note that in the picture, the wires are already inserted.

Step 2: Connect LEDs to Arduino Uno

Picture of Connect LEDs to Arduino Uno

Run a single wire between the positive leads of each LED to the Arduino.  Use digital ports 2 through 11 (on the side with the USB port).  Wire the LEDs in order 2 through 11, so 2 is the first LED and 11 is the last, which is the the 10th LED.

Step 3: Ground LEDs

Picture of Ground LEDs

Each LED must be grounded to the Arduino.  Run wires from the shorted, ground lead of each LED to a ground port on the Arduino.  I had to jump from many different rows on the breadboard to get all 10 to go to the same ground port.  The picture of my setup may help, but my own setup is not clean.

Step 4: Insert Wires for "Battery Checker"

Picture of Insert Wires for "Battery Checker"

Insert one wire into analog port A0 and another into port A1.  These ports are on the opposite side from the digital ports on the Arduino.  When the code is uploaded to the Arduino, when a battery or other readable potential differential is applied across these wires, the LEDs with flash.

Step 5: Upload Code to Arduino

Plug the Arduino Uno into your computer via USB cable and upload the provided code.  The code is in PDF format, not the native Arduino code, so you will have to copy-and-paste the code into the compiler.

Step 6: ENJOY!

Picture of ENJOY!

Sit back and enjoy the light show!  Hours of fun!

Comments

SuperTech-IT (author)2014-03-14

Reminds me of a diagnostic I ran on one of my projects...LOL.

Here - check this out - I though the diagnostic was so cool, I made a video.

http://www.youtube.com/watch?v=AII3JQ6nYMc

gfworx (author)2012-09-27

Hi there ChromeCoyote,

Thank You, Thank You, Thank You...

I became interested in Arduino around two months ago and build a 10 x LED heart shape array for my 7 year old daughter. She loves the red blinking chasing patterns that I wrote. But I wanted it to do more. With my still very limited knowledge of writing code I started looking for example sketches to learn from. Yours is the very best I found in a 13 day search.

Your sketch is a big inspiration for me!!!

Thank You and keep on coding.

About This Instructable

14,803views

10favorites

License:

More by ChromeCoyote:Making 1x10 LED Array with Random Patterns
Add instructable to: