Professional Documents
Culture Documents
REPORT (Copy)
REPORT (Copy)
on
DENSITY BASED AUTOMATIC TRAFFIC LIGHT
CONTROL USING ARDUINO
BACHELOR OF TECHNOLOGY
IN
ELECTRONICS & COMMUNICATION ENGINEERING
By
VAVILI SAILAKSHMI(R151209),
UMA MAHESWARI(R151423) &
SUMALATHA(R151358)
Under the Guidance of
Mr. SIVA KRISHNA
The satisfaction that accompanies the successful completion of any task would be incomplete
without the mention of the people who made it possible and whose constant guidance and
We also express our sincere gratitude to our respected Head of the Depatment
Mr.A.SREEKANTH REDDY for his encouragement, overall guidance in viewing this project a
We would like to convey thanks to our PROJECT guide at college Mr. SIVA
KRISHNA for his guidance, encouragement, co-operation and kindness during the entire duration
We are here by declare that the mini project work titled “DENSITY BASED
(R151209), Uma Maheswari (R151423) & Sumalatha (R151358) to the RGUKT in partial
fulfillment of the requirement for the award of Bachelor of Technology in Electronics &
Communication Engineering is our original work where others' ideas or words included, we have
adequately cited and referenced the original sources. The analysis, design and implementation of
this project have been done by us and it has not submitted anywhere else for the award of the
degree.
UMA MAHESWARI(R151423)
V. SAI LAKSHMI(R151209)
SUMALATHA(R151358)
Contents
Page No:
➢ Abstract
➢ Introduction
➢ Hardware Description
➢ Working
➢ Source code & Outputs
➢ Advantages & Applications
➢ Conclusion
➢ Future Scope
➢ References
ABSTRACT:
Traffic congestion is a severe problem in major cities/towns across the world and it has
become a nightmare for the commuters in these areas.Traffic can be controlled in several main
junctions by incorporating either automatic traffic light control or traffic police. But conventional
traffic light system is based on fixed time concept alloted to each side of the junction which cannot
be varied as per varying traffic density.At some times priority of traffic light needs to be changed
based on more number of vehicles waiting in same road.Somewhat to overcome this problem.
We propose to design and develop a density based traffic signal system.The signal changes
automatically on sensing the traffic density at the junction.This can be done by using IR sensors
and Arduino.IR sensors are arranged on each road in accurate manner to detect traffic density
properly; these sensors always sense the traffic on that particular road.All these sensors are
interfaced to the arduino.Based on these sensors, controller detects the traffic and controls the
traffic system.The controls of traffic light depends on number of vehicles available in the road.
This is going to be very helpful in the reduction of the traffic congestion and also it saves
time too. And this evolution may leads to better development for the future.
INTRODUCTION:
• In this modern life we are facing many problems, traffic congestion is one of the major
thing that increasing rapidly day to day. Due to increase in population no.of vechical usage
also increasing rapidly.
• High volume of vehicles, the inadequate infrastructure and the irrational distribution of the
development are main reasons for increasing traffic jam.
• Present conventional traffic light system is based on fixed time which is already assigned in
the system,which can't be varied as per varying traffic density,it means junction timings are
fixed.
• These systems are very inefficient. Major drawback is ‘unnecessary waiting time’.
• Automatic based traffic light controller is needed to reduce the traffic delay and travel
time.The proposed system explains how to control the traffic based on density.
Required components:
• ARDUINO UNO - 1
• UltraSonic Sensors - 4
• Bread board - 1
• LEDs - 4(red)+4(green)+4(yellow)
• USB Cable - 1
• Connecting wires
• Power supply
BLOCK DIAGRAM:
Ultrasonic Sensors
Arduino
Leds
Microcontroller
Power supply
HARDWARE DESCRIPTION:
ARDUINO UNO:
fig 1: ARDUINO_UNO
Arduino specification:
Microcontroller - Arduino mega 2560
Digital I/O pins - 54
Analog input pins - 16
Flash memory - 256KB
SRAM - 8KB
EEPROM - 4KB
Clock Speed - 16 Mhz
Distance calculation
The distance can be calculated with the following formula:
Distance L = 1/2 × T × C
where L is the distance, T is the time between the emission and reception, and C is the sonic speed.
(The value is multiplied by 1/2 because T is the time for go-and-return distance.)
The Ultrasonic transmitter transmits an ultrasonic wave, this wave travels in air and when it gets
objected by any material it gets reflected back toward the sensor this reflected wave is observed by
the Ultrasonic receiver module as shown in the picture below
In order to get the precise distance measurement, HC-SR04 is mostly used in combination with
different Arduino Modules like Arduino Uno and Arduino Mega. You can connect Arduino with
this sensor in the following way.
➢ First, you need to power up the sensor using 5V DC regulated input to the sensor. Connect
the ground pin with the ground of the voltage source. You can also power the sensor module
using the Arduino 5V pins as the current drawn by the sensor is less than 15mA, won’t be
affecting the current ratings of the Arduino Module.
➢ After setting up the initial arrangement, connect both Trig and Echo pins to the I/O pins of
the Arduino Board. The Trig pin must be kept high for 10us in the start. The sensor module
will start generating sound waves with the frequency around 40,000 Hz per second from the
transmitter.
➢ As the waves bounce back, consequently, the Echo pin will turn on until the sounds waves
are received by the receiver. This time will be calculated using Arduino Module.
Working:
• The power supply is given to the system through a power supply cable connected to
ARDUINO UNO.
• The UltraSonic sensor detects any obstacle present in the surroundings as input.
• The project uses the UltraSonic interruption concept for generating logic states to the input
of the MC. To achieve this, the same a number of UltraSonic diodes are used facing
photodiodes.
• While the UltraSonic light falls on the photodiode the resistance of the photodiode falls
increasing the bias voltage.
• Logic high sensed by the MC input changes the green ON time to a higher value for
allowing more vehicles to pass through. After sometime in case any other way gets more
logic high, the sequential timing gets automatically increased for that way.
• Based on the UltraSonic interruption the green ON time increases, thus more the vehicle
longer will be the green signal time. Thus dynamic time control is achieved based on the
traffic density.
• These input data sends to microcontroller for processing. After processing the data is sends
to output devices like LEDs devices as output.
Source Code:
OUTPUTS:
ADVANTAGES:
Programming language is less complex
The SD cards on the board can be easily switched
The ARDUINO UNO is perfect for adaptive technology
It possible to build complex and efective products at a cheaper price
We can save considerable amount of time.
We can avoid unnecessary occurrence of traffic jams which causes public inconvenience
APPLICATIONS:
➢ There is no need of traffic inspector at the junctions for supervising the traffic to run
smoothly.
➢ The intelligent work which is done by traffic inspector will be perfectly done by the
microcontroller in the circuit with the help of sensors and the program which is coded to the
microcontroller.
CONCLUSION:
✔ This proposed system reduces the possibilities of traffic jams, caused by high red light
delays and provides the clearance to vehicles, to an extent and successfully.
✔ The road with the highest priority is cleared first.
FUTURE SCOPE:
• Blinking of traffic signal light according to the traffic level present on the road.
• This system manages traffic when any emergency vehicles come. For example ambulance,
fire bridged etc.
REFERENCES: