Arduino Traffic Light

by braulio777 in Circuits > Arduino

837 Views, 3 Favorites, 0 Comments

Arduino Traffic Light

Arduino Traffic Light

This project was made with 5mm LEDs and Led Mounting Hardware T1-3/4 Clear Standard to better visualization, and so using 3 LEDs for showing separately its colors Red, Yellow & Green respectively.

Bill of Materials

20171011_173716.jpg

What you will need:

1 5mm Red LED

1 5mm Yelow LED

1 5mm Green LED

3 Led Mounting Hardware T1-3/4 Clear Standard

1 Arduino Nano

1 Plastic enclosure of 3.2" X 1.6" x 0.8"

1 USB-A to USB-mini Cable

Soldering iron

Solder roll

Rotary drill

Drill bits of 1/4" & 1/2"

Schematic

Arduino Traffic Light.png

Look at the schematic so that you can do a good job. Check that you will have to connect Red LED to pin 2, Yellow LED to pin 7 and Green LED to pin 12 from Arduino nano respectively while connecting each other the cathodes of the LEDs and the common connection of those to GND.

Beginning the Project

20171012_173412.jpg
20171012_173424.jpg
20171012_173505.jpg

Use the drill bit of 1/4" so that you can form the front panel of your project by making three holes. You will also have to use the drill bit of 1/2" to make the hole where passing through the USB-A to USB-mini cable.

Installing the LED Mounting Hardwares

20171012_180510.jpg
20171012_180523.jpg

Mount the LED Mounting Hardwares by inserting them in the 1/4" holes made previously.

Installing the LEDs

20171013_100404.jpg
20171013_100418.jpg
20171013_100444.jpg
20171013_100459.jpg
20171013_100511.jpg
20171013_100523.jpg

Insert the LEDs into the LED Mounting Hardwares, and solder the cathodes each other of the LEDs.

Placing the Arduino Nano

20171013_102837.jpg
20171013_102839.jpg
20171013_102908.jpg

Place the Arduino nano inside your enclosure and plug in the USB-min connector. Next, insert in it the remaining terminals of the LEDs. Now, it's a good moment so that you can upload the code from www.pastebin.com webpage. Then go to: https://pastebin.com/ZvAKpReP

Join LEDs With Arduino Nano

20171013_110929.jpg
20171013_110953.jpg
20171013_111122.jpg

Solder the the wires previously inserted in the Arduino nano and cut the excess.

Enjoy Your Project

20171013_113903.jpg
20171013_113944.jpg
20171013_113952.jpg
20171013_113957.jpg
20171013_114000.jpg
20171013_114023.jpg
20171013_114027.jpg
20171013_114046.jpg

Close your plastic box by using the screws included in the own box and proceed to plug in it to the computer.