Home › Projects › Arduino automatic plant watering: soil sensor, relay and pump

Arduino automatic plant watering: soil sensor, relay and pump

by Zen Circuit Lab · published today · 0 opened in the lab · 0 page views

Arduino automatic plant watering: soil sensor, relay and pump: the circuit on the lab bench

Open in the lab ▸Make my own copy

A capacitive soil sensor tells the Arduino how wet the soil is. Below 35 % it switches a relay module, and the relay runs a small 5 V pump in 3-second bursts with 10-second pauses, so the water soaks in before the next reading. Green LED: soil OK; red: dry. The pump has its own supply and a diode across it, so its kick never reaches the Arduino. Click the sensor and change the moisture. Open it and press Run: the sketch is inside the board (click the board, then Code). Every part, pin and resistor matches what you would build on a real breadboard; the guided build of the same name has the test sheet and hidden faults.

What is on the bench

11 parts, 18 wires, with a sketch (the program runs in the lab). Boards: Arduino Uno R3.

Resistor2
LED2
Arduino Uno R31
USB charger / port1
Soil moisture sensor1
Relay module1
Bench power supply1
DC motor1
Signal diode1

Put it on your page

The project runs live inside the frame: readers can press buttons, turn knobs and read the meters.

<iframe src="https://zencircuitlab.com/embed/zclcplant" width="100%" height="560" style="border:1px solid #2f363a;border-radius:10px" loading="lazy" title="Arduino automatic plant watering: soil sensor, relay and pump on Zen Circuit Lab"></iframe>

Link

https://zencircuitlab.com/p/zclcplant

Published by its author under the lab's community terms: it may be opened, copied and changed by anyone. Simulation results are for learning; check a real build against the parts' datasheets.