ESP32-Based Sensor and Actuator Control System with Solar and AC Power Integration
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates various components to perform a set of functions that likely involve sensing, control, and power management. The central processing unit is an ESP32 microcontroller, which interfaces with several peripheral devices including servo motors, LDR (Light Dependent Resistor) modules, a DS3231 Real-Time Clock (RTC), an ACS712 current sensor, a voltage sensor, and a power supply system that includes a solar panel, a buck converter, and a 5V power supply. The circuit is designed to operate with both AC and DC power sources, with provisions for converting and regulating voltages as required by the different components.
Component List
Microcontroller
- ESP32 (30 pin): A microcontroller with Wi-Fi and Bluetooth capabilities, featuring a wide range of GPIO pins for interfacing with various sensors and actuators.
Sensors
- LDR Module 3 pin: A light sensor module that outputs a digital signal based on light intensity.
- DS3231 RTC: A highly accurate I2C real-time clock with a built-in temperature-compensated crystal oscillator.
- ACS712 Current Sensor 5A 20A 30A: A hall-effect-based linear current sensor that outputs an analog voltage proportional to the current passing through it.
- Voltage Sensor DC 25V: A module that measures DC voltage up to 25V and outputs an analog voltage that is proportional to the measured voltage.
Actuators
- Servo: An electromechanical device that can be precisely controlled to move to a specified position.
Power Components
- POWER SUPPLY 5V 5AMP: A power supply unit that converts AC voltage to 5V DC with a maximum current output of 5A.
- Buck converter: A DC-DC converter that steps down voltage from a higher level to a lower level.
- Solar Panel: A photovoltaic panel that converts sunlight into electrical energy.
- 2.1mm Barrel Jack with Terminal Block: A connector used for attaching external power sources to the circuit.
Miscellaneous
- power outlet (IL): A standard power outlet interface for connecting the power supply to the AC mains.
Wiring Details
ESP32 (30 pin)
EN- Not connectedVP- Not connectedVN- Not connectedD34- Connected to Voltage Sensor DC 25V outputD35- Connected to ACS712 Current Sensor OUTD32- Not connectedD33- Not connectedD25- Not connectedD26- Not connectedD27- Connected to LDR Module DOD14- Connected to LDR Module DOD12- Connected to LDR Module DOD13- Connected to LDR Module DOGND- Connected to various GND pins of other componentsVin- Not connectedD23- Not connectedD22- Connected to DS3231 RTC SCLTX0- Not connectedRX0- Not connectedD21- Connected to DS3231 RTC SDAD19- Connected to Servo pulseD18- Connected to Servo pulseD5- Not connectedTX2- Not connectedRX2- Not connectedD4- Not connectedD2- Not connectedD15- Not connected3V3- Connected to 2.1mm Barrel Jack POS
Servo
gnd- Connected to 2.1mm Barrel Jack NEGvcc- Connected to 2.1mm Barrel Jack POSpulse- Connected to ESP32 D18 or D19
LDR Module 3 pin
VCC- Connected to 2.1mm Barrel Jack POSGND- Connected to 2.1mm Barrel Jack NEGDO- Connected to ESP32 D12, D13, D14, or D27
DS3231 RTC
32K- Not connectedSQW- Not connectedSCL- Connected to ESP32 D22SDA- Connected to ESP32 D21VCC- Connected to 2.1mm Barrel Jack POSGND- Connected to 2.1mm Barrel Jack NEG
ACS712 Current Sensor
1- Connected to Solar Panel VCC2- Connected to Solar Panel GNDGND- Connected to 2.1mm Barrel Jack NEGOUT- Connected to ESP32 D35VCC- Connected to 2.1mm Barrel Jack POS
Voltage Sensor DC 25V
+- Not connected-- Connected to 2.1mm Barrel Jack NEGoutput- Connected to ESP32 D34gnd- Connected to Solar Panel GNDvcc- Connected to Solar Panel VCC
POWER SUPPLY 5V 5AMP
220V Positive Pole (AC)- Connected to power outlet L220V Negative Pole (AC)- Connected to power outlet NGND- Connected to power outlet GNDGND (DC)- Connected to Buck converter IN-12V-24V Output (DC)- Connected to Buck converter IN+
Buck converter
IN+- Connected to POWER SUPPLY 12V-24V Output (DC)IN-- Connected to POWER SUPPLY GND (DC)OUT+- Connected to 2.1mm Barrel Jack POSOUT-- Connected to 2.1mm Barrel Jack NEG
Solar Panel
gnd- Connected to ACS712 Current Sensor 2 and Voltage Sensor DC 25V gndvcc- Connected to ACS712 Current Sensor 1 and Voltage Sensor DC 25V vcc
2.1mm Barrel Jack with Terminal Block
POS- Connected to various VCC pins of other componentsNEG- Connected to various GND pins of other components
power outlet (IL)
N- Connected to POWER SUPPLY 220V Negative Pole (AC)L- Connected to POWER SUPPLY 220V Positive Pole (AC)GND- Connected to POWER SUPPLY GND
Documented Code
There is no code provided for the microcontroller in this circuit. The ESP32 would typically be programmed to read inputs from the sensors, control the servos, and manage time with the RTC. The code would be responsible for the logic and behavior of the circuit, including handling sensor data, making decisions, and sending control signals to the actuators. Without the code, the specific functionality of the circuit cannot be determined.