๐Ÿšฆ
THE AI CLUB ยท ENGINEER LAB

Traffic Tech Lab

โญ 0 XP๐Ÿ… Engineer in training
LEVEL 1 ยท Wake up the traffic light

Connect a timer, write the traffic sequence and bring the lights to life!

YOUR PROGRESS
๐Ÿ‘ฃ Byteโ€™s Building MapNot sure what to click? Follow these little steps and build the signal yourself!
STEP 1 OF 6

Meet your mission

โœ… YOUR MINI CHECKLIST

๐Ÿ™๏ธ Future City Junction

Live simulation โ€” YOUR program controls the signals
โ— PAUSED
โ— LIVE TRAFFIC
00:00 ยท phase: 0s
โš ๏ธ Safety problem! Debug your rules before vehicles proceed.
FUTURE CITY SCHOOL FUTURE PARK ENGINEER LABSENSE ยท THINK ยท ACT CONTROL CABINET MAIN SIDE WAITโœ‹CROSSING SCHOOL BUS

๐ŸŽ›๏ธ Create a traffic situation

System is idle

Byte: I'm here with clues, not answers. Connect your timer to get started!

Step 1 ยท Choose and connect

Install sensors, then wire them to the controller.

0 connected
๐Ÿ‘† Wiring: Tap a sensor's blue plug, then tap the matching controller IN socket. For outputs, tap a controller OUT plug, then its actuator socket. You can make a wrong connection and learn by testing!

SENSOR OUTPUTS

๐Ÿงฉ THE CONTROLLER

INPUT SOCKETS (IN)
OUTPUT SOCKETS (OUT)

ACTUATORS

Pick a sensor from the tray to begin.

Step 2 ยท Program your traffic brain

Write the rules. Your code actually controls the simulation!

TRAFFIC_CONTROLLER.pseudoIF โ€ข THEN โ€ข ELSE โ€ข END IF
1
๐Ÿ“– My syntax cheat sheet and colour preview
IF condition THEN action; optional ELSE IF and ELSE; close with END IF. Use AND / OR for combined conditions. Conditions read the sensor and light values at the start of each second. If multiple rules set the same output, the last assignment wins. Timer counts seconds since a traffic-light colour changed. Use timer, pedestrian_button, vehicle_sensor, siren_sensor, car_light, side_light, pedestrian_signal. Values: GREEN, YELLOW, RED, WALK, WAIT, PRESSED, RELEASED, DETECTED, CLEAR, TRUE, FALSE. Change variables by writing car_light = YELLOW.

Step 3 ยท Test, observe, debug!

Your program runs through real test scenarios.

โ€”Passed
โ€”Needs work
0Debug attempts
Your lab report appears here after you run tests. Wrong answers are useful evidence โ€” fix the code and test again.
๐Ÿ”’
AI Upgrade LabComplete the four automation missions to unlock this experiment.

Remember: writing IFโ€“ELSE rules is automation. In this lab you'll train a small model using examples.

๐Ÿ““ Engineer Notebook โ€” Open when you need help
๐Ÿ“ก What is a sensor?A sensor collects information, such as whether a pedestrian has pushed a button. It provides an input, not an action.
โš™๏ธ What is automation?An automated controller follows the rules you write. IF button PRESSED THEN change its outputs.
๐Ÿ’ฌ What is pseudocode?A readable plan for a program. You can use IF, ELSE, AND and OR to say what the controller should do.
๐Ÿ”€ AND or OR?AND requires both conditions. OR requires either one. Try them in your Level 3 truth table.
๐Ÿ” What is debugging?Run your program, look at failures, locate the mistaken rule, improve it and test again.
๐Ÿง  What is AI?Unlike fixed rules alone, a trained AI model finds patterns in example data and uses them to make predictions. Predictions can be wrong.