Arduino UNO-Based Smart Irrigation System with Multiple Sensors
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfacing with various sensors and a relay module. The sensors include soil moisture sensors, analog temperature sensors, a water flow sensor, and a fluid pressure sensor. The relay module is used to control external devices. The Arduino UNO reads data from the sensors and can control the relay module based on the sensor inputs.
Component List
Arduino UNO
- Description: A 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
Soil Moisture Sensor
- Description: Measures the moisture level in the soil.
- Pins: VCC, GND, SIG
Analog Temperature Sensor (NTC) (Wokwi Compatible)
- Description: Measures temperature using a Negative Temperature Coefficient (NTC) thermistor.
- Pins: GND, VCC, OUT
4 Channel 30a 5v Relay (Blue)
- Description: A relay module that can control up to 4 devices.
- Pins: 5V, GND, IN1, IN2, IN3, IN4, COM
Water Flow Sensor
- Description: Measures the flow rate of water.
- Pins: Signal, Vcc, GND
Sensor Tekanan Fluida
- Description: Measures fluid pressure.
- Pins: Vcc, Output, Gnd
Wiring Details
Arduino UNO
5V connected to:
- Water Flow Sensor (Vcc)
- Sensor Tekanan Fluida (Vcc)
- Analog Temperature Sensor (NTC) (Wokwi Compatible) (VCC)
- Soil Moisture Sensor (VCC)
- 4 Channel 30a 5v Relay (Blue) (5V)
GND connected to:
- Water Flow Sensor (GND)
- Sensor Tekanan Fluida (Gnd)
- Analog Temperature Sensor (NTC) (Wokwi Compatible) (GND)
- Soil Moisture Sensor (GND)
- 4 Channel 30a 5v Relay (Blue) (GND)
A0 connected to:
- Analog Temperature Sensor (NTC) (Wokwi Compatible) (OUT)
A1 connected to:
- Analog Temperature Sensor (NTC) (Wokwi Compatible) (OUT)
A2 connected to:
- Soil Moisture Sensor (SIG)
A3 connected to:
- Soil Moisture Sensor (SIG)
A4 connected to:
- Sensor Tekanan Fluida (Output)
A5 connected to:
- Water Flow Sensor (Signal)
D13 connected to:
- 4 Channel 30a 5v Relay (Blue) (IN1)
D12 connected to:
- 4 Channel 30a 5v Relay (Blue) (IN2)
D11 connected to:
- 4 Channel 30a 5v Relay (Blue) (IN3)
D10 connected to:
- 4 Channel 30a 5v Relay (Blue) (IN4)
Soil Moisture Sensor
- VCC connected to Arduino UNO (5V)
- GND connected to Arduino UNO (GND)
- SIG connected to Arduino UNO (A2) and (A3)
Analog Temperature Sensor (NTC) (Wokwi Compatible)
- VCC connected to Arduino UNO (5V)
- GND connected to Arduino UNO (GND)
- OUT connected to Arduino UNO (A0) and (A1)
4 Channel 30a 5v Relay (Blue)
- 5V connected to Arduino UNO (5V)
- GND connected to Arduino UNO (GND)
- IN1 connected to Arduino UNO (D13)
- IN2 connected to Arduino UNO (D12)
- IN3 connected to Arduino UNO (D11)
- IN4 connected to Arduino UNO (D10)
Water Flow Sensor
- Vcc connected to Arduino UNO (5V)
- GND connected to Arduino UNO (GND)
- Signal connected to Arduino UNO (A5)
Sensor Tekanan Fluida
- Vcc connected to Arduino UNO (5V)
- Gnd connected to Arduino UNO (GND)
- Output connected to Arduino UNO (A4)
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:
}
Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the microcontroller.