ESP32 and TB6612FNG Motor Driver-Based Wi-Fi Controlled Motor System
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes a TB6612FNG Motor Driver, an ESP32 microcontroller, a 12V battery, and a 12V to 5V Step Down Power Converter. The circuit is designed to control motors using the ESP32 microcontroller, with power supplied by a 12V battery and regulated to 5V for the ESP32 and motor driver.
Component List
TB6612FNG Motor Driver
- Description: Motor driver for controlling two DC motors.
- Pins: GND, B01, B02, A02, A01, VCC, VM, PWMB, BI2, BI1, STBY, AI1, AI2, PWMA
ESP32 (30 pin)
- Description: Microcontroller with Wi-Fi and Bluetooth capabilities.
- 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
Battery 12V
- Description: Power source for the circuit.
- Pins: +, -
12V to 5V Step Down Power Converter
- Description: Converts 12V input to 5V output.
- Pins: VIN 9v-36v, VIN+, VIN-, USB OUTPUT 5V, 5v OUTPUT, GND
Wiring Details
TB6612FNG Motor Driver
- GND: Connected to the GND pin of the 12V battery and the VIN- pin of the 12V to 5V Step Down Power Converter.
- VCC: Connected to the Vin pin of the ESP32 and the 5v OUTPUT pin of the 12V to 5V Step Down Power Converter.
- VM: Connected to the + pin of the 12V battery and the VIN+ pin of the 12V to 5V Step Down Power Converter.
- PWMB: Connected to the D26 pin of the ESP32.
- BI2: Connected to the D27 pin of the ESP32.
- BI1: Connected to the D14 pin of the ESP32.
- STBY: Connected to the D19 pin of the ESP32.
- AI1: Connected to the D13 pin of the ESP32.
- AI2: Connected to the D12 pin of the ESP32.
- PWMA: Connected to the D25 pin of the ESP32.
ESP32 (30 pin)
- Vin: Connected to the VCC pin of the TB6612FNG Motor Driver and the 5v OUTPUT pin of the 12V to 5V Step Down Power Converter.
- GND: Connected to the GND pin of the 12V to 5V Step Down Power Converter.
- D26: Connected to the PWMB pin of the TB6612FNG Motor Driver.
- D27: Connected to the BI2 pin of the TB6612FNG Motor Driver.
- D14: Connected to the BI1 pin of the TB6612FNG Motor Driver.
- D19: Connected to the STBY pin of the TB6612FNG Motor Driver.
- D13: Connected to the AI1 pin of the TB6612FNG Motor Driver.
- D12: Connected to the AI2 pin of the TB6612FNG Motor Driver.
- D25: Connected to the PWMA pin of the TB6612FNG Motor Driver.
Battery 12V
- -: Connected to the GND pin of the TB6612FNG Motor Driver and the VIN- pin of the 12V to 5V Step Down Power Converter.
- +: Connected to the VM pin of the TB6612FNG Motor Driver and the VIN+ pin of the 12V to 5V Step Down Power Converter.
12V to 5V Step Down Power Converter
- VIN-: Connected to the GND pin of the TB6612FNG Motor Driver and the - pin of the 12V battery.
- VIN+: Connected to the VM pin of the TB6612FNG Motor Driver and the + pin of the 12V battery.
- 5v OUTPUT: Connected to the Vin pin of the ESP32 and the VCC pin of the TB6612FNG Motor Driver.
- GND: Connected to the GND pin of the ESP32.
Code
No code is provided for this circuit.