traffic-light
Live
normal
red
▶ onentry
red_yellow
▶ onentry
green
▶ onentry
yellow
▶ onentry
emergency
▶ onentry
blink_on
▶ onentry
blink_off
▶ onentry
emergency
timer
timer
timer
timer
normal
blink
blink
TRAFFIC LIGHT STATE MACHINE
═══════════════════════════════════════════════════════════════
NORMAL OPERATION (counter-clockwise cycle):
red (5s) → red_yellow (1.5s) → green (5s) → yellow (2s) → red
• red: Stop - vehicles must wait
• red_yellow: Prepare to go (European style)
• green: Go - vehicles may proceed
• yellow: Prepare to stop - clear intersection
EMERGENCY MODE (blinking):
blink_on (500ms) ↔ blink_off (500ms)
• Yellow light flashes continuously
• Used for maintenance or low-traffic hours
EVENTS:
• timer (internal) Automatic timed transitions
• blink (internal) Emergency blink toggle
• emergency (public) Switch to emergency mode
• normal (public) Return to normal operation
-
◻
+
▶ Start
↺ Reset
Ready
▼ Show Details
Active States
Not started
Events
Public Events
emergency
normal
Internal Events
blink
timer
Send
Variables
No variables
Set
Execution Log
No events yet