This simple plant watering system uses the BBC micro:bit Soil Moisture Sensor to estimate the moisture level of soil and display it on the LED matrix screen. An optimum moisture level can be calibrated and using BBC micro:bit Water Pump you can then maintain that level. The sensor works by measuring a voltage related to the conductance of the soil and using it to estimate the amount of moisture in the soil.
The kit comes with example code for the BBC micro:bit to measure the moisture level and maintain healthy plant soil moisture however, you can edit it to suit your own needs, or encourage your students to work out how best to programme the BBC micro:bit for their specific needs.
Please note: This kit does not come with a BBC micro:bit
Included
- 2 x 100mm nails
- 1 x 500mm green input cable
- 1 x 500mm red/black power cable
- 1 x 500mm black GND cable
- 2 x crocodile clip connectors
- 2 x acrylic spacers
- 1 x water pump
Code
Click the links below to download the code for this product. The download is a zip folder containing the image of the code as well as the hex file that can be opened in the micro:bit code editor at www.pxt.io
Plant Watering System Zip
This code uses the micro:bit soil moisture sensor and the micro:bit water pump to maintain a healthy soil moisture level of a plant. Use the buttons to control the water pump a view the soil moisture level.