Treat Flux like your intern. Tell it what you'd like to build and it'll get to work. You can also ask it questions, brainstorm ideas, and teach it your preferences. Learn More
To connect ESP32 (U1) GPIO outputs to the TB6612FNG (U2) motor driver input pins, follow the steps below:
For motor A:
Connect a GPIO output pin from ESP32 (U1) to the AIN1 pin of TB6612FNG (U2). This will control the direction of Motor A. For example, you can use the D27 pin on U1 to connect to the AIN1 pin on U2.
Connect another GPIO output pin from ESP32 (U1) to the AIN2 pin of TB6612FNG (U2). This will also control the direction of Motor A. For example, you can use the D14 pin on U1 to connect to the AIN2 pin on U2.
Connect a PWM-capable GPIO output pin from ESP32 (U1) to the PWMA pin of TB6612FNG (U2). This will control the speed of Motor A. For example, you can use the D4 pin on U1 to connect to the PWMA pin on U2.
For motor B:
Connect a GPIO output pin from ESP32 (U1) to the BIN1 pin of TB6612FNG (U2). This will control the direction of Motor B. For example, you can use the D13 pin on U1 to connect to the BIN1 pin on U2.
Connect another GPIO output pin from ESP32 (U1) to the BIN2 pin of TB6612FNG (U2). This will also control the direction of Motor B. For example, you can use the D5 pin on U1 to connect to the BIN2 pin on U2.
Connect a PWM-capable GPIO output pin from ESP32 (U1) to the PWMB pin of TB6612FNG (U2). This will control the speed of Motor B. For example, you can use the D18 pin on U1 to connect to the PWMB pin on U2.
Remember, the STBY pin of U2 should be connected to a high (3.3V) signal for the motor to operate. You can connect this to a GPIO pin on the ESP32 or directly to the 3.3V supply if you want the motors to be enabled all the time.
Please note that the above GPIO pin numbers are suggestions. You may need to adjust them based on your specific circuit design and requirements.
The power consumption of the chip in Deep-sleep mode is (10 \mu A)[1]. If the system works in the ULP sensor-monitored pattern, the ULP coprocessor works with the ULP sensor periodically and the ADC works with a duty cycle of (1 %), so the power consumption is (100 \mu A)[2].
Documents are markdown text files which describe project goals, capture details, or even simulation outputs.
Assets
3D thumbnail.png
3D thumbnailThumbnail
ESP32 Robot Controller
Control board for autonomous or radio-controlled robots.
It has inputs to connect distance sensors and encoders for autonomous mode.
It can be radio controlled by the ESP32 bluetooth or by connecting a Flysky RC controller receiver to the IBUS port.
It also has 3 push buttons and you can connect some kind of display by I2C to visualize and select configuration modes.
jharwinbarrozo
copilot
1