Example Code for micro:bit-Auto Plant Irrigation System
This article guides users through setting up an auto plant irrigation system using micro:bit, including hardware preparation, software setup, wiring diagrams, and sample code for both non-programming and programming approaches.
Hardware Preparation
![]() |
![]() |
![]() |
|---|---|---|
| BOS0038 Soil Moisture Sensor | BOS0025 Servo Control Module | SER0045 9g Metal Servo Module |
![]() |
![]() |
![]() |
| BOS0032 Threshold Module | MBT0039 micro:bit | BOS0035 Mainboard-3IO |
![]() |
||
| BOS0040 micro:bit BOSON Expansion board |
Tips: micro:bit and Micro:bit BOSON expansion boards are used in the programming example
Software Preparation
Mind+ or Makecode
Wiring Diagram
Non-programming Sample

Programming Sample

Other Preparation Work
Flowchart:

Result
Video Demo:
| Non-programming | Programming |
|---|---|
![]() |
![]() |
Was this article helpful?









