You can find a link to our video bellow or simply just follow this post.
In this video we will go over the DRI0044 motor driver with TB6612FNG chipset to control 2 DC motors with power supply of up to 12V using an external power supply from DFROBOT.
This chipset is only 2cm x 2cm and makes it perfect for small robots. Given that there is no documentation on how to connect it to a Raspberry Pi, we decided to put it out there for everyone to learn.
What you need:
- Raspberry Pi ( I’m using the Raspberry Pi 4 Model B)
- The DRI0044 driver
- Breadboard
- 2 x DC motors
- 4 x male to male jumper cables for the motors (2 each)
- 3 x male to male jumper cables for ground pins
- 6 x email to male jumper cables to connect to pins on raspberry pi
- Power supply (I’m using a 9v battery)
- 2 cables to connect the power supply
Keep in mind that all the ground pins (GND) have to be connected to gather so on the breadboard use a male to male jumper cable to connect the ground from battery to the ground that goes to Raspberry Pi. (Leave the + as is). Use the diagram above to connect each pin to the corresponding one on the Raspberry Pi.
Use the code on our GitHub page to program the Raspberry Pi and make sure to install the required libraries on your raspberry by going to the terminal and using the pip instal … command.
Remember that the PWM is for speed and and you can change the direction of the motors by changing the DIR to HIGH for forward and LOW for backwards.
Lastly, please leave any questions or feedback that you may have below and we will make sure to answer them.