Arduino Uno Multi-LED Project

by David23s in Circuits > Arduino

738 Views, 1 Favorites, 0 Comments

Arduino Uno Multi-LED Project

Screen Shot 2019-05-21 at 7.50.59 PM.png

The project I chose to create is a beginner level Arduino sketch that involves LED's lighting up in a sequential pattern every 1000 ms (1 sec). I really enjoyed learning about the different ways multiple LED's can be manipulated using the Arduino Uno and believe this is where a lot of my projects motivation came from. Although we learned a few more advanced programs, I was much more excited and confident creating a tutorial on an area of programming that I understood very well.

So if you are new to using the Arduino Uno or creating Arduino sketches, please try my walk though tutorial!

Arduino Code Link: https://create.arduino.cc/editor/David23s/ccaa9e7...

Materials Needed

60657736_792414871159525_3876585684064010240_n.jpg

(Hover mouse over picture for more details)

  • Arduino Uno
  • Breadboard
  • 6 Jumper Wires
  • USB Cable (For Uno)
  • 5 LEDs (2 Green, 2 Red, 1 Blue)
  • 5 560 Ohm Resistors

Connect GND

61053696_464787277661384_7081617570284961792_n.jpg
61063063_280140769418205_2362551687215841280_n.jpg

Use a jumper wire (black) to connect the ground (GND) pin on the Arduino to the negative rail on the breadboard. This will eventually allow the LED's to use the ground pin on the Arduino.

Connect the Resistors

60810172_414106725806937_7140250621268983808_n.jpg
61153948_617373318778729_935597671257735168_n.jpg
61055088_2427422610611296_8002461577909370880_n.jpg

Insert each of the five 560 ohm resistors into the breadboard with one leg connected to the negative rail and the other connected the the ports shown in the picture. Make sure each set of legs is vertically aligned with each other.

Insert the LED's

60730211_1898719603576565_8011637955925901312_n.jpg
61109783_418493115598638_7698546127221555200_n.jpg
61183318_601336957033238_4489233971082690560_n.jpg
61207780_362666814593947_3954657950303256576_n.jpg

Each LED will be affiliated with it's own resistor. Each LED also has two leads (one positive/one negative). The shorter of the two leads is the negative lead. Connect the negative lead on the LED to the horizontal rail in which the resistor is connected (the port to the right of the resistor) and connect the positive lead to an adjacent rail (the port right above it). Repeat this process for all 5 other LED's. Look at pictures for more details.

I chose to have my LED's go green, red, blue, red, green from top to bottom.

Connect Jumper Wires

61059625_306685380248302_6803192862168055808_n.jpg
60882429_679224899175483_8609020090928594944_n.jpg

Now to connect the remaining jumper wires. We are going to use output ports 9, 10, 11, 12, and 13 for these 5 jumper wires.

  1. Connect a jumper wire (white) from output 9 on the Arduino to the port adjacent (to the right) of your positive lead on the top LED (green).
  2. Connect another jumper wire (green) from output 10 to the port adjacent (to the right) of your positive lead on the 2nd to top LED (red).
  3. Connect another jumper wire (white) from output 11 to the port adjacent (to the right) of your positive lead on the bottom LED (green).
  4. Connect another jumper wire (green) from output 12 to the port adjacent (to the right) of your positive lead on the 2nd to bottom LED (red).
  5. Connect the final jumper wire (green) from output 13 to the port adjacent (to the right) of your positive lead on the middle (blue) LED.

Power on the Arduino

61041376_2710081485732088_8181930261001273344_n.jpg

To turn on the Arduino, you must connect the USB cable from the Arduino to a USB port on your computer and open the Arduino Editing Software. You she see lights blink to indicate the Arduino Uno has power.

Run the Program

Screen Shot 2019-05-21 at 7.41.57 PM.png

Open the Arduino app and type the following code in the Arduino editor (link below). Then upload it to your Arduino Uno. If done correctly you should see something like......... (go to next step)

Arduino Code: https://create.arduino.cc/editor/David23s/ccaa9e74-3043-4edc-b2d2-ac923a616107/preview

SUCCESS!!!

Arduino Uno "Multi-LED Project"

THIS!

If your LED's did not blink in a sequential order like mine, check the following things:

  • All your jumper wires, resistors, and LED's are connected to the right ports.
  • All your jumper wires, resistors, and LED's are firmly connected.
  • Your Arduino Sketch correctly matched my code.

Still having troubles.. leave a comment below!