Example Code for micro:bit-Effects of Soil Moisture on Seed Germination
This article provides example code for using a micro:bit to study the effects of soil moisture on seed germination, including hardware and software preparation, wiring diagrams, programming samples, and results.
Hardware Preparation
![]() |
![]() |
![]() |
|---|---|---|
| BOS0038 Soil Moisture Sensor | BOS0035 Mainboard-3IO | BOS0044 OLED Display Module |
![]() |
![]() |
|
| MBT0039 micro:bit | 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

Result
Press the black button on the OLED display module to select the soil moisture sensor mode.
Video Demo:
| Non-programming | Programming |
|---|---|
![]() |
![]() |
Flowchart:

Was this article helpful?







