TRAFFIC LIGHT CONTROLLER
Traffic light controller interface module is designed to simulate the function of
four way traffic light controller. Combinations of red, amber and green LEDs are
provided to indicate Halt, Wait and Go signals for vehicles. Combination of red and
green LEDs are provided for pedestrian crossing. 36 LEDs are arranged in the form of
an intersection.
A typical junction is represented in the Figure 1. At the left corner of each road, a group
of five LEDs (red, amber and 3 green) are arranged in the form of a T-section to control
the traffic of that road. Each road is named North (N), South(S), East (E) and West
( W).
LED’s L1, L10, L19& L28 (Red) are for the stop signal for the vehicles on the
road N, S, W, & E respectively.
L2, L11, L20 & L29 (Amber) indicates wait state for vehicles on the Road N, S,
W, & E respectively.
L3, L4 & L5 (Green) are for left, strait and right turn for the vehicles on road S.
Similarly, L12-L13-L14, L23-L22-L21 & L32-L31-L30 simulates same function
for the roads E, N, W respectively.
A total of 16 LED’s (2 Red & 2 Green at each road) are provided for pedestrian
crossing. L7-L9. L16-L18, L25-L27 & L34-L36 (Green) when ON allows
pedestrians to cross and L6- L8, L15-L17, L24-L26 & L33-L35 (Red) when ON
alarms the pedestrians to wait.
To minimize the hardware pedestrian’s indicator LEDs (both red and green are
connected to same port lines (PC4 to PC7) with red inverted.
Red LEDs L10 & L 28 are connected to port lines PC2 & PC3 while L1 &
L19 are connected to lines PC0 & PC1 after inversion. All other LED’s
(amber and green) are connected to port A & B.
WORKING:
8255 is interfaced with 8086 in I/O mapped I/O and all ports are output ports.
The basic operation of the interface is explained with the help of the enclosed program.
The enclosed program assumes no entry of vehicles from North to West, from road
East to South.
At the beginning of the program all red LEDs are switched ON, and all other
LEDs are switched OFF. Amber LED is switched ON before switching over to proceed
state from Halt state.
The sequence of traffic followed is given below.
From road north to East, from road east to north, from road south to west from
road west to south, from road west to north.
From road north to East, from road south to west, from road south to north, from
road south to east, from road north to south, from road south to north.
Pedestrian crossing at roads west & east.
From road east to west, From road west to east, Pedestrian crossing at roads north
& south.
Figure 1: Traffic Light Junction with arrangement of LEDs