You are on page 1of 11

Journal of Electrical and Electronics Engineering Research Vol. 2(3), pp.

57-67, May 2010


Available online at http://www.academicjournals.org/jeeer
ISSN – 2141 – 2367© 2010 Academic Journals

Full Length Research Paper

Design and implementation of a model (ADS-3G) of a


traffic light using automated solar power supply
D. A. Shalangwa
Department of Physics Adamawa State University, Mubi. Nigeria. E-mail: deshalangs3g@yahoo.com.
Accepted 14 March, 2010

In this work, a model of an automated traffic light controller (ADS - 3G) had been designed, simulated,
tested and implemented, using experimental techniques in electronic engineering, to manage the
traffics at the busy four way junctions along Sahuda road in Mubi North Adamawa State, Nigeria. The
designed was achieved with the help of 12V automated solar energy power supply, time base (555
timer), decade counter, D-flip-flop, timing sequence selector for red, green, amber and yellow light and
relay circuit for switching the appropriate light. The average volume of vehicular traffics observed for
the period of one week (4/4/07 - 11/4/07) for Masalachi, Stadium, Sahuda and Sarki roads are 2368, 1996,
1982 and 138, respectively which prompted the development of the model (ADS - 3G) to allowed 17.50,
14.00, 10.50 and 7.00 s accordingly. This model is capable of eliminating the inefficiency and likely error
associated with human traffic controller by minimizing accident and unnecessary traffic jams at the
junction.

Key words: Solar energy, traffic jam, traffic flow, traffic light controller and human traffic.

INTRODUCTION

Mubi is the second largest town in Adamawa state of To address these problems up front the demand for traffic
Nigeria, it lies between latitude 9° 30’ and 11° North of light controller becomes necessary and this prompted the
the equator and longitude 13° and 13° 34’ East of emergence of this work (Figure 1).
Greenwich meridians, Mubi has a land area of 4728.77 The traffic light controller is a device that manages free
2
km and a population of 759,045 (Adebayo, 2004). Mubi flow of traffics along three, or more road junctions. The
has many road junctions; but cases of accidents are device has a sequence selector for red, green, amber
more often recorded at Sahuda road junction especially and a yellow light that indicates present state of the traffic
from 2003 to date (Road Safety, 2005). Mubi has been flow. Here green colored light mean “Go”, which permits
experiencing increasing volume of vehicles/motorcycles entry into the intersection. Red coloured light means
traffic which leads to increased in the risk of accident “Stop”; which prohibits entry into the junction. Amber light
occasioned by motorists contending over right of lay in allows entry of traffic but requires clearance of
the roads. There are also problems of traffic jam on the intersection; and, yellow light means “Fault” indicating
road. The situation becomes worse on daily basis, at the that there is a fault. Here, the yellow light will remain on
road junction and much more critical at the Sahuda road until the fault is cleared. The device also consists of time
junction. Accident generally leads to loss of life, base (555 timer), decade counter D-flip flop and relay
destruction of vehicle and bring unnecessary delay to circuit for switching the appropriate light. The automated
vehicles and also the solar energy power supply is been traffic light controller was so designed on the basis of
introduced in this design because of the inconsistency of electronic instrumentation and experimental techniques in
electrical power supply by the Power Holding Company electronic engineering so as to allow more time of traffic
of Nigeria (PHCN), sometimes the power supply is less flow for more busy roads across the junctions while less
than eight hours in a day which consequently renders the time for less busy roads, as others remain stand still to
traffic light controller useless. It also has some avoid collision. The traffic light controller ensures that the
advantages over electrical power such as it is free in waiting vehicles/motorcycles are not unnecessarily
nature, easy to maintain, relatively cheap, less hazardous delayed. This traffic light controller is capable of
and the problems of pollution in electrical power has been successfully managing the flow of traffics at the Sahuda
eliminated in the solar energy (Website, 2007). road junctions in Mubi North in Adamawa state, Nigeria.
58 J. Electrical Electron. Eng. Res.

Figure 1. Map Mubi showing road network and the study area.

THEORY AND DESCRIPTION OF ELECTRONIC saturate the core of the transformer. The energy is then
COMPONENTS USED released as a high voltage pulse. These pulses are then
passed to the electrolytic capacitor and appear as a 12V
Power supply supply as a supply to the traffic light controller circuit. The
supply can be made automatic by adding a 1 KΩ resistor
The design used 12V rechargeable battery and solar and diode (INA 148) as in Figure 2(a). When the power
panel from sunlight. The circuit consist of oscillator and a supply is connected to the main circuit it starts operation
regulator transistor, the solar energy charge the battery satisfactorily (Frank, 2004) and circuit is further simulated
when sunlight is bright enough. A diode is required as shown in Figure 2(b) to ascertain the technical
between the panel and the battery as it leak 1 mA from function of the circuit.
the battery when it is not illuminated (Website, 2007).
The regulator transistor is designed to limit the output
to 12V; this voltage will be maintain over the capability of The oscillator
the circuit, the transistor oscillator is a high current type
as it is turned ON for a very short time of period to The 555 timer was used in the design as a stable mode
Shalangwa 59

T1 D4
1N4001

D5
1N4148
D3
1N4148
+ SC
R9 12V
3.3k
R7 R6
1k 1k
C5
100uF + V2
R10 12V
1.5k Q2
2N2222
Q1
2N2222
R11
2.2k

Figure 2(a). Solar energy power supply unit.

Figure 2(b). Simulated result of solar energy power supply (DC output Voltage).
60 J. Electrical Electron. Eng. Res.

Figure 3(a). An oscillator circuit.

Figure 3(b). Simulated result of an oscilator circuit.

configured to operate as a multivibrator as shown in given by


Figure 3a. The oscillator generates pulse by charging and
discharging the capacitor C such that the charging time is T1 =In2 (R1 +R2) C1 (1)
Shalangwa 61

Figure 4(a). Switching and Interfacing circuit.

Similarly the standard discharging time is given by (Paul, the diode current (Charles, 1979; Loveday, 1984) and
1995) circuit is simulated as shown in Figure 3(b).

T2 =In2R2C1 (2)
Switching/interfacing circuit
Where the T1 and T2 stands for the charging and
discharging time respectively (Tony, 2001; Ronald, 2001). The switching circuit as shown in Figure 4a is built on an
NPN transistor with a β = 40; where β represents the gain
The total period taking by the capacitor to charged up of NPN transistor, applying Kirchoff’s voltage Law to the
completely and discharged is given by circuit it yields.

T =T1 + T2 (3) VCC − I B RB − VBE = 0


So that the frequency of the oscillation can be computed
using the following expression as (Ali, 2007) V CC − V BE
IB = (6)
RB
1
F= (4)
T I C = βI B (7)

Where IB is the base current; β is the current amplifier


Indicator stage
and Ic is the collector current is controlled by base current
(Jones, 1993; Hughes, 2004).
The indicator stage consists of resistor R3 and diode D1
as shown in Figure 3a. Here the diode D1 becomes “on”
only when the clock pulse is generated. The value R3 was
The interfacing circuit
obtained using simple ohm’s law, given by
The interfacing circuit in Figure 4(a) simply involves
Vcc − Vd interfacing the switching circuit through the relay to the
R3= (5) signal that indicates traffic flow controller condition at any
Id particular point in time. The relay has two double contacts
which are connected to the Red and Green light while the
Where Vd is the diode drop; Vcc is the supply voltage Id is other double contact is connected to Amber and yellow
62 J. Electrical Electron. Eng. Res.

Figure 4(b). Simulated result of Switching and interfacing circuit (DC voltage).

light. On the double contact relay, the Red is connected The counter circuit
normally to the closed path and Green to the opened
path. When energized as a result of the transistor The counter circuit as shown in Figure 5 is built on an IC
conducting at that instant, the Red path and the other (4017). Such that when the reset (pin 15) of the counter
path will open for the green light to come on. Similarly the is taken HIGH, the counter will make the output “0” to go
other double contact will be energized for the Amber to HIGH (1). When ‘CLOCK INHIBIT’ pin 13 is taken to
come up when the transistor is conducting, (Morley, HIGH, the counter will FREEZE on the output that is
1994; Ralph and Richard, 1992) and circuit is simulated currently HIGH. The reset (pin 15) is connected to the
as shown in Figure 4(b). supply via R5 and C3 to the earth, the reset is achieved
Shalangwa 63

Indicator stage

The value of R3 was computed from Equation (5) as R3 =


10 kΩ with Vd = 2V and Id = 10 mA.

Switching circuit

The transistor base current was obtained from Equation


(6) as IB = 10mA with Vcc = +12V, VBE = 0.7V and RB = 10
KΩ while the collector current was computed from
Equation (7) as Ic = 0.04A since β = 40.
Figure 5. Counter circuit.

MATERIALS AND METHODS

The materials used for the design and its component rating is as
when C3 is supplied; since voltage across the capacitor follows 12V automated solar energy power supply; Diodes IN4001;
cannot change instantaneously this makes the voltage Capacitors as filters; IC regulator (KA 7812); Oscillator (555 timer)
across it to be zero. C3 then start to change and when as astable, +12V; Counter (Vcc=12V), +12V; Switching circuit
consist of indicator with 12V, 20 mA and R=320Ω, NPN transistor
fully charged creates an open circuit making R5 to take
(hfe=40, Vbe=0.7V); capacitor 220µf and diode at Vcc = 12V;
(pin 15) to ground; this process continues for the twenty Interfacing circuit with relay type Jzc20 (4088), 10A, 12V DC with
(20) counting sequence (Onohaebi, 2006; Theraja and coil resistance of 320 Ω and Stop watch
Theraja, 1997).

Method of data collection


DESIGN PROCEDURES
The traffic volume at the busy four - ways junction along sahuda
The design of the automated traffic light controller circuit Road in Mubi North, Adamawa state Nigeria was observed and
documented at two-hourly intervals from (6:00 am - 10:00 pm) daily
took the following stages; as shown in Figure 6. for the period of one week. The resulting volume of traffic across
the junction obtained from the field survey was tabulated as shown
in Table 1.
Power supply

The only component that has to make in the transformer, Methods of design
is the core of a 20 mH choke is used and re-wound with
two winding and remove the five winding, the first winding The method employed in the design was an adaptation of the
is 60 turns and the ends are connected to the pins at the standard traffic light controller, although in this design the power
end of the core. The other winding is 35 turns and has supply utilizes an automated solar energy instead of the know
electrical power supply that is more generally used in Nigeria.
flying leads on the board. The 35 turns winding must be In this work, a modeled area controlled by the traffic light was
connected in a special way to provide a positive voltage constructed on wooden board (100 cm in length and 70 cm in
to the base of the oscillator transistor, the operation of the width), which shows the landmark of the four-ways junction. The
circuit itself depend on the direction of the winding direction of the traffic flow and the respective traffic light poles were
relative to the other. erected on the side of each road. The height of the standard poles
is 30 cm with holes were drilled to fix the bulb at the top end of the
poles made of timber wood.
The test carried out involved the operation of the controlled traffic
The oscillator light model and observation of each bulb. In the test, the “on or off”
times for each bulb are the corresponding “1 or 0” shown in Table
The value of the capacitor C that generated a pulse by 2.
charging and discharging was computed using Equation
(1) as 225 µF with T1 = 3.5s, R1 = 1 kΩ and R2 = 10 kΩ.
But for practical purposes, the value of the capacitor C1 Operational principle of the traffic light controller
chosen from data book was C1 = 220 µF as the nearest
available value (ECG, 2000). The time (T2) taken for the When the system is powered on, the oscillator starts producing
pulses, which are used to clock the counter. The outputs of the
capacitor C1 to be discharged was computed using counter are fed into a logic AND Gate selectively in a D flip-flop
Equation (2) as 1.5 s and the frequency of the oscillation circuit. The output of the gate switches the bipolar transistor, which
of the signal from Equation (4), was also computed to be controls the light through the relays. The light is then addressed
0.2 Hz. through the relay as it switches ON while the others remain OFF.
64 J. Electrical Electron. Eng. Res.

Expander
Power Oscillator Counter
supply

Switching/
Interfacing
circuit

Figure 6. Block diagram of traffic light controller.

Table 1. The average volume of traffic across the four-way


junction.

Time Sahuda Masalchi Stadium Sarki


6-8 am 100 180 90 10
8-10 am 420 586 480 30
10-12 noon 318 310 324 20
12-2 pm 207 182 200 17
2-4 pm 188 206 192 32
4-6 pm 412 571 418 12
6-8 pm 218 233 222 11
8-10 pm 80 100 70 06
Total 1982 2368 1996 138
Source. Field survey, 2007.

Table 2. Traffic light controller transmission of the designed model.

Sarki Rd. Stadium Rd Sahuda Rd Masalachi Rd


RAGY RAGY RAGY RAGY
1010 1000 1000 1000 Figure 7. An analysis of average volume of traffic across the four –
way junctions.
0110 1100 1000 1000
1000 0010 1000 1000
1000 0010 1000 1000
1000 0010 1000 1000 RESULTS AND DISCUSSION
1000 0110 1000 1000
1000 1000 1000 1000
Figure 7 presents the average volume of traffic across
the four-way junction in Sahuda road Mubi town. The
1000 1000 0010 1000
observations of vehicular traffic at the junction made for
1000 1000 0010 1000
the period of one week revealed that Masalachi road has
1000 1000 0110 1100 the heaviest vehicular flow (2368) , followed by Stadium
1000 1000 1000 0010 road (1996), Sahuda road (1982) and lastly with Sarki
1000 1000 1000 0010 road (138) having the lowest flow ( with just 6 ± 0.2% of
1000 1000 1000 0010 the highest flow). The traffic light controller was designed
1000 1000 1000 0010 in such a way that more time is given to busy roads while
1100 1000 1000 0110 less time for less busy road accordingly. The maximum
R = Red light, A = Amber light, G = Green light, Y = Yellow light, 1 = time given to roads based on vehicular traffic flow follows:
ON, 0 = OFF. Masalachi road (17.50 s), stadium road (14.00 s),
Shalangwa 65

the start count again. There are fifteen (15) counts in all,
implying that each count sequence has duration of 52.5s,
based on this, the timing for the traffic light controller was
developed for the four roads intersection at the four way -
junctions as presented in Figure 8. The 3.5 s was chosen
to ensure that sufficient number of waiting vehicles
/motorcycles are passed.
This model has achieved simplification of timing for
traffic light controller as shown in Table 3. Here the ON
time and OFF time were computed based on the
numbers of 1’s or 0’s with each count representing 3.5 s
while 0 represents no time. In Masalchi road for instance
there are five 1’s. Therefore the ON time is (17.5 s) while
the OFF time is 35.00 s making a total of 52.5 s. This was
also applied to the other roads junction; for Stadium road
ON time is 14.00 s, OFF time is 38.50 s; for Sahuda road
the ON time is 10.50 s, while OFF time is 42.00 s; and
Sarki road ON time is 7.00 s, OFF time 45.50 s.
Figure 9 compares the design value and practical value
recorded when the test of the model was carried out as
shown in Table 4. The test carried out involved the
Figure 8. An analysis of timing for the traffic light controller.
operation of the controller and observation of each bulb.
In the test, the “ON and OFF” times for each bulb are the
corresponding “1 or 0” with an insignificant error in
Table 3. Simplification of timing traffic light controller. reading of ± 0.05 counted in some values as shown in
Table 5. This value of error has no effect on the efficiency
Signal Colored On Time Off time of the system since it is very negligible.
(Head) Bulbs (sec) (sec) The break down of the traffic light controller
Red 45.50 7.00
transmission design values in abnormal situation
presented in Table 6 revealed that Red light of the traffic
Amber 7.00 45.50
Sarki road controller was completely ON for the whole 52.5 s while
Green 7.00 45.00
Yellow light flashes in every 3.5 s indicating the presence
Yellow 0.00 0.00 of faults in the traffic light controller.
Figure 10 gives the simplification of the traffic light
Red 38.50 14.00 controller in abnormal condition meaning that when any
Amber 7.00 45.00 fault is developed in the traffic light controller, the Red
Stadium road
Green 14.00 38.50 light is completely ON for the period of 52.50 s while OFF
Yellow 0.00 0.00 will become 0.00, consequently, the Yellow light will keep
flashing continuously at an interval of every 3.5 s, with an
Red 42.50 10.50 ON time of 24.50 s, while OFF time becomes 28.00 s.
Amber 7.00 45.50 Here the Amber and Green lights will have their ON time
Sahuda road as 0.00 seconds and OFF is 52.50 s.
Green 10.50 42.00
Yellow 0.00 0.00

Conclusion
Red 35.50 17.50
Amber 7.00 45.50 The design of automated traffic light controller was
Masalachi road
Green 17.50 35.00 achieved successfully with the help of automated solar
Yellow 0.00 0.00 energy power supply, 555 timer connected in astable
mode, decade counter, relay circuit and timing sequence
selector for red, green, amber and yellow light. The
Yellow light was also used in the circuit to indicate
Sahuda (10.50 s) and Sarki (7.00 s). presence of faults in the automated traffic light controller.
Table 2 shows that each count of the controller had The automated 12V solar energy power supply.
duration of 3.5 s after which a transmission was made to The traffic light controller was developed to allow more
the next count. The transition of the counter from one time for busy roads while less busy roads attracted less
count to another is continuous until the last count time; this model was designed, implemented and tested
sequence was reached after which the counter returns to with a satisfactory operation and performance efficiency.
66 J. Electrical Electron. Eng. Res.

Figure 9. An analysis of the timing for each bulb.

Table 4. Break down of the timing for each bulb.

Designed values Practical values


Signal (head) Colored bulbs
On time Off time On time Off time
Red 45.50 7.00 45.50 7.00
Amber 7.00 45.00 7.00 45.50
Sarki road
Green 7.00 45.50 7.00 45.50
Yellow 0.00 0.00 0.00 0.00

Red 38.50 14.00 38.50 14.00


Amber 7.00 45.50 7.00 45.50
Stadium road
Green 14.00 38.50 14.50 38.00
Yellow 0.00 0.00 0.00 0.00

Red 42.50 10.50 42.50 10.00


Amber 7.00 45.50 7.00 45.50
Sahuda road
Green 10.50 42.00 10.50 42.50
Yellow 0.00 0.00 0.00 0.00

Red 35.50 17.50 35.00 17.50


Amber 7.00 45.00 7.00 45.50
Masalachi road
Green 17.50 35.00 17.50 35.00
Yellow 0.00 0.00 0.00 0.00

It is recommended that further improvement on the occurs. This model will certainly eliminate the inefficiency
system may be required to incorporate a device that can associated with human traffic controller, also minimized
rectify the fault immediately, in case such situation incessant accident and unnecessary traffic jams at
Shalangwa 67

Table 6. The simplification of the traffic light in abnormal


condition

Signal Colored On time Off time


(Head) Bulbs (sec) (sec)
Red 52.50 0.00
Amber 0.00 52.50
Sarki road
Green 0.00 52.50
Yellow 24.50 28.00

Red 52.50 0.00


Amber 0.00 52.50
Stadium road
Green 0.00 52.50
Yellow 24.50 28.00
Figure 10. An analysis of traffic light in abnormal condition.

Red 52.50 0.00


Amber 0.00 52.50
Table 5. Traffic light controller transmission design values in Sahuda road
abnormal condition. Green 0.00 52.50
Yellow 24.50 28.00
Sarki Rd. Stadium Rd Sahuda Rd Masalachi Rd
RAGY RAGY RAGY RAGY Red 52.50 0.00
1001 1001 1001 1001 Amber 0.00 52.00
Masalachi road
1000 1000 1000 100 Green 0.00 52.00
1001 1001 1001 1001 Yellow 24.50 28.00
1000 1000 1000 1000
1001 1001 1001 1001
1000 1000 1000 1000 Frank JE (2004). Control systems. http//www.power
1001 1001 1001 1001 magindia.com/econtrol.html pp. 20-23.
1000 1000 1000 1000 Hughes E (1998). Electronical Technology. McGraw, 7th Edition pp.
101-106.
1001 1001 1001 1001 Jones L (1993). Basic Electronics for Tomorrow’s world. Cambridge
1000 1000 1000 1000 University Press pp. 78-82.
1001 1001 1001 1001 Loveday G (1984). Essential Electronics. Pitman pp. 15-19.
Nolan W (2004). Variable power supply.
1000 1000 1000 1000 http//www.sound.westhost.com.project 44.html pp. 10-12.
1001 1001 1001 1001 Morley EH (1994). Principle of electricity. Long man Group Ltd. pp. 58-
1000 1000 1000 1000 62.
Onohaebi O (2006). Design and construction of traffic light controller. J.
Electrical Electron 10(1): 22-29.
Paul H (1995). The Art if electronics: Press Syndicate of University of
Cambridge pp. 422-448.
junctions in developing countries. Ronald TJ, Neal W (2001). Digital system, principles and application.
Pearson Education Pte Ltd, 8th Edition pp. 203-213.
Ralph JS, Richard CD (1992). Circuit devices, and system John and
sons. Inc. pp. 147-158.
REFERENCES Road safety (2005). Daily records book.
Theraja BL, Theraja AKA (1997). electronic technology, S. Chandi and
Adebao AA (2004). Mubi region, a Geographical synthesis, Paraclete Co. Ltd. 2nd Edition pp. 323-336.
and sonspp. 8-9. Tony VR (2001). Timer/Oscillatortutorials.
Ali D (2007). Design of Tachogenerator for measuring angular velocity http://www.uoguelph.cal/antoon/garget/555/555.html pp. 1-12.
of a shaft using frequency to digital conversion techniques. J. Website (2007). http://www.powersupplysolartitle.html 1 - 4
League Res. in Niger 8(1): 186-201.
Charles A (1978). Electronic principles and application. Mc Graw-Hill
Company, 2nd Edition pp. 117-130.
ECG (2000). Data book by NTE electronics Inc.

You might also like