Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 10

Green University of Bangladesh

Department of Computer Science & Engineering


Subject:Digital Logic Design Lab
Course Code:CSE204
My Project Presentation topic :Traffic Light Controller

Submitted To: Submitted by :


Name : Md. Atikuzzaman Name : Nazifa Alam Nowrin
Designation : Lecturer ID : 193002103
Department : CSE Department :CSE
Green University of Bangladesh
Outline:

• Introduction
• Components Required
• Block Diagram
• Project Images
• Project Code
• Applications
Introduction:

The function of traffic light is to provide sophisticated control and


coordination to ensure that traffic moves as smoothly and safely as
possible.

This project uses a LED light as an indicator. A microcontroller for


auto change signal after a specific time interval. The LEDs are
automatically on and off by making the corresponding port pin of the
microcontroller high
Components Required:

• Arduino UNO Board


• Red, Green, Yellow(amber) LED’s
• Resistors
• Breadboard
• Power supply
Block Diagram:
Project Images:
Project Code:
digitalWrite(4, HIGH); // For green LED
void setup()
delay(3000); // Wait for 3 second
{
digitalWrite(4, LOW);
pinMode(4, OUTPUT);
digitalWrite(3, HIGH); // For orange LED
pinMode(3, OUTPUT);
delay(1000); // Wait for 1 second
pinMode(2, OUTPUT);
digitalWrite(3, LOW);
}
digitalWrite(2, HIGH); // For the red LED
void loop()
delay(3000); // Wait for 3 second
{
digitalWrite(2, LOW);
}
Applications:

1. ramp metering
2. timer
3.fire station or medical emergency entrance
4.at the entrance and exit of some car washes
5. at the landing stage of a ferry and abroad the ferry
Any Question?
Thank you

You might also like