Smart Plant Watering System¶
The Smart Plant Watering System is a beginner-friendly automation project that uses the micro:bit and the sensors in your Neo Beginner Kit to automatically water a plant based on soil moisture levels. This project introduces students to environment sensing, conditional automation, and safe control of external devices using a relay and water pump.
What It Does¶
The system continuously monitors the soil moisture sensor.
-
If the soil is dry, the micro:bit activates the relay, turning ON the water pump to water the plant.
-
If the soil is wet enough, the pump remains OFF. The OLED display shows real-time soil readings and watering status, making it easier to understand how the system behaves.
This forms the foundation for environmental automation systems used in agriculture and home gardening.
Hardware Used¶
This project uses the following modules from the Neo Beginner Kit:
-
Soil Moisture Sensor – Detects dryness or moisture in the soil
-
Relay Module – Safely turns the pump ON and OFF
-
Water Pump + Tube – Pumps water into the plant
-
OLED Display (I2C) – Shows moisture level and pump status
-
Breakout Board + Connection Cables – Plug-and-play connections to micro:bit
How It Works¶
-
The soil moisture sensor sends an analog value to the micro:bit.
-
The micro:bit compares this value to a threshold (dry vs. wet).
-
If the soil is dry, the micro:bit triggers the relay, powering the water pump.
-
The pump runs for a few seconds and then stops to avoid overwatering.
✅ Once you understand how smart plant watering system works, you can expand this idea into different areas of agriculture.
Connection to the breakout¶
-
Connect the moisture sensor to the port 3V3, GND and P1 (Blue)

-
Connect the neopixel ring to the port 3v3, GND and P2 (Blue)

-
Connect 9V battery to the relay and the water pump.

-
Connect the Relay and pump ring to the port 3v3, GND and P8 (Blue).

-
Connect the OLED to the port P20, P19 , GND and 3v3 (Yellow)

-
Connection of Smart plant watering system with the breakout board
