We build the gate
Section 8: The project: the city's smart gateLesson 8.2 · ⏱ 12 min

📌 Another example: the gate with a short beep
When someone moves: the door opens, the green lights up, and the buzzer beeps briefly.



✍️ Practise
Build the gate in the lab.
✍️ Practise here in the lesson✖ Close the labor 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🙈 Hide the solution


Result: it opens with movement.
Medium
With movement the green blinks.
👀 Show the solution🙈 Hide the solution


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🙈 Hide the solution


Result: it stays open after the person leaves.

