Solar-Powered GPS and GSM Controlled DC Motor System with ESP32
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a solar-powered circuit designed to control a DC motor and communicate via GPS and GSM modules. The circuit includes a solar charge controller, a DC motor driver, a relay module, an ESP32 microcontroller, a SIM900A GSM module, a GPS NEO 6M module, a 18650 Li-Ion battery, and a solar panel. The ESP32 microcontroller is the central control unit, interfacing with the motor driver, relay, GPS, and GSM modules.
Component List
CN3065 Solar Charge
- Description: Solar charge controller for charging Li-Ion batteries.
- Pins: SOLAR +, SOLAR -, BAT +, SYS -, SYS +, BAT -
L298N DC Motor Driver
- Description: Dual H-Bridge motor driver for controlling DC motors.
- 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
DC Motor
- Description: Standard DC motor.
- Pins: pin 1, pin 2
1 Channel 5V Relay Module
- Description: Single-channel relay module for switching high-power devices.
- Pins: VCC+, VCC- (GND), IN, N.O., COM, N.C.
ESP32 (30 pin)
- Description: Wi-Fi and Bluetooth-enabled microcontroller.
- Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, Vin, D23, D22, TX0, RX0, D21, D19, D18, D5, TX2, RX2, D4, D2, D15, 3V3
SIM900A
- Description: GSM/GPRS module for cellular communication.
- Pins: GND, DB9-3 (RXD), DB9-2 (TXD), 5V, 3VR, 5VR, 3VT, 5VT, VCC, Ring, RESTART, RESET, STATUS
GPS NEO 6M
- Description: GPS module for location tracking.
- Pins: VCC, RX, TX, GND
18650 Li-Ion
- Description: Rechargeable lithium-ion battery.
- Pins: Positive, Negative
Solar Panel
- Description: Solar panel for generating electrical power.
- Pins: +, -
Wiring Details
CN3065 Solar Charge
- SOLAR + connected to Solar Panel +
- SOLAR - connected to Solar Panel -
- BAT + connected to 18650 Li-Ion Positive
- BAT - connected to 18650 Li-Ion Negative
- SYS + not connected
- SYS - not connected
L298N DC Motor Driver
- 5V connected to 18650 Li-Ion Positive
- GND connected to 18650 Li-Ion Negative
- IN1 connected to ESP32 D23
- IN2 connected to ESP32 D22
- OUT1 connected to DC Motor pin 1
- OUT2 connected to DC Motor pin 2
- 12V connected to 1 Channel 5V Relay Module COM
- Other pins not connected
DC Motor
- pin 1 connected to L298N DC Motor Driver OUT1
- pin 2 connected to L298N DC Motor Driver OUT2
1 Channel 5V Relay Module
- VCC+ not connected
- VCC- (GND) not connected
- IN connected to ESP32 D13
- N.O. connected to 18650 Li-Ion Positive
- COM connected to L298N DC Motor Driver 12V
- N.C. not connected
ESP32 (30 pin)
- Vin connected to 18650 Li-Ion Positive
- GND connected to 18650 Li-Ion Negative
- D13 connected to 1 Channel 5V Relay Module IN
- D23 connected to L298N DC Motor Driver IN1
- D22 connected to L298N DC Motor Driver IN2
- TX0 connected to GPS NEO 6M RX
- RX0 connected to GPS NEO 6M TX
- TX2 connected to SIM900A DB9-3 (RXD)
- RX2 connected to SIM900A DB9-2 (TXD)
- Other pins not connected
SIM900A
- VCC connected to 18650 Li-Ion Positive
- GND connected to 18650 Li-Ion Negative
- DB9-3 (RXD) connected to ESP32 TX2
- DB9-2 (TXD) connected to ESP32 RX2
- Other pins not connected
GPS NEO 6M
- VCC connected to 18650 Li-Ion Positive
- GND connected to 18650 Li-Ion Negative
- RX connected to ESP32 TX0
- TX connected to ESP32 RX0
18650 Li-Ion
- Positive connected to CN3065 Solar Charge BAT +, ESP32 Vin, 1 Channel 5V Relay Module N.O., L298N DC Motor Driver 5V, SIM900A VCC, GPS NEO 6M VCC
- Negative connected to CN3065 Solar Charge BAT -, ESP32 GND, L298N DC Motor Driver GND, SIM900A GND, GPS NEO 6M GND
Solar Panel
- + connected to CN3065 Solar Charge SOLAR +
- - connected to CN3065 Solar Charge SOLAR -
Code
No code provided for this circuit.
This document provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and code documentation. This should serve as a useful reference for understanding and replicating the circuit.