SlideShare a Scribd company logo
1 of 17
Download to read offline
A MINOR PROJECT ON
TRAFFIC LIGHT
CONTROLLER
Based on AT89C51 Microcontroller
Presented By:
Ramkrishna Mishra (5910428)
HISTORY OF TRAFFIC
LIGHT
The world's very first traffic lights were invented by J
P Knight installed near London's House of Commons,
which was on the intersection of George and Bridge
Street, in 1868.
In 1914 The American Traffic Signal Company
installed red and green traffic lights on every corner
of the intersection of 105th Street and Euclid Avenue
in Cleveland, Ohio.
First traffic lights were all controlled by either timing,
or manually switched
RED
Come to complete stop at stop line or before crosswalk
or intersection.
After stopping, you may turn right on red
at most intersections if the way is clear.
Some school districts have local policies that prohibit
right turns on red by bus operators.
Some intersections display “NO TURN ON RED,”
which you must obey.
YELLOW
Stop if you can do so safely.
The light will soon be red.
GREEN
Go, but only if intersection is clear.
If turning left, wait for gap in oncoming traffic to
complete turn.
Few things about AT89C51
 It has four Ports:
Port 0
Port 1
Port 2
Port 3
These Four ports works as Input port as
well as output port.
ABSTRACT
The function of traffic lights is to provide
sophisticated control and coordination to
ensure that traffic moves as smoothly and
safely as possible.
FEATURES OF TRAFFIC LIGHT CONTROLLER
controller assumes equal traffic density on
all the roads.
The free left turn condition is provided
throughout the entire signal period.
The control can also be exercised manual
when desired.
INTRODUCTION
• This project uses a LED light as an indicator.
• A microcontroller for auto change signal after a
specific time interval.
• The LEDs are automatically on and off by
making the corresponding port pin of the micro
controller high.
COMPONEN
TS
AT89C51 Microcontroller
Capacitor (30pF x2,10µF)
Resistor (8.2KΩ)
Crystal oscillator (11.0592MHz)
LED light (Red, Green, Blue)
PCB
Power supply
BLOCK DIAGRAM
CIRCUIT DIAGRAM
WORKIN
G
The pins of the various input output ports of the
microcontroller are connected directly to the
given LEDs.
The 8051 is programmed in a manner that the
respective LEDs glow by setting the required bit
using assembly language and a certain amount
of delay is provided depending on the user.
PROGRAM
#include<reg51.h>
sbit RE = P0^0;
sbit YE = P0^1;
sbit GE = P0^2;
sbit RW = P0^3;
sbit YW = P0^4;
sbit GW = P0^5;
sbit RN = P0^6;
sbit YN = P0^7;
sbit GN = P2^0;
sbit RS = P2^1;
sbit YS = P2^2;
sbit GS = P2^3;
void Delay(void)
{
unsigned int j;//,i;
////for(i=0;i<200;i++)
for(j=0;j<700;j++);
}
void SuperDelay()
{
unsigned int i;
for (i=0;i<25;i++);
Delay();
}
void main()
{
while (1)
{
RE=0; GE=1; YE=0;
RW=1; GW=0; YW=0;
RN=1; GN=0; YN=0;
RS=1; GS=0; YS=0;
SuperDelay();
GE=0; YE=1;
Delay();
RE=1; GE=0; YE=0;
RW=0; GW=1; YW=0;
RN=1; GN=0; YN=0;
RS=1; GS=0; YS=0;
SuperDelay();
GW=0; YW=1;
Delay();
RE=1; GE=0; YE=0;
RW=1; GW=0; YW=0;
RN=0; GN=1; YN=0;
RS=1; GS=0; YS=0;
SuperDelay();
GN=0; YN=1;
Delay();
RE=1; GE=0; YE=0;
RW=1; GW=0; YW=0;
RN=1; GN=0; YN=0;
RS=0; GS=1; YS=0;
SuperDelay();
GS=0; YS=1;
Delay();
}
}
MOTIVATION
The project finds high practical and
widespread use.
It is a very primitive application of
the microcontroller.
Easy and convenient to be built for
a beginner as the coding comprises
of basic instructions.
SCOP
E
This project can be enhanced in such a way
as to control automatically the signals
depending on the traffic density on the
roads using sensors like IR
detector/receiver module extended with
automatic turn off when no vehicles are
running on any side of the road which helps
in power consumption saving.
manisha mam project.pdfeheh ehhr rhrhr hrhrurjur

More Related Content

Similar to manisha mam project.pdfeheh ehhr rhrhr hrhrurjur

Water level controller
Water level controllerWater level controller
Water level controllerAmadi Uchenna
 
Automatic main gate controller
Automatic main gate controllerAutomatic main gate controller
Automatic main gate controllerPROJECTRONICS
 
Ppt on brake failure indicator.
Ppt on brake failure indicator.Ppt on brake failure indicator.
Ppt on brake failure indicator.mmnbaig
 
Traffic light controller
Traffic light controllerTraffic light controller
Traffic light controllerSrikanth Kaleru
 
Gcse design & technology integrated circuits
Gcse design & technology   integrated circuitsGcse design & technology   integrated circuits
Gcse design & technology integrated circuitsQwizdom UK
 
Temperature Controller
Temperature ControllerTemperature Controller
Temperature ControllerSupriya Gorai
 
Clap On Clap Off Switch
Clap On Clap Off SwitchClap On Clap Off Switch
Clap On Clap Off Switchfariharowshan
 
1396740 634706422070340000
1396740 6347064220703400001396740 634706422070340000
1396740 634706422070340000bnsprasad
 
Automatic Room Lock And Lights Off Circuit
Automatic Room Lock And Lights Off CircuitAutomatic Room Lock And Lights Off Circuit
Automatic Room Lock And Lights Off CircuitAmrish Tejas
 
Digital clock workshop
Digital clock workshopDigital clock workshop
Digital clock workshopKedarv
 
smart street light projet
smart street light projetsmart street light projet
smart street light projetSurya Karan
 
Edc lab 4 - to implement a half wave rectifier using diode
Edc   lab 4 - to implement a half wave rectifier using diodeEdc   lab 4 - to implement a half wave rectifier using diode
Edc lab 4 - to implement a half wave rectifier using diodeTajim Md. Niamat Ullah Akhund
 
EE40_Final_Hack_Writeup
EE40_Final_Hack_WriteupEE40_Final_Hack_Writeup
EE40_Final_Hack_WriteupYanbo Yao
 
BREAK FAILURE CIRCUIT INDICATOR.pptx
BREAK FAILURE CIRCUIT INDICATOR.pptxBREAK FAILURE CIRCUIT INDICATOR.pptx
BREAK FAILURE CIRCUIT INDICATOR.pptxRiyanshisingh4
 
Unit iv microcontrollers final
Unit iv microcontrollers finalUnit iv microcontrollers final
Unit iv microcontrollers finalSARITHA REDDY
 

Similar to manisha mam project.pdfeheh ehhr rhrhr hrhrurjur (20)

Water level controller
Water level controllerWater level controller
Water level controller
 
Automatic main gate controller
Automatic main gate controllerAutomatic main gate controller
Automatic main gate controller
 
Ppt on brake failure indicator.
Ppt on brake failure indicator.Ppt on brake failure indicator.
Ppt on brake failure indicator.
 
Traffic light controller
Traffic light controllerTraffic light controller
Traffic light controller
 
Gcse design & technology integrated circuits
Gcse design & technology   integrated circuitsGcse design & technology   integrated circuits
Gcse design & technology integrated circuits
 
Temperature Controller
Temperature ControllerTemperature Controller
Temperature Controller
 
Final report
Final reportFinal report
Final report
 
INTELIGENT RAILWAY SYSTEM
INTELIGENT RAILWAY SYSTEMINTELIGENT RAILWAY SYSTEM
INTELIGENT RAILWAY SYSTEM
 
Clap On Clap Off Switch
Clap On Clap Off SwitchClap On Clap Off Switch
Clap On Clap Off Switch
 
1396740 634706422070340000
1396740 6347064220703400001396740 634706422070340000
1396740 634706422070340000
 
Automatic Room Lock And Lights Off Circuit
Automatic Room Lock And Lights Off CircuitAutomatic Room Lock And Lights Off Circuit
Automatic Room Lock And Lights Off Circuit
 
Digital clock workshop
Digital clock workshopDigital clock workshop
Digital clock workshop
 
L13 ic based triggering circuit
L13 ic based triggering circuitL13 ic based triggering circuit
L13 ic based triggering circuit
 
smart street light projet
smart street light projetsmart street light projet
smart street light projet
 
Edc lab 4 - to implement a half wave rectifier using diode
Edc   lab 4 - to implement a half wave rectifier using diodeEdc   lab 4 - to implement a half wave rectifier using diode
Edc lab 4 - to implement a half wave rectifier using diode
 
EE40_Final_Hack_Writeup
EE40_Final_Hack_WriteupEE40_Final_Hack_Writeup
EE40_Final_Hack_Writeup
 
myppt
mypptmyppt
myppt
 
BREAK FAILURE CIRCUIT INDICATOR.pptx
BREAK FAILURE CIRCUIT INDICATOR.pptxBREAK FAILURE CIRCUIT INDICATOR.pptx
BREAK FAILURE CIRCUIT INDICATOR.pptx
 
Unit iv microcontrollers final
Unit iv microcontrollers finalUnit iv microcontrollers final
Unit iv microcontrollers final
 
Ppt (1)
Ppt (1)Ppt (1)
Ppt (1)
 

Recently uploaded

CALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best sexual serviceanilsa9823
 
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)Delhi Call girls
 
VIP Call Girls Service Film Nagar Hyderabad Call +91-8250192130
VIP Call Girls Service Film Nagar Hyderabad Call +91-8250192130VIP Call Girls Service Film Nagar Hyderabad Call +91-8250192130
VIP Call Girls Service Film Nagar Hyderabad Call +91-8250192130Suhani Kapoor
 
Booking open Available Pune Call Girls Ambegaon Khurd 6297143586 Call Hot In...
Booking open Available Pune Call Girls Ambegaon Khurd  6297143586 Call Hot In...Booking open Available Pune Call Girls Ambegaon Khurd  6297143586 Call Hot In...
Booking open Available Pune Call Girls Ambegaon Khurd 6297143586 Call Hot In...Call Girls in Nagpur High Profile
 
Zeeman Effect normal and Anomalous zeeman effect
Zeeman Effect normal and Anomalous zeeman effectZeeman Effect normal and Anomalous zeeman effect
Zeeman Effect normal and Anomalous zeeman effectPriyanshuRawat56
 
Delhi Call Girls Patparganj 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Patparganj 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Patparganj 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Patparganj 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证obuhobo
 
PM Job Search Council Info Session - PMI Silver Spring Chapter
PM Job Search Council Info Session - PMI Silver Spring ChapterPM Job Search Council Info Session - PMI Silver Spring Chapter
PM Job Search Council Info Session - PMI Silver Spring ChapterHector Del Castillo, CPM, CPMM
 
Internship Report].pdf iiwmoosmsosmshkssmk
Internship Report].pdf iiwmoosmsosmshkssmkInternship Report].pdf iiwmoosmsosmshkssmk
Internship Report].pdf iiwmoosmsosmshkssmkSujalTamhane
 
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangaloreamitlee9823
 
Résumé (2 pager - 12 ft standard syntax)
Résumé (2 pager -  12 ft standard syntax)Résumé (2 pager -  12 ft standard syntax)
Résumé (2 pager - 12 ft standard syntax)Soham Mondal
 
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...amitlee9823
 
Delhi Call Girls South Ex 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Ex 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls South Ex 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Ex 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
CFO_SB_Career History_Multi Sector Experience
CFO_SB_Career History_Multi Sector ExperienceCFO_SB_Career History_Multi Sector Experience
CFO_SB_Career History_Multi Sector ExperienceSanjay Bokadia
 
reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdf
reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdfreStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdf
reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdfKen Fuller
 
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...shivangimorya083
 
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual serviceanilsa9823
 

Recently uploaded (20)

CALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Nishatganj Lucknow best sexual service
 
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)
 
VIP Call Girls Service Film Nagar Hyderabad Call +91-8250192130
VIP Call Girls Service Film Nagar Hyderabad Call +91-8250192130VIP Call Girls Service Film Nagar Hyderabad Call +91-8250192130
VIP Call Girls Service Film Nagar Hyderabad Call +91-8250192130
 
Booking open Available Pune Call Girls Ambegaon Khurd 6297143586 Call Hot In...
Booking open Available Pune Call Girls Ambegaon Khurd  6297143586 Call Hot In...Booking open Available Pune Call Girls Ambegaon Khurd  6297143586 Call Hot In...
Booking open Available Pune Call Girls Ambegaon Khurd 6297143586 Call Hot In...
 
Zeeman Effect normal and Anomalous zeeman effect
Zeeman Effect normal and Anomalous zeeman effectZeeman Effect normal and Anomalous zeeman effect
Zeeman Effect normal and Anomalous zeeman effect
 
Delhi Call Girls Patparganj 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Patparganj 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Patparganj 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Patparganj 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
女王大学硕士毕业证成绩单(加急办理)认证海外毕业证
 
PM Job Search Council Info Session - PMI Silver Spring Chapter
PM Job Search Council Info Session - PMI Silver Spring ChapterPM Job Search Council Info Session - PMI Silver Spring Chapter
PM Job Search Council Info Session - PMI Silver Spring Chapter
 
Internship Report].pdf iiwmoosmsosmshkssmk
Internship Report].pdf iiwmoosmsosmshkssmkInternship Report].pdf iiwmoosmsosmshkssmk
Internship Report].pdf iiwmoosmsosmshkssmk
 
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Résumé (2 pager - 12 ft standard syntax)
Résumé (2 pager -  12 ft standard syntax)Résumé (2 pager -  12 ft standard syntax)
Résumé (2 pager - 12 ft standard syntax)
 
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
 
Delhi Call Girls South Ex 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Ex 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls South Ex 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Ex 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
CFO_SB_Career History_Multi Sector Experience
CFO_SB_Career History_Multi Sector ExperienceCFO_SB_Career History_Multi Sector Experience
CFO_SB_Career History_Multi Sector Experience
 
reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdf
reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdfreStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdf
reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdf
 
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
 
Sensual Moments: +91 9999965857 Independent Call Girls Paharganj Delhi {{ Mon...
Sensual Moments: +91 9999965857 Independent Call Girls Paharganj Delhi {{ Mon...Sensual Moments: +91 9999965857 Independent Call Girls Paharganj Delhi {{ Mon...
Sensual Moments: +91 9999965857 Independent Call Girls Paharganj Delhi {{ Mon...
 
VVVIP Call Girls In East Of Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In East Of Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In East Of Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In East Of Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual service
 

manisha mam project.pdfeheh ehhr rhrhr hrhrurjur

  • 1. A MINOR PROJECT ON TRAFFIC LIGHT CONTROLLER Based on AT89C51 Microcontroller Presented By: Ramkrishna Mishra (5910428)
  • 2. HISTORY OF TRAFFIC LIGHT The world's very first traffic lights were invented by J P Knight installed near London's House of Commons, which was on the intersection of George and Bridge Street, in 1868. In 1914 The American Traffic Signal Company installed red and green traffic lights on every corner of the intersection of 105th Street and Euclid Avenue in Cleveland, Ohio. First traffic lights were all controlled by either timing, or manually switched
  • 3. RED Come to complete stop at stop line or before crosswalk or intersection. After stopping, you may turn right on red at most intersections if the way is clear. Some school districts have local policies that prohibit right turns on red by bus operators. Some intersections display “NO TURN ON RED,” which you must obey.
  • 4. YELLOW Stop if you can do so safely. The light will soon be red. GREEN Go, but only if intersection is clear. If turning left, wait for gap in oncoming traffic to complete turn.
  • 5. Few things about AT89C51  It has four Ports: Port 0 Port 1 Port 2 Port 3 These Four ports works as Input port as well as output port.
  • 6. ABSTRACT The function of traffic lights is to provide sophisticated control and coordination to ensure that traffic moves as smoothly and safely as possible.
  • 7. FEATURES OF TRAFFIC LIGHT CONTROLLER controller assumes equal traffic density on all the roads. The free left turn condition is provided throughout the entire signal period. The control can also be exercised manual when desired.
  • 8. INTRODUCTION • This project uses a LED light as an indicator. • A microcontroller for auto change signal after a specific time interval. • The LEDs are automatically on and off by making the corresponding port pin of the micro controller high.
  • 9. COMPONEN TS AT89C51 Microcontroller Capacitor (30pF x2,10µF) Resistor (8.2KΩ) Crystal oscillator (11.0592MHz) LED light (Red, Green, Blue) PCB Power supply
  • 12. WORKIN G The pins of the various input output ports of the microcontroller are connected directly to the given LEDs. The 8051 is programmed in a manner that the respective LEDs glow by setting the required bit using assembly language and a certain amount of delay is provided depending on the user.
  • 13. PROGRAM #include<reg51.h> sbit RE = P0^0; sbit YE = P0^1; sbit GE = P0^2; sbit RW = P0^3; sbit YW = P0^4; sbit GW = P0^5; sbit RN = P0^6; sbit YN = P0^7; sbit GN = P2^0; sbit RS = P2^1; sbit YS = P2^2; sbit GS = P2^3; void Delay(void)
  • 14. { unsigned int j;//,i; ////for(i=0;i<200;i++) for(j=0;j<700;j++); } void SuperDelay() { unsigned int i; for (i=0;i<25;i++); Delay(); } void main() { while (1) { RE=0; GE=1; YE=0; RW=1; GW=0; YW=0; RN=1; GN=0; YN=0; RS=1; GS=0; YS=0; SuperDelay(); GE=0; YE=1; Delay(); RE=1; GE=0; YE=0; RW=0; GW=1; YW=0; RN=1; GN=0; YN=0; RS=1; GS=0; YS=0; SuperDelay(); GW=0; YW=1; Delay(); RE=1; GE=0; YE=0; RW=1; GW=0; YW=0; RN=0; GN=1; YN=0; RS=1; GS=0; YS=0; SuperDelay(); GN=0; YN=1; Delay(); RE=1; GE=0; YE=0; RW=1; GW=0; YW=0; RN=1; GN=0; YN=0; RS=0; GS=1; YS=0; SuperDelay(); GS=0; YS=1; Delay(); } }
  • 15. MOTIVATION The project finds high practical and widespread use. It is a very primitive application of the microcontroller. Easy and convenient to be built for a beginner as the coding comprises of basic instructions.
  • 16. SCOP E This project can be enhanced in such a way as to control automatically the signals depending on the traffic density on the roads using sensors like IR detector/receiver module extended with automatic turn off when no vehicles are running on any side of the road which helps in power consumption saving.