DEMO traffic light in PIC16F877
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
1,940
On Slideshare
1,940
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
47
Comments
0
Likes
3

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. TRAFFIC LIGHTS SYSTEM WITH SWITCH DEEPAK PS SANOOP S SHYAM MOHAN
  • 2.  Introduction Component Description Hardware Implementation C Code Application Areas Reference
  • 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. Component Description PIC16F877 LED-RED LED-YELLOW LED-GREEN Button Battery Resistor 10k
  • 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. Hardware Implementation
  • 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. Application Areas Metropolitan cities Airports Public Dealing Areas Hospitals Schools
  • 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. THANK YOU