Previous site

Parking Lot Gate

Build a parking lot gate that opens when a car arrives.

Build a parking lot gate.

Parking Lot Gate
Finished model

Blocks needed

  • × 1
  • × 1
  • × 25
  • × 32
  • × 1
  • × 2
  • × 1

How to build 20 steps

  1. Step 1
  2. Step 2
  3. Step 3
  4. Step 4
  5. Step 5
  6. Step 6
  7. Step 7
  8. Step 8
  9. Step 9
  10. Step 10
  11. Step 11
  12. Step 12
  13. Step 13
  14. Step 14
  15. Step 15
  16. Step 16
  17. Step 17
  18. Step 18
  19. Step 19
  20. Step 20
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.