DEMO traffic light in PIC16F877

1,977 views

Published on

Published in: Education, Business, Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,977
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
61
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

DEMO traffic light in PIC16F877

  1. 1. TRAFFIC LIGHTS SYSTEM WITH SWITCH DEEPAK PS SANOOP S SHYAM MOHAN
  2. 2.  Introduction Component Description Hardware Implementation C Code Application Areas Reference
  3. 3. IntroductionOur Traffic Control System is suitable for city traffic control. This concept is widely using in metropolitan cities.These systems allow passengers to cross the road faster rather than waiting too long ,once they press the button they will get their turn.
  4. 4. Component Description PIC16F877 LED-RED LED-YELLOW LED-GREEN Button Battery Resistor 10k
  5. 5. System Concept TRAFFIC LIGHTS SYSTEM WITH Pedestrian contol SWITCH is a concept that reduces traffic blocks. It works with delay between lights. When the button id pressed the lights get rested to all red and that makes the pedestrians to cross the road. These system are widely used in high populated areas, school and hospital junctions, and other congested areas for maintaining easy traffic.
  6. 6. Hardware Implementation
  7. 7. C Codeint count=0,light=0; {void main() { PORTB=0x21; //GR TRISB = 0x00; } TRISC=0xff; else if (light==3) while(1) { { PORTB=0x14; //RY light=count%5; } if(PORTC=0x01) // in case switch on RR else if (light==4) { { light=0; PORTB=0x12; //RG } count=0; if(light==0) } { PORTB=0x11; //RR Delay_Ms(1000); } count++; else if (light==1) { PORTB=0x41; //YR } } } else if (light==2)
  8. 8. Application Areas Metropolitan cities Airports Public Dealing Areas Hospitals Schools
  9. 9. Reference https://0.2.2.1.4309.12779.2j1j3j1j5j5j8- 1j1.19.0...0.0.d6tXDfEFbMUMikroC Manual https://www.google.co.in/search?q=traffic+lights&b tnG=Search&hl=en&biw=1366&bih=647&gbv=2&tb m=isch Proteus All-in-One Manual
  10. 10. THANK YOU

×