Skip to content

Latest commit

 

History

History
72 lines (60 loc) · 3.08 KB

File metadata and controls

72 lines (60 loc) · 3.08 KB

ON-Demand-Traffic-Light-Control-AVR🚦🚗🚶

Description

This is Traffic light system to control and organize Traffic between cars and human as traffic light normal flow happen (green then yellow then red then yellow then green and repeat this flow) until there are pedestrian want to cross road then will press button and interrupt car traffic light (depend on case 1 and case 2) and pedestrian traffic light will flow until end then return to car traffic light flow until any pedestrian press button.

System Layer architecture

System Flowchart

IDE

Micrchip studio, Notepad++ and simulide

I use Microchip studio & Notpad++ for writting code

I use simulide to make simulation for project(easy to use and anyone can download without crack)

You can open project as If you have Microchip studio click on on_demand_traffic_light_control.atsln

Schematic Capture

Main Component

  • atmega32
  • green, red and yellow leds
  • resistor
  • button
  • LCD 16*2

Demo

Normal traffic light Mode

Normal mode for car traffic light and this mode work until button pedestrian not pressed

Case 1

This case happen when red led car traffic light is on and at same time pedestrian button pressed and at the end of this case return to noraml mode again

case 2

During green led

This case happen when green led car traffic light is on at same time pedestrian button pressed and at the end of this case return to normal mode again

During yellow led

This case happen when yellow led car traffic light is on at same time pedestrian button pressed and at the end of this case return to normal mode again