Example Code for micro:bit-Rain Alarm
The article offers a detailed guide on setting up a rain alarm using micro:bit, including hardware requirements, wiring diagrams, and sample codes for both Mind+ and MakeCode to ensure successful project implementation.
Hardware Preparation
![]() |
![]() |
![]() |
|---|---|---|
| BOS0006 Steam sensor | BOS0020 Buzzer module | BOS0035 Mainboard-3IO |
![]() |
![]() |
|
| MBT0039 micro:bit | BOS0040 micro:bit BOSON Expansion Board |
Software Preparation
micro:bit and its expansion board will be used in programming projects.
Wiring Diagram
Non-programming Project Connection Diagram:

Programming Project Connection Diagram:

Other Preparation Work
micro:bit and its expansion board will be used in programming projects.
Additional Information
Flowchart:

Was this article helpful?





