انتقل للمحتوى
Robo EgyptRobo Egypt
☰ Course contents
Robo Maker: home
0. Lab tour1
1. The start: the Arduino6
2. Wiring and the traffic light4
3. Inputs: the button4
4. Sound and movement5
5. Sensors and numbers5
6. Distance, the screen and colours5
7. Motors and the car4
8. The project: the city's smart gate3
9. From blocks to C++ code5
10. Sensors and screens in code5
11. Smart systems5
12. Bluetooth: control from the phone1

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.

🧩 All three on
Blocks: loop — repeats forever
All the wires are right
All the wires are right
✍️ Practise
The program is ready: connect the wires yourself, then run.
✍️ Practise here in the lessonor open the lab in a new page ↗

🎯 Challenge yourself

Easy

Turn on only the yellow (12).

👀 Show the solution
🧩 Solution
Blocks: loop — repeats forever
In the lab
In the lab

Result: only the yellow.

Medium

Turn on only the red and the green.

👀 Show the solution
🧩 Solution
Blocks: loop — repeats forever
In the lab
In the lab

Result: red and green.

Hard

Turn them on one after another, one LED every second, and they stay on.

👀 Show the solution
🧩 Solution
Blocks: setup — runs once
In the lab
In the lab

Result: they light up in order.

Finished the lesson? Mark it so your progress counts.