MKS

esp32 dual h bridge breakout board

by:MKS     2020-03-03
This project is an ESP32 breakout board designed for your next robot.
The characteristic of this board is;
The physical size of the board is 90mm x 56mm, double sided.
For most motherboard manufacturers, this makes it within the size limit of 100mm x 100mm.
All the files needed to make one of these boards can be found on github.
The board is designed around DOIT ESP32 DEVKIT V1 with two lines and eighteen pins per DEVKIT V1.
Easy-to-cut marks on the back of the board allow you to separate the dedicated 5 v, Gnd, and 3.
3V pins from respective buses.
You can then use the pins in these locations as a GPIO and connect 5 v, Gnd, and 3 using jumpers.
3v bus to the appropriate pins on the ESP32 development kit you are using.
Two rows of 20 holes are provided for the installation of the ESP Development Kit.
I suggest you buy the female insert line and weld it into the hole.
This way, you can delete the ESP32 development kit at any time and replace it with another one.
In addition, the use of socket strips provides sufficient clearance for parts installed under the development kit.
I like to buy 40 needles and insert lines and cut them into a certain size.
This helps to reduce costs.
You can\'t cut female socket strips between two outlets, you have to \"burn\" one outlet to cut them.
In other words, a 40-pin female insert line cannot be cut into two 20-pin insert lines.
The 40-pin female socket strip can be cut into 20 and 19 needles.
TB6612FNG is a dual H-bridge motor controller that can drive either a stepping motor or two DC amateur motors (
Brushless Motor).
It is ideal for driving small, inexpensive gear motors that are easy to get.
The Breakout board has a place to install the TB6612FNG sub-board.
The TB6612FNG board I chose to use is available from several places; Sparkfun (p/n ROB-
14451, trade and Digikey also sell Sparkfun boards), Pololu (p/n 713)
EBay, AliExpress and Gearbest.
Prices range from $1 to $5.
Three GPIO pins are used for each DC motor driver.
The state of the motor is determined by two GPIO pins;
Forward, back, glide and brake.
The third GPIO pin is the PWM that controls the speed of the motor.
The seventh GPO pin drives the STBY pin.
The control signal of TB6612FNG is hard
Connect to the ESP32 GPIO branch pin.
What GPIO pins to use depends on the taste of the ESP32 development kit you are using. The hard-
Cable pins are carefully selected so that they are aligned with the gpio pwm and output pins on most ESP32 development kits.
The motor is connected using two pin screw terminals marked motor A and motor B.
There is one on each side of the breakout board.
The power supply of the motor is introduced by two pin screw terminal blocks or a set of common heads at one end of the breakout plate, marked with Vin.
Vin can be any DC voltage from 6v to 12 v.
5 V, 1A voltage regulator converts Vin voltage to 5v to power the sonar sensor.
The DOIT Dev Kit has two sizes, 30 pins (15 on a side)and 36 pins (18 on a side).
I have listed the connections for the following two development kits.
30-pin Development Kit
36-pin dev kitAIN1-
25 -14 -
AAIN2-direction control of motor
26 -12 -
Direction control of motor APWMA
27 -13 -
Speed control of motor ASTBY
33 -27 -
Stop two cars.
16 -15 -
Motor BBIN2-direction control
17 -2 -
Direction control of motor BPWMB
5 -4 -
The speed control of the motor BThe board has two sets of 20 pin heads for the GPIO breakout.
Each group of GPIO headers includes 20 pins for 3.
3v and 20 pins for Gnd. The 3.
The 3V pin is located between the GPIO pin and the Gnd pin.
This configuration reduces the possibility that things will explode if inserted back.
It takes 3 for almost everything you want to connect to the GPIO pin.
3V or Gnd connection or both.
The three-line configuration means that there is a power supply and Gnd pin for each connection.
If you use ESP32 dev kit other than DOIT Dev Kit, it may have Vin, 3.
The 3V and Gnd pins are located in a different position than the DOIT Dev kit.
The Breakout board is easy to cut marks on the back and can be cut to isolate Vin, 3.
3v and Gnd pins from respective buses.
You can then connect Vin, 3 using a jumper.
The 3v and Gnd pins of the ESP32 development kit are connected to the appropriate bus. The 3.
A 3v pin can be connected using a standard two-pin short-circuit plug.
For Gnd pin connections, I make up several jumpers using three pin DuPont case, two female curl pins and a short lead.
After pressing the female pins to each end of the wire, I inserted them into the end slot of the three pin shells.
If you want to reconnect the trances you cut, there is a set of penetration holes for each trances.
You can weld the U-shaped jumper in the hole or you can add two pin heads and use the standard two pin short-circuit plug to make the removable jumper.
Remind me. The 3.
The 3v regulator on the ESP32 development kit is used to provide 3.
ESP32 and 3v of any peripheral device you connect to 3. 3V bus.
The regulator has a limit of 1A.
The higher the Vin voltage, the greater the current, the regulator will heat up.
Keep this in mind when trying to drive a high current device with 3, such as a LED strip or a servo motor. 3V.
Some I2C devices like gyro, accelerator and ADC converter should not be a problem.
Vin is the input voltage of the motor and the 5v regulator.
Vin can be any voltage from 5v to 12 v.
If 5v is used for Vin, the output voltage of the on-board 5v regulator will not be 5 v.
This is because the 5v regulator must have a voltage above 5v to adjust to 5 v.
Vin is also used as an input voltage for 3.
3v regulator on ESP32 development kit.
The ESP dev kit reference design has a diode for isolating the USB voltage from the voltage on the dev kit Vin pin.
The diode ensures that the Vin voltage does not attempt to drive the USB voltage and that the USB-to-
The serial bridge chip on the ESP32 development kit is powered only by USB voltage.
This means that you can safely connect the voltage source above 5v to the Vin of the splitter board while using a USB connection without worrying about breaking anything.
The voltage regulator on the ESP32 development kit belongs to the same series as the voltage regulator used on the splitter board.
This means that they can handle the input voltage of the same range.
Connect the battery pack of the drive motor to the Vin terminal, which will also power the ESP32 and any peripherals you connect.
Provides two four pin heads for the popular HC-connection
Sonar sensor SR04
The joint is located on the opposite side of the distribution board, close to the motor screw junction box.
Title is set for oneto-
A connection to HCSR04. The HC-
SR04 is a 5v device.
It is output by 5v (Echo)
The signal is 5v level.
There are 3 ESP32.
5 V is not allowed for 3 v.
So you need some kind of voltage level converter to bring the 5v output of HC-
SR04 down to 3.
3v level of Esp32.
The Breakout board has a simple voltage divider for each HC-
The SR04 echo signal that performs the level conversion.
No level conversion is required for the ESP32 GPIO pin to drive the Trig signal for HC-SR04.
Four pin heads for HC-
The SR04 provides a 5v and Gnd connection for the sensor.
5v is provided by a 5v regulator on the splitter board.
When four pin heads are provided to connect to HC-
SRO4, provides a two pin head to connect HC-
SR04 to esp32.
In this way, you can select the GPIO pin you want to use. Use female-to-
The parent jumper of the connection.
T is the Trig input and E is the echo output signal after the voltage level conversion.
HC should be available-
Connect the SR04 connector of the other 5v sensors.
Connect the output of the 5v sensor to the echo input and convert it to 3 using a voltage divider. 3V signal.
The voltage divider will handle the signal with slow conversion.
For high-speed conversion, you should use an active voltage level converter.
If the analog signal is connected to the voltage divider and then to the analog input on the ESP32, the voltage swing should be considered to be zero to 3.
3 V, not zero to 5v when calculating voltageper-count.
For example, you can connect the Vishay TSOP34838 infrared sensor to HC-SR04 header (
Echo is connected to the output pin of the sensor).
You should then be able to receive IR commands from any IR remote control using a 38KHz carrier. The tri-
Color LED is 5mm, co-anode, through hole, rgb led.
The current limiting resistor is provided and the common anode is connected to 3. 3V bus.
A three-pin marked RGB is provided for the use of the LED.
The low-level signal on one of the RGB pins will light the LED in this color.
Driving multiple RGB inputs at the same time will cause multiple LEDs to light up together with the final color.
Can use female-to-
Connect the RGB head pin to the female jumper of the GPIO pin of your choice.
If the LED is connected to the GPIO pin with PWM function, the brightness of the LED can be changed by changing the PWM low time.
I like to use LEDs to help me debug the code I am working on.
The Breakout board has four lines of head pins for the I2C interface.
Two of these lines are four pins, 3 each. 3V and Gnd.
The other two lines are 5 pins each for SDA and scp, respectively.
The extra pin for each line is for you to use two women-to-
Connect the row to the parent jumper cable of the GPIO pin of your choice.
The ESP32 can have SDA and cl signals on several GPIO pins. Up to four 3.
3 V, connect and power I2C equipment without using daisy chain cable.
There is no pull-up resistor on the SDA and cl signals on the Breakout board.
The pull-up resistor should be on the device connected to the I2C bus.
Note: For those who are not familiar with I2C, the pull-up resistor is required as the SDA and cl pins are open for drainstate, bi-
Directional pin.
The value of the pull-up resistor affects the pendulum rate and ringing on the bus.
All resistors are SMT 1206.
All capacitors are SMT, Case A, EIA 3216.
All the head and socket strips are 0. 1 inch (2. 54mm)pitch. 6 -
20 needles, male head, 6-
5 needles, male head, 4-
Four-pin male head s1-
Three-pin male head 2-
Two pins, male head, 2-
Twenty-pin female socket strips1-
TB6612FNG board with two eight pin male head
10uf ta capacitors 1-10K resistor2 -2. 2K resistors5 -1K resistors1 -AMS1117, 5V1 -
Co-anode RGB led 3-5mm
3mm pitch, two pins, screw terminal
Two pin heads-
Used to reconnect cut Vin, 3.
3V and Gnd tracesThis is an ESP32 breakout board that is very versatile, with the most common features required for simple robots built into the breakout board.
Breakout boards are not limited to ESP32 development kits.
Any micro-controller board can be used, which has double rows of up to 20 pins at 1 inch pitch.
ESP8266 or lp1768 boards can be installed.
You can assemble the board without the TB6612FNG sub-board and use only the GPIO for breakout.
The board gives you a lot of options on how to use it.
If you have some of these boards, don\'t remove the name \"Macedon works\" from the board.
You are free to use these boards for any non-
Business applications.
If you do produce and use the board, I hope you can speak out loud about the purpose of your use of the board.
I hope you find this board useful.
Custom message
Chat Online 编辑模式下无法使用
Chat Online inputting...