You are on page 1of 3

Rename filename.

Class SE18xx Group 01 Contribution


# Student ID Student Name Task (0-100%)
1
2
3
4
5

IOT 102: PROGRESS TEST 1


DO NOT COPY
Components: Arduino Uno, LED,…
Task: Design a traffic light system.

Description:

- Traffic Light Signals:


o G1, Y1, R1: These LEDs represent the Green, Yellow, and Red signals for Street 1-3.
o G2, Y2, R2: These LEDs represent the Green, Yellow, and Red signals for Street 2-4.
- Pedestrian Control: 8x8 LED Matrix: This matrix is likely used to display pedestrian signals, such
as the iconic "walking man" symbol or "hand" symbol to indicate whether it's safe to cross.
- Pedestrian Button: This is likely a button for pedestrians to request a signal change. When
pressed, it should trigger a safe time for pedestrians to cross.
- Time Countdown: 7-Segment LED: This display is used for countdown purposes, indicating the
remaining time for a particular signal (e.g., pedestrian crossing time).
- There are two modes: auto (A) and manual (M). If the auto mode is selected, traffic lights operate
with the defined delay. The traffic lights are controlled from serial input or a 4x4 keypad if
manual mode is selected.
- In auto mode: the defined delay values are as follows:

1
Rename filename.

- In manual mode: input the name of the light (G1, Y1, R1, and G2, Y2, R2) to turn on the
corresponding light, and the others are controlled accordingly.
- In serial input:
o Type A or press A  enter Auto mode.
o Type M or press B  enter Manual mode
 Type G1 or press C (or R2)  turn on Green 1 and Red 2 (after turning on
Yellow 2 for 2 seconds) while the other LEDs are off.
 Type R1 or press D (or G2)  turn on Red 1 (after turning on Yellow 1 for 2
seconds) and Green 2 while the other LEDs are off.
Note: When changing from Green to Red, Yellow is on for 2 seconds
Note: You can use the button to change mode, and control traffic light in Manual mode.

Reference:
https://www.civil.iitb.ac.in/tvm/nptel/571_TrSignal/web/web.html
https://www.tinkercad.com/things/bR15c4ltSPD-copy-of-2-way-traffic-light/editel?tenant=circuits

Answer
1. Block diagram:

2. Picture of your design:

3. Flowchart (algorithm)

4. Code:

2
Rename filename.

5. Tinkercad link:

6. Video clip (Google Drive):

You might also like