A traffic light controller circuit can be used for controlling the sequential illumination of the RED, ORANGE and GREEN traffic signal lamps, by maintaining appropriate delays between the illumination sequence.
In real traffic signal light system we all have seen how the red, orange and green lamps switch ON/OFF in sequence with specific amount of time delay between each lamps.
How Traffic Signal Light Sequencing Works
Basically, the traffic lights that we see on roads and highways illuminate with a specific sequence, as I have explained below:
- To indicate that the vehicles must STOP, the red traffic lamp is illuminated.
- Then after a relatively longish delay, the red lamp is shut off, and the green lamp is illuminated, which indicates that the vehicles must start the ignition and GO.
- Next, after a relatively longish delay the green light shuts off and the orange or the amber light is turned ON.
- The orange or the amber light tells the vehicles to PROCEED WITH CAUTION and prepare to stop to the red light that follows immediately, after a relatively short delay.
In this post I have explained how to build a realistic 3 color traffic light model, which will replicate the standard traffic light sequencing operation, as seen on roads and highways.
How the Circuit Works
As shown in the following figure we can see an IC 4017 which is 10 stage johnsons decade counter is used for executing the red, green, orange light sequencing operation.
In one our previous articles we have already learned how the IC 4017 outputs could be used to generate sequencing high logic pulses from one pinout to the other in response to clock pulses at its pin14.
Here we employ exactly the same working principle, which could be understood from the following explanation:
For feeding clock pulses to pin14 of the IC 4017, a basic astable oscillator is required which is fulfilled using the ubiquitous IC 555.
With each clock pulse from the IC 555's pin#3 to IC 4017's pin#14, causes the output of IC 4017 to create high logic shifts from one pinout to the next in the order of: 3, 2, 4, 7, 10, 1, 5, 6, 9, 11, and back to 3.
Meaning, initially a logic high is available at pin#3 of the IC 4017. With the first clock pulse at pin14, this logic high at pin3 will jump to pin2, then with the next clock at pin14, the logic pulse will jump from pin2 to pin4 and so on.
We can see that these outputs of the IC 4017 are configured with parallel diodes in order to create extended delays on the illumination of the red and the green LED lamps.
Let's say, each pulse from IC 555 has a delay of 2 seconds (this can be changed as desired), would mean that the logic at the IC 4017 outputs would shift with a delay of 2 seconds from one pinout to the other.
Since pin3 and pin2 are tied together with diodes, the total delay across these pinouts will 2+2 = 4 seconds. This means that the orange LEDs would remain switched ON for 4 seconds.
Similarly, the diode connection across pins4,7,10,1, and pins5,6,9,11 ensure that even while the logic sequence are shifting across these pinouts the output across these pinouts keep the red and the green LEDs switched ON for 2+2+2+2 = 8 seconds.
mostafa says
please I took this idea as my project at the university and it got accepted but there is no video or real circuit photo you have uploaded to follow it and i cannot start making it
Swagatam says
You can build the first circuit shown in the above article it will work without fail, if you need any help please let me know, I will surely guide you.
Ken says
I am not an Electrical engineer or that sharp. Will this circuit work for 12 Volt lamps? Is there anything I need to change to make it work. I am building a stop light for the grandkids train set.
Swagatam says
Yes you can replace the LEDs with 12V bulbs. The current rating of the bulbs must not exceed 1 amp. AS mentioned in the article, the direct connection of pin#15 with the ground line is incorrect, it must have a 10K resistor in between.
Clement Chijioke obah says
Your work is execllent,and l will like you to bring me up.thanks.