Solar-Powered Automated Gardening System with Environmental Monitoring
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
The circuit in question is a complex system that integrates various sensors, actuators, and display modules with three Arduino UNO microcontrollers serving as the central processing units. The circuit is designed to monitor environmental parameters such as temperature, humidity, rain detection, and soil moisture, as well as to control actuators like motors and a servomotor. The system also includes a 0.96" OLED display and an LCD Display 16x4 I2C for user interface and data visualization. Power is supplied through solar panels and 12V batteries, with a toggle switch for on/off control.
Component List
- Arduino UNO: A microcontroller board based on the ATmega328P, featuring digital and analog I/O pins.
- 0.96" OLED: A small display module for visual output, interfacing via I2C.
- KY-015 DHT11: A sensor module for measuring temperature and humidity.
- RAIN SENSOR: A module for detecting rainwater.
- Sonda Sensor Turbidez / Turbidity: A sensor for measuring water turbidity.
- Motor Amarillo Motorreductor Hobby: A hobbyist gear motor for mechanical actuation.
- Solar Panel: A photovoltaic panel for converting solar energy into electrical power.
- YL-69 Sonda: A probe used with the Soil Moisture Module to measure soil moisture levels.
- Soil Moisture Module: A module for detecting the moisture content in soil.
- Servomotor SG90: A small servo motor for precise angular movement.
- LCD Display 16x4 I2C: A 16x4 character LCD display with an I2C interface.
- HC-SR04 Ultrasonic Sensor: A sensor for measuring distances using ultrasonic waves.
- Toggle Switch SPST: A single-pole single-throw switch for circuit control.
- Battery 12V: A 12-volt battery for power supply.
Wiring Details
Arduino UNO
- 5V: Powers the 0.96" OLED, KY-015 DHT11, RAIN SENSOR, Servomotor SG90, HC-SR04 Ultrasonic Sensor, Soil Moisture Module, and LCD Display 16x4 I2C.
- GND: Common ground for the 0.96" OLED, KY-015 DHT11, RAIN SENSOR, Sonda Sensor Turbidez / Turbidity, Servomotor SG90, HC-SR04 Ultrasonic Sensor, Soil Moisture Module, and LCD Display 16x4 I2C.
- A0: Connected to the RAIN SENSOR analog output.
- A1: Connected to the Sonda Sensor Turbidez / Turbidity signal pin.
- A4 (SDA): I2C data line connected to the 0.96" OLED and LCD Display 16x4 I2C.
- A5 (SCL): I2C clock line connected to the 0.96" OLED and LCD Display 16x4 I2C.
- D2: Digital input connected to the KY-015 DHT11 signal pin.
0.96" OLED
- VDD: Power supply (5V from Arduino UNO).
- GND: Ground connection.
- SCK: I2C clock line (connected to Arduino UNO A5).
- SDA: I2C data line (connected to Arduino UNO A4).
KY-015 DHT11
- 5V: Power supply.
- S: Signal pin (connected to Arduino UNO D2).
- GND: Ground connection.
RAIN SENSOR
- AO: Analog output (connected to Arduino UNO A0).
- DO: Digital output (not used in this configuration).
- GRD: Ground connection.
- VCC: Power supply (5V from Arduino UNO).
Sonda Sensor Turbidez / Turbidity
- S: Signal pin (connected to Arduino UNO A1).
- -: Ground connection.
- +: Power supply (5V from Arduino UNO).
Motor Amarillo Motorreductor Hobby
- vcc: Power supply (12V from battery).
- GND: Ground connection (connected to Toggle Switch SPST L1).
Solar Panel
- +: Positive terminal (connected to battery +).
- -: Negative terminal (connected to Toggle Switch SPST COM).
YL-69 Sonda
- +: Positive terminal (connected to Soil Moisture Module positive).
- -: Negative terminal (connected to Soil Moisture Module negative).
Soil Moisture Module
- positive: Power supply (connected to YL-69 Sonda +).
- negative: Ground connection (connected to YL-69 Sonda -).
- Analog: Analog output (not used in this configuration).
- Digital: Digital output (not used in this configuration).
- Ground: Ground connection (common ground with other components).
- VCC: Power supply (5V from Arduino UNO).
Servomotor SG90
- SIG: Signal input (not specified in the wiring details).
- VCC: Power supply (5V from Arduino UNO).
- GND: Ground connection.
LCD Display 16x4 I2C
- SCL: I2C clock line (connected to Arduino UNO A5).
- SDA: I2C data line (connected to Arduino UNO A4).
- VCC: Power supply (5V from Arduino UNO).
- GND: Ground connection.
HC-SR04 Ultrasonic Sensor
- VCC: Power supply (5V from Arduino UNO).
- TRIG: Trigger pin (not specified in the wiring details).
- ECHO: Echo pin (not specified in the wiring details).
- GND: Ground connection.
Toggle Switch SPST
- L1: Connected to the ground of Motor Amarillo Motorreductor Hobby.
- COM: Connected to the negative terminal of the Solar Panel and battery.
Battery 12V
- +: Positive terminal (provides power to the motors and connected to the Solar Panel +).
- -: Negative terminal (connected to the Toggle Switch SPST COM).
Documented Code
Arduino UNO (Instance ID: fa9f06ab-746a-4b34-ab46-34d242e80a2e)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Arduino UNO (Instance ID: 5f379576-9e58-421b-ad26-5ee7c7bb665d)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
(Note: The code provided for the microcontrollers is a template with no specific functionality. Additional code is required to control the components and perform the desired tasks in the circuit.)