Arduino UNO-Based Smart Irrigation System with Soil Moisture Sensor and LCD Display
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfacing with various sensors, actuators, and display components. The components include a capacitive soil moisture sensor, a temperature sensor, a fan, a water pump, an LCD display, an LED light strip, a photocell (LDR), resistors, and an NPN transistor. The circuit is powered by an SMPS power supply.
Component List
Arduino UNO
- Description: Microcontroller board based on the ATmega328P.
- 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
Fan
- Description: 5V fan for cooling purposes.
- Pins: GND, 5V
Capacitive Soil Moisture Sensor V1.2
- Description: Sensor to measure soil moisture levels.
- Pins: GND, VCC, AOUT
16x2 I2C LCD
- Description: 16x2 character LCD display with I2C interface.
- Pins: GND, VCC, SDA, SCL
Temperature Sensor (TEMP)
- Description: Sensor to measure temperature.
- Pins: 5V, D3, GND
5V Mini Water Pump
- Description: Small water pump for irrigation.
- Pins: Positive pin, Negative pin
Photocell (LDR)
- Description: Light-dependent resistor to measure light intensity.
- Pins: Pin 0, Pin 1
Resistor (10k Ohms)
- Description: Resistor with 10k Ohms resistance.
- Pins: Pin1, Pin2
Resistor (200 Ohms)
- Description: Resistor with 200 Ohms resistance.
- Pins: Pin1, Pin2
LED Light Strips (Violet)
- Description: Violet LED light strips.
- Pins: VCC, GND
NPN Transistor (EBC)
- Description: NPN transistor with emitter, base, and collector pins.
- Pins: Emitter, Base, Collector
SMPS_LRS-100-12
- Description: Switched-mode power supply.
- Pins: L: Live, N: Neutral, GND, -V, +V
Wiring Details
Arduino UNO
- GND: Connected to GND of Fan, Capacitive Soil Moisture Sensor, Temperature Sensor, SMPS, Resistor (10k Ohms), and 16x2 I2C LCD.
- 5V: Connected to Pin 0 of Photocell, VCC of 16x2 I2C LCD, VCC of Capacitive Soil Moisture Sensor, and D3 of Temperature Sensor.
- A0: Connected to Pin 1 of Photocell and Pin2 of Resistor (10k Ohms).
- A1: Connected to AOUT of Capacitive Soil Moisture Sensor.
- A4: Connected to SDA of 16x2 I2C LCD.
- A5: Connected to SCL of 16x2 I2C LCD.
- D3: Connected to 5V of Fan.
- D5: Connected to Pin2 of Resistor (200 Ohms).
- D6: Connected to Positive pin of 5V Mini Water Pump.
- D9: Connected to 5V of Temperature Sensor.
Fan
- GND: Connected to GND of Arduino UNO.
- 5V: Connected to D3 of Arduino UNO.
Capacitive Soil Moisture Sensor V1.2
- GND: Connected to GND of Arduino UNO.
- VCC: Connected to 5V of Arduino UNO.
- AOUT: Connected to A1 of Arduino UNO.
16x2 I2C LCD
- GND: Connected to GND of Arduino UNO.
- VCC: Connected to 5V of Arduino UNO.
- SDA: Connected to A4 of Arduino UNO.
- SCL: Connected to A5 of Arduino UNO.
Temperature Sensor (TEMP)
- 5V: Connected to D9 of Arduino UNO.
- D3: Connected to 5V of Arduino UNO.
- GND: Connected to GND of Arduino UNO.
5V Mini Water Pump
- Positive pin: Connected to D6 of Arduino UNO.
- Negative pin: Connected to Emitter of NPN Transistor.
Photocell (LDR)
- Pin 0: Connected to 5V of Arduino UNO.
- Pin 1: Connected to A0 of Arduino UNO and Pin2 of Resistor (10k Ohms).
Resistor (10k Ohms)
- Pin1: Connected to GND of Arduino UNO.
- Pin2: Connected to Pin 1 of Photocell and A0 of Arduino UNO.
Resistor (200 Ohms)
- Pin1: Connected to Base of NPN Transistor.
- Pin2: Connected to D5 of Arduino UNO.
LED Light Strips (Violet)
- VCC: Connected to +V of SMPS.
- GND: Connected to Collector of NPN Transistor.
NPN Transistor (EBC)
- Emitter: Connected to Negative pin of 5V Mini Water Pump.
- Base: Connected to Pin1 of Resistor (200 Ohms).
- Collector: Connected to GND of LED Light Strips.
SMPS_LRS-100-12
- -V: Connected to GND of Arduino UNO.
- +V: Connected to VCC of LED Light Strips.
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)