Arduino-Powered Environmental Monitoring Station with OLED Display and Solar Charging
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates various sensors, displays, and actuators with multiple Arduino UNO microcontrollers serving as the central processing units. The circuit is designed to monitor environmental parameters such as rain detection, turbidity, and soil moisture, and display information on an OLED and an LCD display. It also includes a DHT11 sensor for temperature and humidity readings, a turbidity sensor, a rain sensor, and a soil moisture sensor. Actuation is handled by hobby motors and a servomotor, and the system is powered by a combination of a solar panel and a 12V battery. The circuit's functionality is extended with an ultrasonic sensor for distance measurement and a toggle switch for manual control.
Component List
Microcontrollers
- Arduino UNO: A microcontroller board based on the ATmega328P, featuring digital and analog I/O pins.
Sensors
- 0.96" OLED: A small display for showing data such as sensor readings.
- KY-015 DHT11: A sensor for measuring temperature and humidity.
- RAIN SENSOR: A sensor for detecting rainfall.
- Sonda Sensor Turbidez / turbidity: A sensor for measuring the turbidity of liquids.
- YL-69 Sonda: A probe used with the Soil Moisture Module to measure soil moisture levels.
- HC-SR04 Ultrasonic Sensor: A sensor for measuring distances using ultrasonic waves.
Actuators
- Motor amarillo motorreductor hobby: A hobby motor for mechanical movements.
- Servomotor SG90: A small servo for precise control of mechanical components.
Power Supply
- Solar Panel: A photovoltaic panel for converting solar energy into electrical power.
- battery 12v: A 12V battery for providing power to the circuit.
Other Components
- Soil Moisture Module: A module for determining the moisture content in soil.
- LCD Display 16x4 I2C: A 16x4 character LCD display with an I2C interface.
- Toggle Switch spst: A single-pole single-throw switch for manual control.
Wiring Details
Arduino UNO
- 5V: Connected to the VCC of the RAIN SENSOR, OLED, KY-015 DHT11, and other 5V pins of components.
- GND: Common ground connected to the GND of all components requiring a ground connection.
- Vin: Connected to the positive output of the Solar Panel, the positive terminal of the 12V battery, and the VCC of the hobby motors.
- A0: Connected to the AO pin of the RAIN SENSOR.
- A1: Connected to the S pin of the turbidity sensor.
- A4: Connected to the SDA pin of the OLED.
- A5: Connected to the SCK pin of the OLED.
- D2: Connected to the S pin of the KY-015 DHT11.
0.96" OLED
- VDD: Connected to the 5V supply.
- GND: Connected to the common ground.
- SCK: Connected to A5 on the Arduino UNO.
- SDA: Connected to A4 on the Arduino UNO.
KY-015 DHT11
- 5V: Connected to the 5V supply.
- S: Connected to D2 on the Arduino UNO.
- GND: Connected to the common ground.
RAIN SENSOR
- VCC: Connected to the 5V supply.
- GRD: Connected to the common ground.
- AO: Connected to A0 on the Arduino UNO.
Sonda Sensor Turbidez / turbidity
- +: Connected to the 5V supply.
- -: Connected to the common ground.
- S: Connected to A1 on the Arduino UNO.
Motor amarillo motorreductor hobby
- vcc: Connected to the Vin (power supply).
- GND: Connected to the common ground through the Toggle Switch spst.
Solar Panel
- +: Connected to the Vin on the Arduino UNO and the VCC of the hobby motors.
- -: Connected to the common ground.
YL-69 Sonda
- +: Connected to the positive pin of the Soil Moisture Module.
- -: Connected to the negative pin of the Soil Moisture Module.
Soil Moisture Module
- positive: Connected to the + pin of the YL-69 Sonda.
- negative: Connected to the - pin of the YL-69 Sonda.
- Ground: Connected to the common ground.
- VCC: Connected to the 5V supply.
Servomotor SG90
- SIG: Signal pin (not specified in the wiring details).
- VCC: Connected to the 5V supply.
- GND: Connected to the common ground.
LCD Display 16x4 I2C
- SCL: Connected to A5 on the Arduino UNO.
- SDA: Connected to A4 on the Arduino UNO.
- VCC: Connected to the 5V supply.
- GND: Connected to the common ground.
Toggle Switch spst
- COM: Connected to the common ground.
- L1: Connected to the GND of the hobby motors.
battery 12v
- +: Connected to the Vin on the Arduino UNO and the VCC of the hobby motors.
- -: Connected to the common ground.
Documented Code
Arduino UNO (Instance ID: f200e742-4710-4b1e-ba45-449cafafde86)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Arduino UNO (Instance ID: f6f3dba8-d8b7-4744-991f-8cd2fb4f1519)
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. Actual implementation code is required for the circuit to perform its intended tasks.)