Parking Lot Gate
Build a parking lot gate that opens when a car arrives.
Build a parking lot gate.

Blocks needed
- × 1

- × 1

- × 25

- × 32

- × 1

- × 2

- × 1

How to build 20 steps
1 / 20
Coding mission
Build a parking lot gate that lifts its bar when a car comes close.
Blocks and their jobs
DC Motor BlockGate bar
Proximity Sensor BlockFinds the car
Let's think
Which machines around us use an infrared sensor (proximity sensor)? Think about them and talk about what they do.
Automatic tap

Water comes out when you put your hands near it.
Phone

It goes silent when you turn it face down.
Automatic door
The door opens when a person comes close.
Show the solution
When no car is in front of the gate, the bar stays down (closed). When a car comes close, the bar goes up (open) by itself, waits 10 seconds for the car to pass, and comes back down.
Mission complete!
Built it and coded it? Tap to save your progress.




















