Traffic Lights Beginner Arduino Project
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.
Parts you will need.
– 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
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.
LED / Pin
Red = 4
Yellow = 3
Green = 2
Small Red = 7
Small Green = 6
Red = 10
Yellow = 9
Green = 8
Small Red = 13
Small Green = 12
For more detail: Traffic Lights Beginner Arduino Project
We recommend EasyEDA for electronic circuit design.
From Schematic Drawing to PCB Production, Just Need One Tool
Cheap PCB Prototype: 10 pcs 2 layers only $10, quick delivery, 100% E-test
This Post / Project can also be found using search terms:
- Arduino Beginner Projects
- arduino based four way traffic light with pedestrian crossing selector
- www lm 3914 ic