This simple little project uses an Arduino and some LEDs to replicate a traffic light. It uses code as an internal timer and continues to run until you cut the Arduino's power supply.
Components Required:
Arduino Uno
Breadboard
LEDs (Red, Yellow, Green)
Resistor (220 Ohm)
Dupont cables.
Follow Below Steps To Make This Project Complete:
Step 1: Supply power to the breadboard:
Insert one side of the jumper wire into GND on the board. Lead the other side to the breadboard. Put it on the far right column on the breadboard, at the top. This is the ground column. ALL the way to the right.
Step 2: Adding the LEDs
Take out your LEDs and resistors. Place one end of the resistor in the column on the right, the same column we connected our jumper wire to. Extend the other end of the breadboard into the main part of the breadboard. Attach the resistor to any row you like. Our LEDs will go on the same row. We will stick one end of the LED on one side of the breadboard, and the other end on the other side of the breadboard. The short end of the LED will go on the side your resistors are on, the right side. Extend the other end of the LED to the right side of the breadboard. (If you don't put the LEDs in correctly, the project will not work.)
Step 3: Completing the circuit:
This is the last part. Take another jumper wire, put it on the same row that you have an LED on. This is where the wires will go:
Green LED: Port 2, Digital PWM section
Yellow LED, Port 3, Digital PWM section
Red LED, Port 4, Digital PWM section
Now, upload your code and you're finished!
Advantages:
- The traffic light controller in this system can be implemented practically, and it could be expanded further by you.
- This traffic light controller includes a crosswalk signalling system.
- External memory can be interface with the central controller so that the timings are not fixed during its programming but instead can be programmed during operation.
Limitations:
- The project is not suitable for actual implementation but just a demonstration of the process behind the system.
- The project can either operated manually or by using pre-programming operations. It cannot handle in both ways.
- In the real-time traffic controller systems, the operator has the right to change the timings and the intensity of the traffic light in each lane.
Package Includes:
1 x Arduino Uno with USB Cable
1 x 400 point Breadboard
1 x Power adopter
5 x LEDs (Red, Yellow, Green) each
10 x Resistor (220 Ohm)
1 x Dupont cables M-M 40 pcs 20cm