Traffic Lights Beginner Arduino Project

Arduino Traffic Lights (2)

This is a beginners project for the Arduino. I am using the Arduino Uno but should work with little or no modification on other arduino models.

Setting up the hardware is very easy. This project is more of a training tool for learning how to program a timer list while listening for a button press.Arduino Traffic Lights (2)

Parts you will need.
– Arduino
– Solder-less Breadboard
– 10 LEDs
— 2 Red
— 2 Yellow
— 2 Green
— 2 Small Red
— 2 Small Green
– 2 1Kohm Resistors
– 2 Momentary Switches (normally open)
– Jumper Wires

Step 1: The Circuit

Schematic Arduino Traffic Lights (2)

Step 2: Setup LEDs

Setup the lights on the breadboard like a traffic light. Red on top, then yellow, and then green. The small red and green are the pedestrian crossing signals. Again red on top and green just below.

In my images I am using the right side positive run of the breadboard as negative because its easier to put in the LED.

Put the cathode (-) into the negative run of the breadboard and the anode (+) into a hole next to it.

Step 3: Buttons

Put the buttons in so you have at least 2 pin holes space to add the wires and resistors. Place the 1kohm resistor between one side of the button and the negative run on the breadboard.

Step 4: Wire up LEDs

There are a lot of wire in this project so try to keep it neat so you know where everything is going.

Start by linking the two power rails of the breadboard and giving the breadboard power from the arduino.

An easy way to wire the lights is to just start from the top and work your way down.

Wire guide:
LED / Pin

Side A
Red = 4
Yellow = 3
Green = 2
Small Red = 7
Small Green = 6

Side B
Red = 10
Yellow = 9
Green = 8
Small Red = 13
Small Green = 12

Step 5: Wire Up Buttons

A wire on the same side of the resistor will go to pins 5 (Side A) and 11 (Side B)

On the opposite side a wire will go to power (+3.5v)

Read more: Traffic Lights Beginner Arduino Project

Leave a Comment

Your email address will not be published. Required fields are marked *