Professional Documents
Culture Documents
(EE - 223)
De-38-Mechatronics-B
Name of Students:
1) NC M. Sohaib Arif
Reg. # 197453
2) NC Abdul Manan
Reg. # 179768
Submitted to:
LE Adnan Shujah
Procedure:
This project operates red, yellow and green LEDs in the correct sequence. The 555
timer provides clock pulses for the counters. Each output becomes high in turn as the clock
pulses are received. Counter counts from 0 to 15 (16 numbers), we have 4 signals, each signal
has three lights; red, yellow and green.
First signal: Green led will turn on when the counter has values b/w 0 – 2 inclusively, for 3
yellow led will turn on, and for rest of the values, red led will turn on.
Second signal: Green led will turn on when the counter has values b/w 4 – 6 inclusively, for 7
yellow led will turn on, and red led will turn on when counter has values 0 – 3 and 8 -15
inclusively.
Third signal: Green led will turn on when the counter has values b/w 8 – 10 inclusively, for 11
yellow led will turn on, and red led will turn on when counter has values 0 – 7 and 12 -15
inclusively.
Second signal: Green led will turn on when the counter has values b/w 12 – 14 inclusively, for
15 yellow led will turn on, and red led will turn on when counter has values 0 - 11 inclusively.
Truth Tables:
4-Way Traffic Control System Page 2
AND GATE:
A B X = A.B
0 0 0
0 1 0
1 0 0
1 1 1
OR GATE:
A B X=A+ B
0 0 0
0 1 1
1 0 1
1 1 1
NOT GATE:
A X = Aʹ
0 1
1 0
JK Flip Flop:
J K Q(t+1)
4-bit counter:
II. Yellow 1:
III. Red 1:
V. Yellow 2:
VI. Red 2:
VII. Green 3:
IX. Red 3:
X. Green 4:
XI. Yellow 4: