Wire it yourself
Section 2: Wiring and the traffic lightLesson 2.1 · ⏱ 8 min
The LED needs a complete path like any circuit: from the pin → the LED's long leg → the short leg → a resistor → GND.
- The pin works like the battery's + when it is HIGH.
- GND is the negative −, and every circuit must come back to it.
- The resistor protects the LED, as in the Robo Circuits course.
📌 Another example: all three on
After wiring: turn on all three LEDs to check that every wire is in its place.


✍️ Practise
The program is ready: connect the wires yourself, then run.
✍️ Practise here in the lesson✖ Close the labor open the lab in a new page ↗
🎯 Challenge yourself
Easy
Turn on only the yellow (12).
👀 Show the solution🙈 Hide the solution


Result: only the yellow.
Medium
Turn on only the red and the green.
👀 Show the solution🙈 Hide the solution


Result: red and green.
Hard
Turn them on one after another, one LED every second, and they stay on.
👀 Show the solution🙈 Hide the solution


Result: they light up in order.

