Arduino UNO and ESP32-CAM Powered Solar-Powered Robotic Vehicle with Servo Control
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino UNO, various servos, a motor driver, a solar panel, a Li-Ion battery, and other components. The circuit is designed to control multiple servos and motors, powered by a combination of a solar panel and a Li-Ion battery, with an Arduino UNO serving as the main microcontroller.
Component List
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
TP4056
- Description: Lithium battery charger module.
- Pins: OUT-, B-, B+, OUT+, IN-, IN+
Solar Panel
- Description: Solar panel for energy harvesting.
- Pins: Vcc, Gnd
18650 Li-Ion
- Description: Rechargeable lithium-ion battery.
- Pins: Positive, Negative
XL4015 5A DC Buck Step-down
- Description: DC-DC step-down converter.
- Pins: Output +, Output -, Input +, Input -
L298N Motor Driver Controller Board Module Stepper Motor
- Description: Dual H-Bridge motor driver.
- Pins: Output A, +12v Power, +5v Power, Ground, Output B, Input 4, Input 3, Input 2, Input 1
Electrolytic Capacitor
- Description: Capacitor for energy storage.
- Pins: -, +
- Properties: Capacitance: 0.000001 Farads
POWER SUPPLY 12V 5AMP
- Description: Power supply unit.
- Pins: 220V Positive Pole (AC), 220V Negative Pole (AC), GND, GND (DC), 12V-24V Output (DC)
Tower Pro SG90 servo
- Description: Micro servo motor.
- Pins: Signal, +5V, GND
motor and wheels
- Description: Motor with wheels for movement.
- Pins: vcc, GND
ESP32 - CAM
- Description: Wi-Fi and Bluetooth module with camera.
- Pins: 5V, GND, IO12, IO13, IO15, IO14, IO2, IO4, VOT, VOR, VCC, IO0, IO16, 3V3
5408 Diode
- Description: General-purpose diode.
- Pins: cathode, Anode
MG996R
- Description: High-torque servo motor.
- Pins: GND, VCC, SIG
Wiring Details
Arduino UNO
- Reset connected to GND.
- 5V connected to:
- ESP32 - CAM 5V
- Tower Pro SG90 servo +5V (4 instances)
- MG996R VCC (2 instances)
- GND connected to:
- ESP32 - CAM GND
- Tower Pro SG90 servo GND (4 instances)
- MG996R GND (2 instances)
- L298N Motor Driver Controller Board Module Stepper Motor Ground
- 18650 Li-Ion Negative
- TP4056 B-
- D11 connected to Tower Pro SG90 servo Signal.
- D10 connected to Tower Pro SG90 servo Signal.
- D9 connected to Tower Pro SG90 servo Signal.
- D8 connected to Tower Pro SG90 servo Signal.
- D7 connected to MG996R SIG.
- D6 connected to MG996R SIG.
- D5 connected to L298N Motor Driver Controller Board Module Stepper Motor Input 3.
- D4 connected to L298N Motor Driver Controller Board Module Stepper Motor Input 2.
- D3 connected to L298N Motor Driver Controller Board Module Stepper Motor Input 1.
- D1 connected to ESP32 - CAM VOT.
- D0 connected to ESP32 - CAM VOR.
TP4056
- B- connected to 18650 Li-Ion Negative.
- B+ connected to 18650 Li-Ion Positive.
- IN- connected to Solar Panel Gnd.
- IN+ connected to Solar Panel Vcc.
Solar Panel
- Vcc connected to TP4056 IN+.
- Gnd connected to TP4056 IN-.
18650 Li-Ion
- Positive connected to TP4056 B+.
- Negative connected to TP4056 B-.
XL4015 5A DC Buck Step-down
- No specific connections provided in the net list.
L298N Motor Driver Controller Board Module Stepper Motor
- Ground connected to POWER SUPPLY 12V 5AMP GND (DC).
- +12v Power connected to POWER SUPPLY 12V 5AMP 12V-24V Output (DC).
- Output A connected to:
- motor and wheels GND
- motor and wheels vcc
- Output B connected to:
- motor and wheels GND
- motor and wheels vcc
- Input 3 connected to Arduino UNO D5.
- Input 2 connected to Arduino UNO D4.
- Input 1 connected to Arduino UNO D3.
Electrolytic Capacitor
- No specific connections provided in the net list.
POWER SUPPLY 12V 5AMP
- GND (DC) connected to L298N Motor Driver Controller Board Module Stepper Motor Ground.
- 12V-24V Output (DC) connected to L298N Motor Driver Controller Board Module Stepper Motor +12v Power.
Tower Pro SG90 servo
- Signal connected to:
- Arduino UNO D11
- Arduino UNO D10
- Arduino UNO D9
- Arduino UNO D8
- +5V connected to Arduino UNO 5V.
- GND connected to Arduino UNO GND.
motor and wheels
- vcc connected to L298N Motor Driver Controller Board Module Stepper Motor Output A and Output B.
- GND connected to L298N Motor Driver Controller Board Module Stepper Motor Output A and Output B.
ESP32 - CAM
- 5V connected to Arduino UNO 5V.
- GND connected to Arduino UNO GND.
- VOT connected to Arduino UNO D1.
- VOR connected to Arduino UNO D0.
- GND connected to IO0.
5408 Diode
- No specific connections provided in the net list.
MG996R
- SIG connected to:
- Arduino UNO D7
- Arduino UNO D6
- VCC connected to Arduino UNO 5V.
- GND connected to Arduino UNO GND.
Documented Code
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This code is a basic template for the Arduino UNO, with empty setup and loop functions. You can add your specific setup and main code logic as needed.