انتقل للمحتوى
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

We build the gate

Section 8: The project: the city's smart gateLesson 8.2 · ⏱ 12 min
🧩 The design
Blocks: loop — repeats forever

📌 Another example: the gate with a short beep

When someone moves: the door opens, the green lights up, and the buzzer beeps briefly.

🧩 The gate with a short beep
Blocks: loop — repeats forever
Nobody: closed
Nobody: closed
Movement: open
Movement: open
✍️ Practise
Build the gate in the lab.
✍️ Practise here in the lessonor open the lab in a new page ↗

🎯 Challenge yourself

Easy

With no movement the door is closed (0), and with movement it is open (90).

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

Result: it opens with movement.

Medium

With movement the green blinks.

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

Result: the green blinks and the door is open.

Hard

With movement: it opens and stays open for 3 seconds before it closes.

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

Result: it stays open after the person leaves.

Finished the lesson? Mark it so your progress counts.