Code Example for micro:bit-Anti-theft Exhibition Booth
Last revision 2025/12/08
The article provides a comprehensive guide on setting up an anti-theft system for exhibition booths using micro:bit and BOSON modules, detailing hardware and software preparations, wiring diagrams, and programming with Mind+ and Makecode.
Hardware Preparation
![]() |
|
|---|---|
| BOS0002 Push Button Module | BOS0020 Buzzer Module |
![]() |
![]() |
| MBT0039 Micro:bit | BOS0040 Micro:bit BOSON Expansion Board |
Software Preparation
Wiring Diagram
Other Preparation Work
- Connect the micro:bit to the BOS0040 Micro:bit BOSON Expansion Board.
- Ensure all components are properly wired as per the diagram.
Sample Code
Mind+ Sample Program

Result
The buzzer sounds when the item is taken away (button released).
Additional Information
Flow Chart:

Was this article helpful?



