0% found this document useful (0 votes)
40 views2 pages

2023 - Fall - Progress Test 1 Example

The document describes a design for a traffic light system using an Arduino Uno and LEDs. There are 6 LEDs to represent the lights for two streets. The system can operate in either auto or manual mode, with the auto mode following defined delay times and the manual mode controlling the lights via serial input commands.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views2 pages

2023 - Fall - Progress Test 1 Example

The document describes a design for a traffic light system using an Arduino Uno and LEDs. There are 6 LEDs to represent the lights for two streets. The system can operate in either auto or manual mode, with the auto mode following defined delay times and the manual mode controlling the lights via serial input commands.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

DO NOT COPY

Components: Arduino Uno, LED,…


Task: Design a traffic light system.

Description:

- There are 6 leds in the traffic light system: G1, Y1, R1 and G2, Y2, R2 (represent for Green,
Yellow and Red of Street 1-3 and 2-4, respectively).
- There are two modes: auto and manual. If the auto mode is selected, traffic lights operate with the
defined delay. If manual mode is selected, the traffic lights are controlled from serial input.
- In auto mode: the defined delay values are as below:

- In manual mode: input name of light (G1, Y1, R1 and G2, Y2, R2) to turn on the corressponding
light, and the others are controlled accordingly.
- In serial input:
o Type A  enter Auto mode
o Type M  enter Manual mode
 Type G1  turn on Green 1, that means Red 2 is on while Yellow 1, Red 1 and
Green 2, Yellow 2 are off.
 Type R1  turn on Red 1, that means Green 2 is on while Green 1, Yellow 1,
and Yellow 2, Red 2 are off.

Reference:
https://www.civil.iitb.ac.in/tvm/nptel/571_TrSignal/web/web.html

1
https://www.tinkercad.com/things/bR15c4ltSPD-copy-of-2-way-traffic-light/editel?tenant=circuits

Answer
Picture of your design:

Code:

Link:

You might also like