Circuit Documentation
Summary
This circuit is designed to manage and monitor a solar power system. It includes a solar panel, an MPPT solar charge controller (SCC), a 12V battery, a relay, a power supply, a buck converter, and various sensors and microcontrollers. The system is capable of monitoring environmental conditions and controlling connected devices.
Component List
Solar Panel
- Description: Converts sunlight into electrical energy.
- Pins: +, -
MPPT SCC (Maximum Power Point Tracking Solar Charge Controller)
- Description: Optimizes the power output from the solar panel and charges the battery.
- Pins: SOLAR+, SOLAR-, BATTERY+, BATTERY-, LOAD+, LOAD-
12V 200Ah Battery
- Description: Stores electrical energy for later use.
- Pins: GND, 12V
12V Relay
- Description: Electrically operated switch.
- Pins: NO, COM, NC, IN, DC-, DC+
POWER SUPPLY 12V 5AMP
- Description: Converts 220V AC to 12V DC.
- Pins: 220V Positive Pole (AC), 220V Negative Pole (AC), GND, GND (DC), 12V-24V Output (DC)
Buck Converter
- Description: Steps down voltage from a higher level to a lower level.
- Pins: IN+, IN-, OUT+, OUT-
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
ESP32 CAM
- Description: Microcontroller with camera module.
- Pins: 5V, GND, GPIO12, GPIO13, GPIO15, GPIO14, GPIO2, GPIO4, 3.3V, GPIO16, GPIO0, 3.3V / 5V / P_OUT, GPIO3 / RX, GPIO1 / TX
RAIN SENSOR
- Description: Detects the presence of rain.
- Pins: AO, DO, GRD, VCC
DHT22
- Description: Temperature and humidity sensor.
- Pins: +, Out, -
Adafruit TCS34725 RGB Color Sensor
- Description: Measures color and light intensity.
- Pins: LED_EN, INT, SDA, SCL, +3V3, GND, VIN
Servo
- Description: Actuator for precise control of angular position.
- Pins: GND, VCC, PWM
power 220v
- Description: Provides 220V AC power.
- Pins: hot wire, neutral wire
DS1302 RTC
- Description: Real-time clock module.
- Pins: VCC, GND, CLK, DATA, RST
Wiring Details
Solar Panel
- + connected to MPPT SCC SOLAR+
- - connected to MPPT SCC SOLAR-
MPPT SCC
- SOLAR+ connected to Solar Panel +
- SOLAR- connected to Solar Panel -
- BATTERY+ connected to 12V 200Ah Battery 12V
- BATTERY- connected to 12V 200Ah Battery GND
- LOAD+ connected to 12V Relay NC
- LOAD- connected to Arduino UNO GND, Buck converter IN-, 12V Relay IN, 12V Relay DC-, POWER SUPPLY 12V 5AMP GND (DC)
12V 200Ah Battery
- 12V connected to MPPT SCC BATTERY+
- GND connected to MPPT SCC BATTERY-
12V Relay
- NO connected to 12V Relay DC+
- COM connected to Arduino UNO Vin, Buck converter IN+
- NC connected to MPPT SCC LOAD+
- IN connected to MPPT SCC LOAD-
- DC- connected to MPPT SCC LOAD-
- DC+ connected to 12V Relay NO, POWER SUPPLY 12V 5AMP 12V-24V Output (DC)
POWER SUPPLY 12V 5AMP
- 220V Positive Pole (AC) connected to power 220v hot wire
- 220V Negative Pole (AC) connected to power 220v neutral wire
- GND (DC) connected to MPPT SCC LOAD-
- 12V-24V Output (DC) connected to 12V Relay DC+
Buck Converter
- IN+ connected to Arduino UNO Vin, 12V Relay COM
- IN- connected to MPPT SCC LOAD-
- OUT+ connected to Adafruit TCS34725 RGB Color Sensor VIN, Servo VCC, RAIN SENSOR VCC, ESP32 CAM 5V, DS1302 RTC VCC, DHT22 +
- OUT- connected to Adafruit TCS34725 RGB Color Sensor GND, Servo GND, RAIN SENSOR GRD, ESP32 CAM GND, DS1302 RTC GND, DHT22 -
Arduino UNO
- Vin connected to Buck converter IN+, 12V Relay COM
- GND connected to MPPT SCC LOAD-
- A0 connected to DHT22 Out
- A1 connected to RAIN SENSOR AO
- SCL connected to Adafruit TCS34725 RGB Color Sensor SCL
- SDA connected to Adafruit TCS34725 RGB Color Sensor SDA
- D9 connected to Servo PWM
- D7 connected to DS1302 RTC RST
- D6 connected to DS1302 RTC DATA
- D5 connected to DS1302 RTC CLK
- D1 connected to ESP32 CAM GPIO3 / RX
- D0 connected to ESP32 CAM GPIO1 / TX
ESP32 CAM
- 5V connected to Buck converter OUT+
- GND connected to Buck converter OUT-
- GPIO3 / RX connected to Arduino UNO D1
- GPIO1 / TX connected to Arduino UNO D0
RAIN SENSOR
- VCC connected to Buck converter OUT+
- GRD connected to Buck converter OUT-
- AO connected to Arduino UNO A1
DHT22
- + connected to Buck converter OUT+
- Out connected to Arduino UNO A0
- - connected to Buck converter OUT-
Adafruit TCS34725 RGB Color Sensor
- VIN connected to Buck converter OUT+
- GND connected to Buck converter OUT-
- SCL connected to Arduino UNO SCL
- SDA connected to Arduino UNO SDA
Servo
- VCC connected to Buck converter OUT+
- GND connected to Buck converter OUT-
- PWM connected to Arduino UNO D9
power 220v
- hot wire connected to POWER SUPPLY 12V 5AMP 220V Positive Pole (AC)
- neutral wire connected to POWER SUPPLY 12V 5AMP 220V Negative Pole (AC)
DS1302 RTC
- VCC connected to Buck converter OUT+
- GND connected to Buck converter OUT-
- CLK connected to Arduino UNO D5
- DATA connected to Arduino UNO D6
- RST connected to Arduino UNO D7
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 documented code.
