Wi-Fi Controlled Dual Motor System with ESP32 and BTS7960 Drivers
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an ESP32 microcontroller, two BTS7960 motor drivers, two 775 motors, a buck converter, and a 18650 3s2p battery pack. The ESP32 controls the motor drivers, which in turn drive the motors. The buck converter is used to step down the voltage from the battery pack to power the ESP32 and other components.
Component List
BTS7960 Motor Driver
- Description: Motor driver module capable of driving high-current motors.
- Pins: Pin 1, Pin 2, Pin 3, Pin 4, Pin 5, Pin 6, Pin 7, Pin 8, Pin 9, Pin 10, Pin 11, Pin 12
Esp32 on Baseboard
- Description: Microcontroller with Wi-Fi and Bluetooth capabilities.
- Pins: GPIO23, GPIO22, GPIO1/TX, GPIO3/RX, GPIO21, GPIO19, GPIO18, GPIO5, GPIO17, GPIO16, GPIO4, GPIO0, GPIO2, GPIO15, SD1, SD0, CLK, V, G, GPIO36, GPIO39, GPIO34, GPIO35, GPIO32, GPIO33, GPIO25, GPIO26, GPIO27, GPIO14, GPIO12, GPIO13, SD2, SD3, GND, 5V, 3V, TX, RX, VCC, D22, D21
775 Motor
- Description: High-torque DC motor.
- Pins: positive, negative
Buck Converter
- Description: Voltage regulator to step down voltage.
- Pins: IN+, IN-, OUT+, OUT-
18650 3s2p Battery Pack
- Description: Battery pack providing power to the circuit.
- Pins: + Charge/Discharge, - Charge/Discharge, 5.4V
Wiring Details
BTS7960 Motor Driver 1
- Pin 1: Connected to G of Esp32 on Baseboard
- Pin 3: Connected to GPIO13 of Esp32 on Baseboard
- Pin 4: Connected to GPIO27 of Esp32 on Baseboard
- Pin 5: Connected to V of Esp32 on Baseboard
- Pin 7: Connected to GPIO12 of Esp32 on Baseboard
- Pin 8: Connected to GPIO14 of Esp32 on Baseboard
- Pin 9: Connected to positive of 775 motor
- Pin 10: Connected to negative of 775 motor
- Pin 11: Connected to + Charge/Discharge of 18650 3s2p and IN+ of Buck converter
- Pin 12: Connected to - Charge/Discharge of 18650 3s2p and IN- of Buck converter
BTS7960 Motor Driver 2
- Pin 1: Connected to G of Esp32 on Baseboard
- Pin 3: Connected to GPIO26 of Esp32 on Baseboard
- Pin 4: Connected to GPIO33 of Esp32 on Baseboard
- Pin 5: Connected to V of Esp32 on Baseboard
- Pin 7: Connected to GPIO25 of Esp32 on Baseboard
- Pin 8: Connected to GPIO32 of Esp32 on Baseboard
- Pin 9: Connected to negative of 775 motor
- Pin 10: Connected to positive of 775 motor
- Pin 11: Connected to + Charge/Discharge of 18650 3s2p and IN+ of Buck converter
- Pin 12: Connected to - Charge/Discharge of 18650 3s2p and IN- of Buck converter
Esp32 on Baseboard
- G: Connected to Pin 1 of BTS7960 Motor Driver 1 and Pin 1 of BTS7960 Motor Driver 2
- GPIO13: Connected to Pin 3 of BTS7960 Motor Driver 1
- GPIO27: Connected to Pin 4 of BTS7960 Motor Driver 1
- V: Connected to Pin 5 of BTS7960 Motor Driver 1 and Pin 5 of BTS7960 Motor Driver 2
- GPIO12: Connected to Pin 7 of BTS7960 Motor Driver 1
- GPIO14: Connected to Pin 8 of BTS7960 Motor Driver 1
- GPIO32: Connected to Pin 8 of BTS7960 Motor Driver 2
- GPIO33: Connected to Pin 4 of BTS7960 Motor Driver 2
- GPIO25: Connected to Pin 7 of BTS7960 Motor Driver 2
- GPIO26: Connected to Pin 3 of BTS7960 Motor Driver 2
- VCC: Connected to OUT+ of Buck converter
- GND: Connected to OUT- of Buck converter
775 Motor 1
- positive: Connected to Pin 9 of BTS7960 Motor Driver 1
- negative: Connected to Pin 10 of BTS7960 Motor Driver 1
775 Motor 2
- positive: Connected to Pin 10 of BTS7960 Motor Driver 2
- negative: Connected to Pin 9 of BTS7960 Motor Driver 2
Buck Converter
- IN+: Connected to + Charge/Discharge of 18650 3s2p and Pin 11 of BTS7960 Motor Driver 1 and Pin 11 of BTS7960 Motor Driver 2
- IN-: Connected to - Charge/Discharge of 18650 3s2p and Pin 12 of BTS7960 Motor Driver 1 and Pin 12 of BTS7960 Motor Driver 2
- OUT+: Connected to VCC of Esp32 on Baseboard
- OUT-: Connected to GND of Esp32 on Baseboard
18650 3s2p Battery Pack
- + Charge/Discharge: Connected to IN+ of Buck converter and Pin 11 of BTS7960 Motor Driver 1 and Pin 11 of BTS7960 Motor Driver 2
- - Charge/Discharge: Connected to IN- of Buck converter and Pin 12 of BTS7960 Motor Driver 1 and Pin 12 of BTS7960 Motor Driver 2
Code
No code provided for this circuit.