ESP32-Based Wi-Fi Controlled Robotic Motor System with Encoders
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an ESP32 microcontroller, multiple DC motors with encoders, and BTS7960 motor drivers. The circuit is powered by a 12V battery. The ESP32 microcontroller is used to control the motor drivers, which in turn control the DC motors. The encoders on the DC motors provide feedback to the ESP32 for precise motor control.
Component List
12V Battery
- Description: Provides power to the circuit.
- Pins: +, -
ESP32 (30 pin)
- Description: A microcontroller used for controlling the motor drivers and reading encoder feedback.
- 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
DC Motor with Encoder
- Description: A DC motor with an integrated encoder for feedback.
- Pins: Encoder B, Encoder A, GND - Encoder, VCC - Encoder Power, Motor +ve, Motor -ve
BTS7960 Motor Driver
- Description: A motor driver used to control the DC 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
Wiring Details
12V Battery
- + is connected to:
- Pin 11 of BTS7960 Motor Driver
- - is connected to:
- Pin 12 of BTS7960 Motor Driver
ESP32 (30 pin)
3V3 is connected to:
- Pin 3 of BTS7960 Motor Driver
- Pin 7 of BTS7960 Motor Driver
- VCC - Encoder Power of DC Motor with Encoder
GND is connected to:
- Pin 1 of BTS7960 Motor Driver
- GND - Encoder of DC Motor with Encoder
D15 is connected to:
- Pin 4 of BTS7960 Motor Driver
D2 is connected to:
- Pin 8 of BTS7960 Motor Driver
D4 is connected to:
- Encoder A of DC Motor with Encoder
D5 is connected to:
- Encoder B of DC Motor with Encoder
D18 is connected to:
- Pin 4 of BTS7960 Motor Driver
D19 is connected to:
- Pin 8 of BTS7960 Motor Driver
D21 is connected to:
- Encoder A of DC Motor with Encoder
D22 is connected to:
- Encoder B of DC Motor with Encoder
D13 is connected to:
- Pin 4 of BTS7960 Motor Driver
D14 is connected to:
- Pin 8 of BTS7960 Motor Driver
D27 is connected to:
- Encoder A of DC Motor with Encoder
D26 is connected to:
- Encoder B of DC Motor with Encoder
D25 is connected to:
- Pin 8 of BTS7960 Motor Driver
D33 is connected to:
- Pin 4 of BTS7960 Motor Driver
D32 is connected to:
- Encoder A of DC Motor with Encoder
D35 is connected to:
- Encoder B of DC Motor with Encoder
DC Motor with Encoder
- VCC - Encoder Power is connected to:
- 3V3 of ESP32
- GND - Encoder is connected to:
- GND of ESP32
- Encoder A is connected to:
- D4 of ESP32
- Encoder B is connected to:
- D5 of ESP32
- Motor +ve is connected to:
- Pin 10 of BTS7960 Motor Driver
- Motor -ve is connected to:
- Pin 9 of BTS7960 Motor Driver
BTS7960 Motor Driver
- Pin 1 is connected to:
- GND of ESP32
- Pin 3 is connected to:
- 3V3 of ESP32
- Pin 4 is connected to:
- D15 of ESP32
- Pin 5 is connected to:
- 3V3 of ESP32
- Pin 7 is connected to:
- 3V3 of ESP32
- Pin 8 is connected to:
- D2 of ESP32
- Pin 9 is connected to:
- Motor -ve of DC Motor with Encoder
- Pin 10 is connected to:
- Motor +ve of DC Motor with Encoder
- Pin 11 is connected to:
-
- of 12V Battery
-
- Pin 12 is connected to:
-
- of 12V Battery
-
Code
No code is provided for this circuit.
This document provides a comprehensive overview of the circuit, including a summary, component list, wiring details, and code section. The wiring details ensure that each component is correctly connected to the others, facilitating the proper functioning of the circuit.