Effect Demonstration Example for micro:bit
This micro:bit hydroponics demo shows how to connect sensors and actuators to quickly build an automated drip irrigation or hydroponic system. It’s like wiring a smart mini greenhouse that reacts to water level and pH. The hardware diagram maps each module to a specific micro:bit expansion port: the water level sensor plugs into P0, the pH sensor into P1, the full spectrum grow LED strip light into C0, and the peristaltic pump into M1, ensuring beginners avoid wiring mistakes. A linked MakeCode user library for the Building Block Expansion Board simplifies coding by offering ready-made blocks for these devices, and an example project plus a downloadable microbit-Hydroponics-Kit zip file provide a complete starting point from video demonstration to hands-on programming and classroom-friendly experiments.
Demonstration Video
Hardware Diagram
| SENSOR | PIN |
|---|---|
| Water Level Sensor | P0 |
| pH Sensor | P1 |
| Full Spectrum Grow LED Strip Light | C0 |
| Peristaltic Pump | M1 |
Example Code
MakeCode User Library Link for Building Block Expansion Board

Download the Example Code
microbit-Hydroponics-Kit .zip
Was this article helpful?

