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.

smart%20city%20label_edited.png
smart%20city%20label_edited.png

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

case1_completed.jpeg

Step 1

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

case1_completed.jpeg

Step 2

- Connect Light Sensor to P0, Servo to P12

case1_completed.jpeg

Step 3

- Download the code and transfer to micro:bit

case1_completed.jpeg
case1_completed.jpeg

Step 4

- Plug the micro:bit into WiFi IoT extension board

case1_completed.jpeg

Well Done!

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