Solar-Powered Water Pump Control System Documentation
Summary
This document describes a solar-powered water pump control system designed to automate irrigation based on soil moisture levels. The system harnesses solar energy to power a water pump and uses an Arduino UNO microcontroller to monitor soil moisture through multiple SparkFun gator:soil sensors. A solar charge controller manages the power from the solar panels to charge a 12V battery and supply power to the system. The water flow is monitored by a water flow sensor, and a relay module is used to control the water pump motor.
Component List
Solar Panels
- Description: Photovoltaic panels that convert sunlight into electrical energy.
- Purpose: To provide a renewable energy source for charging the battery and powering the system.
Solar Charge Controller
- Description: A device that regulates the voltage and current coming from the solar panels going to the battery.
- Purpose: To protect the battery from overcharging and to supply power to the load.
12V 200Ah Battery
- Description: A rechargeable battery that stores electrical energy.
- Purpose: To provide power to the system when solar energy is insufficient.
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Purpose: To control the system logic, read sensor data, and manage the operation of the water pump.
SparkFun gator:soil
- Description: A soil moisture sensor that measures the volumetric content of water in the soil.
- Purpose: To determine when irrigation is needed based on soil moisture levels.
Water Flow Sensor
- Description: A sensor that measures the rate of water flow.
- Purpose: To monitor the amount of water being pumped for irrigation.
5.5 HP Water Pump Motor
- Description: An electric motor that drives the water pump.
- Purpose: To pump water for irrigation when activated by the system.
RELAY MODULE
- Description: An electrically operated switch that allows the Arduino to control high-power devices.
- Purpose: To control the on/off state of the water pump motor.
Comments
- Description: Text placeholders for additional notes or documentation.
- Purpose: To provide context or additional information within the circuit design.
Wiring Details
Solar Panels
- Connected in series and parallel to match the input requirements of the Solar Charge Controller.
Solar Charge Controller
- Solar Cell + / -: Connected to the solar panels.
- Battery + / -: Connected to the 12V 200Ah Battery.
- Load + / -: Connected to the Arduino UNO and other system components.
12V 200Ah Battery
- GND: Connected to the ground of the system.
- 12V: Supplies power to the Water Pump Motor and the Solar Charge Controller.
Arduino UNO
- Vin: Receives power from the Solar Charge Controller.
- GND: Common ground for the system.
- 5V: Powers the SparkFun gator:soil sensors, RELAY MODULE, and Water Flow Sensor.
- A0, A1, A2: Connected to the SIG pins of the SparkFun gator:soil sensors for soil moisture readings.
- D2: Connected to the Signal pin of the Water Flow Sensor.
- D3: Connected to the INPUT pin of the RELAY MODULE to control the Water Pump Motor.
SparkFun gator:soil
- VCC: Powered by the 5V output from the Arduino UNO.
- GND: Connected to the common ground.
- SIG: Outputs an analog signal to the Arduino UNO's analog pins (A0, A1, A2).
Water Flow Sensor
- Vcc: Powered by the 5V output from the Arduino UNO.
- GND: Connected to the common ground.
- Signal: Outputs a pulse signal to the Arduino UNO's digital pin D2.
5.5 HP Water Pump Motor
- VCC: Powered by the 12V output from the Battery.
- GND: Connected to the common ground.
- CONTROL (PWM SPEED): Controlled by the RELAY MODULE.
RELAY MODULE
- VCC: Powered by the 5V output from the Arduino UNO.
- GND: Connected to the common ground.
- INPUT: Receives control signal from the Arduino UNO's digital pin D3.
- COM: Connected to the Water Pump Motor's CONTROL pin.
- NC: Normally closed pin, not used in this application.
Documented Code
Arduino UNO - sketch.ino
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Arduino UNO - documentation.txt
(No additional documentation provided)
This concludes the documentation for the solar-powered water pump control system. The system is designed to be energy-efficient and responsive to environmental conditions, ensuring optimal irrigation.
