Code Example for micro:bit-Simple Flood Warning System

This article guides you through building a simple flood warning system using a micro:bit, offering comprehensive instructions including hardware preparation, software setup, wiring diagrams, and sample code using Mind+ and MakeCode. It's a valuable resource for beginners interested in flood detection systems.

Hardware Preparation

BOS0006 BOS0020-1 bos0017
BOS0006 Steam Sensor BOS0020 Buzzer Module BOS0017 Red/Green/Yellow LED Module
MBT0039 BOS0040
MBT0039 micro:bit micro:bit BOSON Expansion Board

Software Preparation

Mind+ and MakeCode

Wiring Diagram

Connection Diagram:

Connection 3

Sample Code

Mind+ Sample Program:

Simple Flood Alarm

Additional Information

Flowchart

Flowchart 3

Was this article helpful?

TOP