Arduino-Controlled Soil Moisture Monitoring with Automatic Water Pump
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary of the Circuit
This circuit is designed to control a 5V mini water pump using an Arduino UNO microcontroller in conjunction with a KY-019 Relay module. The system's operation is influenced by the moisture level in the soil, which is detected by a YL-69 Sonda probe interfaced with a Soil Moisture Module. The Arduino UNO is responsible for processing the moisture level data and activating the relay, which in turn controls the power supply to the water pump. A 9V battery is used to power the relay module and the water pump.
Component List
KY-019 Relay Module 1 Channel
- Description: A relay module used for controlling high power devices.
- Pins: S (Signal), 5V, GND (Ground), NC (Normally Closed), COM (Common), NO (Normally Open)
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: IOREF, Reset, 3.3V, 5V, GND, Vin, Analog Pins (A0-A5), SCL, SDA, AREF, Digital Pins (D0-D13)
5V Mini Water Pump
- Description: A small pump for moving water.
- Pins: Positive pin, Negative pin
Battery 9V
- Description: A 9V battery providing power to the circuit.
- Pins: VCC, GND
YL-69 Sonda
- Description: A probe used to measure soil moisture levels.
- Pins: + (Positive), - (Negative)
Soil Moisture Module
- Description: A module that measures the moisture content in the soil.
- Pins: Positive, Negative, Analog, Digital, Ground, VCC
Wiring Details
KY-019 Relay Module 1 Channel
- S (Signal) connected to Arduino UNO 5V
- 5V connected to Arduino UNO D3
- GND connected to Arduino UNO GND
- NC connected to 5V Mini Water Pump Positive pin
- COM connected to Battery 9V VCC
Arduino UNO
- 5V connected to KY-019 Relay Module S (Signal) and Soil Moisture Module VCC
- D3 connected to KY-019 Relay Module 5V
- GND connected to KY-019 Relay Module GND and Soil Moisture Module Ground
- D10 connected to Soil Moisture Module Digital
5V Mini Water Pump
- Positive pin connected to KY-019 Relay Module NC
- Negative pin connected to Battery 9V GND
Battery 9V
- VCC connected to KY-019 Relay Module COM
- GND connected to 5V Mini Water Pump Negative pin
YL-69 Sonda
-
- (Positive) connected to Soil Moisture Module Positive
-
- (Negative) connected to Soil Moisture Module Negative
Soil Moisture Module
- VCC connected to Arduino UNO 5V
- Ground connected to Arduino UNO GND
- Digital connected to Arduino UNO D10
- Positive connected to YL-69 Sonda +
- Negative connected to YL-69 Sonda -
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Note: The provided code is a template and does not contain any functional code to operate the circuit. The user is expected to write the necessary code to read the soil moisture level from the Soil Moisture Module and control the relay to power the water pump accordingly.