Traffic Light Controller Using Microcontroller
Traffic Light Controller Using Microcontroller
PROJECT CYCLE
1. Specification of the Project.
2. PCB Layout.
3. Device Test.
4. Code Implementation.
5. Program Test.
6. Pilot Run.
7. Documentation.
Block Diagram
Microcontroller
Driver 3 Signal Lamp3
Timer ON/OFF
switch
Driver 4 Signal Lamp4
Description
Signal lamp consists of cluster of Red, Green, and Yellow LED’s. These lamps requires current
of 60mA which microcontroller doesn’t capable to deliver this current, hence drivers are used.
The purpose of microcontroller is to switch on the signal lamps with proper timing and to read
the timer on/off switch and to dip switches for pass time delay.
With the help of timer on/of switch the, Timer can be enabled or disabled. Led show the status of
operation.
In order to do all the activities a program (sequence of instruction) must be written for the
microcontroller. This program is called firmware. In order to execute the program,
Microcontroller requires basic configuration like 5V regulated power supply, clock, and reset
circuit.
Microcontroller and IC’s require 5V regulated power supply, which is obtained from 230V AC
by using step down transformer, rectifier, filter and regulators.
ATMEL AT89S51 is used in the project. This particular microcontroller is chosen because
following features.
Software
1. ASM-51
2. ATMEL PROGRAMMER.
Hardware
2. DRIVER BC557,
3. LED LAMPS,
4. DIP SWITCHES,
7. 12 V POWER SUPPLY
Working Principle
Upon the power is applied to the system/circuit, microcontroller initializes its ports for
driver, status led indicator, timer on/off switch, jumpers for variable pass time and enters in
infinite loop where it checks for the timer on/off switch.
If it is enabled, timer is on and signal lamps switches in sequence. If timer is not enabled,
all the roads are cleared. Every time it checks for the jumper to determine pass time for vehicles.