Case 02: Smart Car Park Access Barrier
Level:★★☆☆☆
The micr:bit will check if there are any vacancies in the car park. If there are any cars entering the car park, (eg. The distance sensor return value <5). Then, the servo will control the car park gate to be opened; otherwise, the gate will keep closing.


Home
/
Smarthon Products
/
Smart City IoT Starter Kit /
Case 02: Smart Car Park Access Barrier
Goal
Create a smart car park access barrier using motion sensor
Materials
- Distance sensor X1
- Light Sensor X1
- 180ᵒ Servo X1
- Connecting Wire X1
- micro:bit X1
- USB Cable X1

Step 1
- Connect the Distance Sensor to P14(trig)/ P15 (echo)

Step 2
- Connect Light Sensor to P0, Servo to P12

Step 3
- Download the code and transfer to micro:bit


Step 4
- Plug the micro:bit into WiFi IoT extension board

Well Done!
You have successfully built your very own smart car park access barrier!