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 BOS0020 bos0035
BOS0006 Steam sensor BOS0020 Buzzer module BOS0035 Mainboard-3IO
MBT0039 BOS0040
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:

Connection 1

Programming Project Connection Diagram:

Connection 2

Other Preparation Work

micro:bit and its expansion board will be used in programming projects.

Additional Information

Flowchart:

Flowchart 1

Was this article helpful?

TOP