Solar-Powered Linear Actuator System with ESP32 and Sensor Integration
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a solar-powered system that includes a solar panel, a charge controller, a 12V AGM battery, a linear actuator, a voltage sensor, an ESP32 microcontroller, an IR sensor, a BME680 environmental sensor, and an L298N DC motor driver. The system is designed to harness solar energy, store it in a battery, and use it to power various components, including a linear actuator and sensors.
Component List
Solar Panel
- Description: Converts sunlight into electrical energy.
- Pins: +, -
MPPT 12V Charge Controller
- Description: Manages the charging of the 12V AGM battery from the solar panel.
- Pins: +, -
12V AGM Battery
- Description: Stores electrical energy for later use.
- Pins: +, -
Linear Actuator
- Description: Converts electrical energy into linear motion.
- Pins: +, -
Voltage Sensor
- Description: Measures the voltage of the system.
- Pins: GND, VCC, S, +, -
Xiao ESP32C3
- Description: Microcontroller for controlling various components and sensors.
- Pins: GPIO2/LRC/A0/D0, GPIO3/BCLK/A1/D1, GPIO4/DIN/A2/D2, GPIO5/A3/D3, GPIO6/SDA/D4, GPIO7/SCL/D5, GPIO21/TX/D6, VUSB/5V, GND, 3V3, D10/MOSI/GPIO10, D9/MISO/GPIO9, D8/SCK/GPIO8, D7/RX/GPIO20, 3.7V BATT+, 3.7V BATT-, Type C
BME680
- Description: Environmental sensor for measuring temperature, humidity, pressure, and gas.
- Pins: VCC, GND, SCL, SDA, SDO, CS
L298N DC Motor Driver
- Description: Drives the linear actuator.
- Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
E18-D80NK IR Sensor
- Description: Infrared sensor for object detection.
- Pins: 5V Brown, OUT Black, GND Blue
Pushbutton
- Description: User input button.
- Pins: Pin 2, Pin 1, Pin 3, Pin 4
Wiring Details
Solar Panel
- + connected to + of MPPT 12V Charge Controller
- - connected to - of MPPT 12V Charge Controller
MPPT 12V Charge Controller
- + connected to + of Solar Panel
- - connected to - of Solar Panel
- + connected to VCC of Voltage Sensor
- + connected to + of 12V AGM Battery
- + connected to 12V of L298N DC Motor Driver
- - connected to - of Voltage Sensor
- - connected to - of 12V AGM Battery
12V AGM Battery
- + connected to VCC of Voltage Sensor
- + connected to + of MPPT 12V Charge Controller
- + connected to 12V of L298N DC Motor Driver
- - connected to - of Voltage Sensor
- - connected to - of MPPT 12V Charge Controller
Linear Actuator
- + connected to OUT2 of L298N DC Motor Driver
- - connected to OUT1 of L298N DC Motor Driver
Voltage Sensor
- VCC connected to + of 12V AGM Battery
- VCC connected to + of MPPT 12V Charge Controller
- VCC connected to 12V of L298N DC Motor Driver
- - connected to GND of Xiao ESP32C3
- - connected to GND Blue of E18-D80NK IR Sensor
- - connected to GND of L298N DC Motor Driver
- - connected to GND Blue of E18-D80NK IR Sensor
- - connected to GND of BME680
- S connected to GPIO2/LRC/A0/D0 of Xiao ESP32C3
Xiao ESP32C3
- GND connected to - of Voltage Sensor
- GND connected to GND Blue of E18-D80NK IR Sensor
- GND connected to GND of L298N DC Motor Driver
- GND connected to GND Blue of E18-D80NK IR Sensor
- GND connected to GND of BME680
- VUSB/5V connected to 5V Brown of E18-D80NK IR Sensor
- VUSB/5V connected to 5V of L298N DC Motor Driver
- VUSB/5V connected to 5V Brown of E18-D80NK IR Sensor
- GPIO5/A3/D3 connected to IN1 of L298N DC Motor Driver
- GPIO4/DIN/A2/D2 connected to IN2 of L298N DC Motor Driver
- GPIO6/SDA/D4 connected to SDA of BME680
- GPIO7/SCL/D5 connected to SCL of BME680
- 3V3 connected to VCC of BME680
- D10/MOSI/GPIO10 connected to OUT Black of E18-D80NK IR Sensor
- D9/MISO/GPIO9 connected to OUT Black of E18-D80NK IR Sensor
BME680
- GND connected to - of Voltage Sensor
- GND connected to GND Blue of E18-D80NK IR Sensor
- GND connected to GND of L298N DC Motor Driver
- GND connected to GND Blue of E18-D80NK IR Sensor
- GND connected to GND of BME680
- SDA connected to GPIO6/SDA/D4 of Xiao ESP32C3
- SCL connected to GPIO7/SCL/D5 of Xiao ESP32C3
- VCC connected to 3V3 of Xiao ESP32C3
L298N DC Motor Driver
- OUT1 connected to - of Linear Actuator
- OUT2 connected to + of Linear Actuator
- 12V connected to VCC of Voltage Sensor
- 12V connected to + of 12V AGM Battery
- 12V connected to + of MPPT 12V Charge Controller
- GND connected to - of Voltage Sensor
- GND connected to GND of Xiao ESP32C3
- GND connected to GND Blue of E18-D80NK IR Sensor
- GND connected to GND of L298N DC Motor Driver
- GND connected to GND Blue of E18-D80NK IR Sensor
- GND connected to GND of BME680
- 5V connected to VUSB/5V of Xiao ESP32C3
- 5V connected to 5V Brown of E18-D80NK IR Sensor
- IN1 connected to GPIO5/A3/D3 of Xiao ESP32C3
- IN2 connected to GPIO4/DIN/A2/D2 of Xiao ESP32C3
E18-D80NK IR Sensor
- 5V Brown connected to VUSB/5V of Xiao ESP32C3
- 5V Brown connected to 5V of L298N DC Motor Driver
- OUT Black connected to D10/MOSI/GPIO10 of Xiao ESP32C3
- OUT Black connected to D9/MISO/GPIO9 of Xiao ESP32C3
- GND Blue connected to - of Voltage Sensor
- GND Blue connected to GND of Xiao ESP32C3
- GND Blue connected to GND of L298N DC Motor Driver