Circuit Documentation
Summary
This circuit involves an ESP32 Mini microcontroller, a motor driver (DRV8833), two motors with reducers, a power supply (2x 18650 batteries), a voltage regulator (AMS1117), and a wireless communication module (nRF24L01). The ESP32 Mini controls the motors through the DRV8833 driver and communicates wirelessly using the nRF24L01 module. The AMS1117 voltage regulator ensures stable voltage supply to the components.
Component List
ESP32 Mini
- Description: A versatile microcontroller with built-in Wi-Fi and Bluetooth capabilities.
- Pins: GND, GPIO27, GPIO25, GPIO32, TDI, GPIO4, GPIO0, GPIO2, SD1, CLK, RXD, TXD, GPIO22, GPIO21, GPIO17, GPIO16, VCC, TD0, SD0, RST, SVP, GPIO26, GPIO18, GPIO19, GPIO23, GPIO5, 3.3V, TCK, SD3, NC, SVN, GPIO35, GPIO33, GPIO34, TMS, SD2
Motor with Reducer (Motor 1)
- Description: A motor with a built-in reducer for controlled speed and torque.
- Pins: 3 - 6 VCC, GND
Motor with Reducer (Motor 2)
- Description: A motor with a built-in reducer for controlled speed and torque.
- Pins: 3 - 6 VCC, GND
DRV8833
- Description: A dual H-bridge motor driver capable of driving two DC motors.
- Pins: EEP, OUT1, OUT2, OUT3, OUT4, ULT, IN4, IN3, GND, VCC, IN1, IN2
2x 18650
- Description: A power supply consisting of two 18650 batteries.
- Pins: vcc, gnd
nRF24L01
- Description: A wireless communication module for 2.4GHz ISM band.
- Pins: GND, VCC, CE, CSN, SCK, MOSI, MISO, IRQ
AMS1117
- Description: A voltage regulator providing a stable output voltage.
- Pins: Volt Out, GND, Volt In
Wiring Details
ESP32 Mini
- GPIO27 connected to DRV8833 IN2
- GPIO25 connected to DRV8833 IN1
- GPIO4 connected to nRF24L01 CE
- GPIO22 connected to DRV8833 IN3
- GPIO21 connected to DRV8833 IN4
- GND connected to 2x 18650 gnd, nRF24L01 GND, DRV8833 ULT, DRV8833 GND, AMS1117 GND
- VCC connected to DRV8833 VCC, AMS1117 Volt Out
- GPIO18 connected to nRF24L01 SCK
- GPIO19 connected to nRF24L01 MISO
- GPIO23 connected to nRF24L01 MOSI
- GPIO5 connected to nRF24L01 CSN
- 3.3V connected to nRF24L01 VCC
Motor with Reducer (Motor 1)
- 3 - 6 VCC connected to DRV8833 OUT2
- GND connected to DRV8833 OUT1
Motor with Reducer (Motor 2)
- 3 - 6 VCC connected to DRV8833 OUT3
- GND connected to DRV8833 OUT4
DRV8833
- IN2 connected to ESP32 Mini GPIO27
- IN1 connected to ESP32 Mini GPIO25
- IN3 connected to ESP32 Mini GPIO22
- IN4 connected to ESP32 Mini GPIO21
- ULT connected to ESP32 Mini GND
- GND connected to ESP32 Mini GND
- VCC connected to ESP32 Mini VCC
- OUT2 connected to Motor with Reducer (Motor 1) 3 - 6 VCC
- OUT1 connected to Motor with Reducer (Motor 1) GND
- OUT3 connected to Motor with Reducer (Motor 2) 3 - 6 VCC
- OUT4 connected to Motor with Reducer (Motor 2) GND
2x 18650
- vcc connected to AMS1117 Volt In
- gnd connected to ESP32 Mini GND
nRF24L01
- CE connected to ESP32 Mini GPIO4
- CSN connected to ESP32 Mini GPIO5
- SCK connected to ESP32 Mini GPIO18
- MOSI connected to ESP32 Mini GPIO23
- MISO connected to ESP32 Mini GPIO19
- VCC connected to ESP32 Mini 3.3V
- GND connected to ESP32 Mini GND
AMS1117
- Volt Out connected to ESP32 Mini VCC
- GND connected to ESP32 Mini GND
- Volt In connected to 2x 18650 vcc
Documented Code
ESP32 Mini Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Documentation (documentation.txt)
