Arduino-Based Smart Irrigation System with Soil Moisture and pH Sensors, GSM Connectivity, and Battery Power
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit is designed to monitor soil moisture and pH levels, control a water pump, and communicate data via a GSM module. The core of the circuit is an Arduino UNO microcontroller, which interfaces with various sensors and actuators to achieve the desired functionality.
Component List
SparkFun Soil Moisture Sensor
- Pins: VCC, GND, SIG
- Description: Measures the moisture level in the soil.
- Purpose in Circuit: Provides soil moisture data to the Arduino.
Arduino UNO
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
- Description: A microcontroller board based on the ATmega328P.
- Purpose in Circuit: Central control unit for processing sensor data and controlling the water pump and GSM module.
PH Meter
- Pins: Signal, VCC, GND
- Description: Measures the pH level of the soil.
- Purpose in Circuit: Provides pH data to the Arduino.
1 Channel 5V Relay Module
- Pins: VCC+, VCC- (GND), IN, N.O., COM, N.C.
- Description: A relay module to control high-power devices.
- Purpose in Circuit: Controls the water pump based on signals from the Arduino.
Water Pump
- Pins: VCC, GND
- Description: A pump to water the soil.
- Purpose in Circuit: Waters the soil when activated by the relay module.
18650 Li-ion Battery x 2
- Pins: +, -
- Description: Provides power to the water pump.
- Purpose in Circuit: Supplies power to the water pump through the relay module.
SIM 800L V2.0 GSM
- Pins: SIM_TXD, VDD, SIM.RXD, 5V/4V, GND, RST
- Description: A GSM module for communication.
- Purpose in Circuit: Sends data to a remote server or receives commands via GSM.
Wiring Details
SparkFun Soil Moisture Sensor
- VCC connected to Arduino UNO 5V
- GND connected to Arduino UNO GND
- SIG connected to Arduino UNO A0
Arduino UNO
- 5V connected to SparkFun Soil Moisture Sensor VCC, PH Meter VCC, 1 Channel 5V Relay Module VCC+, SIM 800L V2.0 GSM 5V/4V
- GND connected to SparkFun Soil Moisture Sensor GND, PH Meter GND, 1 Channel 5V Relay Module VCC- (GND), SIM 800L V2.0 GSM GND
- A0 connected to SparkFun Soil Moisture Sensor SIG
- A1 connected to PH Meter Signal
- D7 connected to 1 Channel 5V Relay Module IN
- D10 connected to SIM 800L V2.0 GSM SIM.RXD
- D11 connected to SIM 800L V2.0 GSM SIM_TXD
PH Meter
- VCC connected to Arduino UNO 5V
- GND connected to Arduino UNO GND
- Signal connected to Arduino UNO A1
1 Channel 5V Relay Module
- VCC+ connected to Arduino UNO 5V
- VCC- (GND) connected to Arduino UNO GND
- IN connected to Arduino UNO D7
- N.O. connected to Water Pump VCC
- COM connected to 18650 Li-ion Battery +
Water Pump
- VCC connected to 1 Channel 5V Relay Module N.O.
- GND connected to 18650 Li-ion Battery -
18650 Li-ion Battery x 2
- + connected to 1 Channel 5V Relay Module COM
- - connected to Water Pump GND
SIM 800L V2.0 GSM
- 5V/4V connected to Arduino UNO 5V
- GND connected to Arduino UNO GND
- SIM_TXD connected to Arduino UNO D11
- SIM.RXD connected to Arduino UNO D10
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:
}
Additional Documentation (documentation.txt)