top of page
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.
Case 02: Smart Car Park Access Barrier
目標
Create a smart car park access barrier using motion sensor
材料
- Distance sensor X1
- Light Sensor X1
- 180ᵒ Servo X1
- Connecting Wire X1
- micro:bit X1
- USB Cable X1
步驟 1
- Connect the Distance Sensor to P14(trig)/ P15 (echo)
步驟 2
- Connect Light Sensor to P0, Servo to P12
步驟 3
- Download the code and transfer to micro:bit
步驟 4
- Plug the micro:bit into WiFi IoT extension board
完成!
You have successfully built your very own smart car park access barrier!
bottom of page