0% found this document useful (0 votes)
36 views8 pages

De Lab Worksheet 6

The document discusses using D flip flops to design traffic lights. It explains how D flip flops work as edge triggered devices and how their outputs can be used to control the states of red, yellow, and green lights in a repeating cycle. The design is implemented on a breadboard using D flip flop and 555 timer ICs to generate the clock signal.

Uploaded by

Vishal Sony
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views8 pages

De Lab Worksheet 6

The document discusses using D flip flops to design traffic lights. It explains how D flip flops work as edge triggered devices and how their outputs can be used to control the states of red, yellow, and green lights in a repeating cycle. The design is implemented on a breadboard using D flip flop and 555 timer ICs to generate the clock signal.

Uploaded by

Vishal Sony
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Name: - Vishal Sony Branch: - CSE

UID: - 20BCS7025 Sec/Group: - 37/A

Date of Performance: - 01-04-2021 Subject Code: - 20ECP-156

Design traffic lights using D flip flops

555 timer IC(NE555), D flip flop IC (7474), 5v power supply, Breadboard,

connecting wires, Proteus

Basically, D flops follow the input when the clock is enabling i.e., it takes
enable as a positive edge trigger and remain in the previous state when
clock is disabled.

Initially

Input at flip flop 1 is 0.

Input at flip flop 2 is 0.

So if you code Q of first flip flop as green led, Q' of second flip flop as red
led and yellow led is coded to the combination Q' of first and Q of the
second. At the first positive edge trigger you give input
as 0 to flip flop 1 so
the output is also 0 and the output at Q' which is 1 will act as a positive
edge trigger at flip flop 2 which will again give input as 0 to Q of flip flop 2
so the output is also 0 and the output at Q' of flip flop 2 which is 1 will turn ON
the red led connected to it.

After first positive edge:

Input at flip flop 1 is 1 (equal to Q' of flip flop 1)

Input at flip flop 2 is 1

At the second positive edge:

At flip flop 1 the input 1 is given to output Q which is connected to yellow


LED and Q' turns 0 giving the clock at flip flop 2 a 0, turning the red led
OFF.

After second positive edge

Input at flip flop 1 is 0 (equal to Q' of flip flop 1)

Input at flip flop 2 is 1

At the third positive edge at flip flop 1 the input which is 0 is given to the
output which is also made 0 and the output at Q' which is 1 will act as a
positive edge trigger at flip flop 2 which will again give input as 1 to Q of
flip flop 2. Now Q of flip flop 2 and Q' of flip flop 1 which are both at 1 will
give 1 to the yellow LED turning it on.

And the loop will continue.

Now once led glows make sure that the next positive edge trigger will
come after the required time in other words change the frequency of clock
pulse according to your requirement (you can use 555 timer to generate
required clock pulse) so that LED will stays glowing and after that
particular time give 1 as Input at positive edge of the clock the other LED
glows and maintain the same clock frequency.
TRAFFIC CONTROL LIGHTS: -
(Green LED is glowing)
(YELLOW LED is glowing)
(RED LED is glowing)
(RED and YELLOW both red are glowing)
(GREEN LED is glowing)
(YELLOW LED is glowing)
(RED LED is glowing)

The practical applications of D flip flop in designing traffic lights is studied and
implemented.

‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐THANK YOU‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐

You might also like