Saturday, June 18, 2011

Traffic Signal Controller


This automated traffic signal controller can be made by suitably programming a GAL device.  Its main features are:
1. The controller assumes equal traffic density on all the roads.
2. In most automated traffic signals the free left-turn condition is provided throughout the entire signal period, which poses difficulties to the pedestrians in crossing the road, especially when the traffic density is high. This controller allows the pedestrians to safely cross the road during certain periods.
3. The controller uses digital logic, which can be easily implemented by using logic gates.
4. The controller is a generalised one and can be used for different roads with slight modification.
5. The control can also be exercised manually when desired.The time period for which green, yellow, and red traffic signals remain ‘on’ (and then repeat) for the straight moving traffic is divided into eight units of 8 seconds (or multiples thereof) each.
Click on image to enlarge

Fig. 1 shows the flow of traffic in all permissible directions during the eight time units of 8 seconds each. For the left- and rightturning traffic and pedestrians crossing from north to south, south to north, east to west, and west to east, only green and red signals are used.
 Table I shows the simultaneous states of the signals for all the traffic. Each row represents the status of a signal for 8 seconds. As can be observed from the table, the ratio of green, yellow, and red signals is 16:8:40 (=2:1:5) for the straight moving traffic. For the turning traffic the ratio of green and red signals is 8:56 (=1:7), while for pedestrians crossing the road the ratio of green and red signals is 16:48 (=2:6).
 In Table II (as well as Table I) X, Y, and Z are used as binary variables to depict the eight states of 8 seconds each. Letters A through H indicate the left and right halves of the roads in four directions as shown in Fig. 1. Two letters with a dash in between indicate the direction of permissible movement from a road. Straight direction is indicated by St, while left and right turns are indicated by Lt and Rt, respectively. 
Click on image to enlarge

 The Boolean functions for all the signal conditions are shown in Table II. The left- and the right-turn signals for the traffic have the same state, i.e. both are red or green for the same duration, so their Boolean functions are identical and they should be connected to the same control output.
 The circuit diagram for realising these Boolean functions is shown in Fig. 2. Timer 555 (IC1) is wired as an astable multivibrator to generate clock signal for the 4-bit counter 74160 (IC2). The time duration of IC1 can be adjusted by varying the value of resistor R1, resistor R2, or capacitor C2 of the clock circuit. The ‘on’ time duration T is given by the following relationship:
T = 0.695C2(R1+R2)
 IC2 is wired as a 3-bit binary counter by connecting its Q3 output to reset pin 1via inverter N1. Binary outputs Q2, Q1, and Q0 form variables X, Y, and Z, respectively. These outputs, along with their complimentary outputs X’, Y’, and Z’, respectively, are used as inputs to the rest of the logic circuit to realise various outputs satisfying Table I.
  You can simulate various traffic lights using green, yellow, and red LEDs and feed the outputs of the circuit to respective LEDs via current-limiting resistors of 470 ohms each to check the working of the circuit. Here, for turning traffic and pedestrians crossing the road, only green signal is made available. It means that for the remaining period these signals have to be treated as ‘red’. 
Click on image to enlarge

 In practice, the outputs of Fig. 2 should be connected to solidstate relays to operate h i g h - p o w e r bulbs. Further, if a particular signal condition (such as turning signal) is not applicable to a given road, the output of that signal  condition should be connected to green signal of the next state (refer Table I).
T h e traffic signalsCan also be controlled manually, if desired. Any signal state can be by entering the binary value corresponding to that particular state into the parallel input pins of the 3-bit counter. Similarly, the signal can be reset at any time by providing logic 0 at the reset pin (pin 1) of the counter using an external switch. 

Download Source Code

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More