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:

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

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:

1 Like