ESY Microproject
ESY Microproject
ESY Microproject
Microproject
Academic year:2024-25
A MICRO PROJECT ON
Build Traffic Light Controller For Traffic Signal As per Specified Delay
Sr no. Roll No. Name Enrolment No Seat No
1 EJ 303 Chaitanya Kubde 2216240097
2 EJ 304 Om Sabale 2216240104
3 EJ 307 Harsh Pawar 2216240108
Certificate
Certificate
Certificate
4.Pedestrian Signals
- Traffic lights with pedestrian buttons allow people to request a
pedestrian phase in the signal cycle.
- When pressed, the system integrates a pedestrian phase, adjusting
vehicle lights accordingly to give pedestrians safe crossing time.
Components Needed:
1.Breadboard: For building the circuit without soldering.
2.Microcontroller (optional): Arduino, Raspberry Pi, or any
microcontroller to control the light timing.
3.LEDs: Red, Yellow, and Green LEDs to represent the traffic lights.
4.Resistors: To limit current for each LED (typically 220Ω to 330Ω
for each LED, depending on your circuit's power).
5.Jumper Wires: For connecting components on the breadboard.
6.Power Source: Batteries or power from a microcontroller or USB.
Circuit Setup
1.Place LEDs: Arrange the red, yellow, and green LEDs in a vertical
row on the breadboard.
2.Connect Resistors: Attach a resistor to the anode (long leg) of each
LED. This prevents them from burning out due to excess current.
3.Connect to Microcontroller Pins: Connect each LED's anode
(through the resistor) to separate digital output pins on the
microcontroller (e.g., pins 9, 10, and 11 on an Arduino).
4.Common Ground: Connect all LED cathodes (short legs) to a
common ground on the breadboard. Also, ensure this ground is
connected to the ground on the microcontroller or power source.
Programming the Microcontroller (if used)
If you’re using an Arduino or similar microcontroller, you can write a
simple program to control the LEDs in a traffic light sequence.
void setup() {
pinMode(redLED, OUTPUT);
pinMode(yellowLED, OUTPUT);
pinMode(greenLED, OUTPUT);
}
void loop() {
// Turn on red LED
digitalWrite(redLED, HIGH);
delay(5000); // Red light on for 5 seconds
Working Principle
The code sets up a repeating cycle of red, green, and yellow signals,
mimicking a real traffic light sequence. Each LED is turned on and
off with delays in between, simulating the operation of traffic signals.
The delay durations represent the typical times for each light.
Broader Implications
This hands-on experience with traffic light logic and circuitry opens
doors to understanding broader applications in engineering and smart
city design. The principles of timed signaling and adaptive control are
foundational to many automated systems, such as railway signaling,
pedestrian crosswalk signals, and even industrial conveyor systems.
Developing an understanding of these systems at a small scale is a
valuable step towards careers in electronics, computer science, urban
planning, and traffic engineering.