ROS ARDUINO BRIDGE TB06612FNG support

I’m not a big fan of the L298N motor driver, so I modified the ROS_ARDUINO_BRIDGE from Josh’s project to support the TB06612FNG H-bridge module. You can find it here:

https://github.com/jeffreyjene/ros_arduino_bridge

In order to use it you will need to install the Sparkfun TB06612FNG library into your Arduino libraries. You can get it here:

https://github.com/sparkfun/SparkFun_TB6612FNG_Arduino_Library

The wiring for the module is as follows:

  • PWMA 5
  • PWMB 6
  • AN1 7
  • AN2 8
  • BN1 9
  • BN2 10
  • STBY 11

Wire the other side with the power and motor leads. If a motor goes the wrong direction switch the leads.

There’s a great tutorial on the TB06612FNG here: https://dronebotworkshop.com/tb6612fng-h-bridge/

2 Likes