Hi Mentees! we hope you are doing great. Welcome to a super easy yet useful project based upon the simulation in Proteus. We are working on the Traffic Lights project that will work with the help of D Flip Flop. In this simple tutorial, you will be aware of the following concepts:
What are the Traffic Lights using D Flip Flop?
What is the role of D Flip Flop?
How does the circuit of D Flip Flop work in the Traffic Lights?
How can you simulate the circuit of Traffic Lights with D Flip Flop in Proteus?
In addition, you will find some important information about the Traffic Lights circuit in the DID YOU KNOW Sections. Let's start learning.
Traffic Lights with D Flip Flop
Who is not aware of the traffic lights? we all observe and use the Traffic lights on the road every day. But for the sake of the concepts, let's see the traffic lights technically.
"The Traffic Lights are the signaling devices that has an electronic circuit designed to control the flow of traffic at the roads by a specialized pattern of lights."
These traffic lights are positioned at road intersections ad pedestrian crossing and other positions where the traffic flow has to maintain.
The Traffic Lights depends on an array of three lights with different colors that are connected electrically The whole system is packed into a metallic structure. The LEDs turn on and off with a special pattern that depends upon the circuit.
Before moving forward, refresh the concepts of Traffic Light with the logical point of view. There are three lights in the Traffic Light Signals. These are:
The red light stays last for some moments. The circuit is designed so, we get the output from the Amber color light that coordinates with the red and green light and lasts for some time. In the end, we get only Green light. All these lights are formed as a result of the sequential logic of D Flip Flop and at the end, the output of two D Flip Flops are inserted into AND Gate. The output of the Green light depends upon the AND Gate and we found the light of green LED only when the output of both the D Flip Flops are HIGH.
Role of D Flip Flop in Traffic Lights
Have you ever thought about how does the traffic light blink at a specific time? We all follow the Traffic lights but today we'll learn that what does traffic light follows. The D Flip Flops are the logical circuits and we define the D Flip Flop as:
"The D Flip Flops a dual input is Flip Flop circuit that is designed to have the input at its D Terminal, regulates the signal with the clock edge pulses and shows the output at its two output terminals."
In the Traffic Lights, we use two D Flip Flops that are responsible for the switching of the lights in on or off conditions. The D Flip Flop is the combination of the S and R Flip Flops with an inverter with one terminal. but for simplicity, we'll use the Integrated Circuit of D Flip Flop. Hence our circuit has only four components and we get a clean, easy and useful circuit that works automatically.
The input Terminals are called CLK and D terminals whereas output terminals are denoted by Q and Q'. The Truth Table for the D Flip Flop is given next:
Working of Traffic Lights circuit with D Flip Flop
The working of the Traffic Light starts with the change in the pulse of the clock.
The Q' output of the D Flip Flop 2 gives the power to the Red Light of the Traffic Light.
When the clock is low, there is no change in the Q' terminal of the 1st Flip Flop then the Amber light is off.
With the clock pulses, the Amber light of the Traffic Light turns on.
When the clock is high, we get the output inverse of the D Flip Flop.
The output Q of the D Flip Flop1 and the Q' of the D Flip Flop 2 is fed into AND Gate.
We know the AND Gate is HIGH only when both of its terminals are HIGH.
This output of the AND Gate is connected with the Green Light of the Traffic Light.
Circuit Simulation of Traffic Lights in Proteus ISIS
For the simulation of Traffic Light in Proteus, simply follow the easy steps coming next.
Devices required for the Traffic Lights
D Flip Flop - DTFF
Clock pulses - DClock
Power up your Proteus software.
Click the "P" button.
Write the names of 1st three devices given above one by one and choose them.
Get D Flip Flop twice, And Gate and Traffic Lights from the pick library and arrange them on the working area.
Go to Generation mode(from the sidebar) >DClock and set it just on left side of the 1st D Flip Flop.
Connect all the components with the help of connecting wires.
Connect the Traffic Light's red light with the output of 1st D Flip Flop, the amber light with the D Flip Flop 2 and the green light with the output of AND Gate.
Pop the play button.
Does your Traffic Lights are working well? great! if not, then check the connection again. if you face any problem then share with us.
Consequently, today we learned about the logic behind the Traffic Lights. We learned that with the help of D Flip Flop, one can easily design a circuit just using four simple devices. We saw the working of the sequential on/off condition of the Traffic Lights. Stay with us for more interesting circuits.
I am Syed Zain Nasir, the founder of The Engineering Projects (TEP). I am a
programmer since 2009 before that I just search things, make small projects and now I am sharing my
knowledge through this platform. I also work as a freelancer and did many projects related to
programming and electrical circuitry. My Google Profile+Follow