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.
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
- atmega32
- green, red and yellow leds
- resistor
- button
- LCD 16*2
Normal mode for car traffic light and this mode work until button pedestrian not pressed
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
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
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