Beruflich Dokumente
Kultur Dokumente
1. Requirement Specification
Purpose: To develop traffic light system to handle 6-way crossroad traffic movement. The
distance measurement sensor and seven segment display is additionally used to manage and
control the traffic.
Application: Some large cities are so populated that additionally need a road to existing ones.
These additional roads are to be controlled. The proposed traffic light system can handle such an
issue.
Team: Rassul Bairamkulov, Aidyn Myltykbayev, Yerlan Rizukov, Aibek Ryskaliyev, Sanzhar
Askaruly.
Equipment used:
AT89S51
Breadboard
7-segment counter
GP2D12 Distance Measurement Sensor
3 LED Green
3 LED Red
2 LED Yellow
10 kOhm Resistor
15 330 Ohm Resistor
Jumpers, wiring
5. Schematic circuit
There are actually 3 bi-directions that traffic lights can handle. These are:
Vertical and Horizontal movement of traffic is considered to be important than diagonal, since
these are assumed to be busy and large roads. Consequently, traffic lights have three lights
(green, yellow and red), which should always be functioning. On contrast, the diagonal road is
rarely used. It is only activated when some car is reaching it. For more efficiency, it has only two
lights (green and red). The threshold value for Distance sensor is 24 meters. Hence, if some car
is in 100 meters from traffic light, then it will be off. However, if there is some bus that is within
24 meters, the diagonal traffic light joins the whole system. Moreover, the traffic light system
has a countdown timer that gives 10 seconds for each action. When 2 seconds left, traffic
changes its state to yellow, and then goes to the next action.
The circuit was built in Proteus 8 Professional software. The obtained model was successfully
simulated. This traffic light system is original, because it has unique distance sensor, which
threshold can be varied. Moreover, it has countdown timer, which gives hint to drivers. The
Sanzhar Askaruly Nazarbayev University, School of Engineering
proposed traffic light system can easily be modified and adapted. It has minimal number of
electrical equipment, which is a great advantage of proposed system.
The video of the traffic light can be viewed from the link provided below:
http://youtu.be/WssWODsNX5M?list=PLcEEyVUarmFOT72rdd5ZRn2sfCCGlDEEE
The Code of the working model is implemented on embedded C language using Keil
MicroVision IDE. It is provided with comments below:
main() {
for(;;) {
while (iscarnear == 1) { //while cars are near TL#1
diagonal(); //do Diagonal function
north_south (); //do north_south function
east_west(); //do East_West function
}
while (iscarnear == 0){ //while cars are far from TL#1
north_south(); //do north_south function
east_west(); //do East_West function
}
}
}
Appendix
Sanzhar Askaruly Nazarbayev University, School of Engineering