How to I connect a motor driver bts7960 43a to a raspberry pi?

Hello So I bought a motor driver bts7960 43a and is trying to connect it to my raspberry pi.
However nothing happens, I tried googling it but it seems that all tutorials are for Arduino .

So my question is: Can you even connect the motordriver to a raspberry pi?

What is confusing are the pins on the motordriver:
R_IS
L_IS
R_EN
L_EN
RPWM
LPWM

Do I use them all or do I only need some of them?

appreciate any help

Hello @Grizzlyman!

I did a quick search on Google and I found some links that could help you:

https://custom-build-robots.com/raspberry-pi-robot-cars/big-rob-motor-driver-bts7960b/8155?lang=en

Two cables are needed to supply the logic of the motor driver with 3.3V (VCC and GND). Two wires are needed to activate each H-Bridge with a high signal generated by the Raspberry Pi to set the spinning direction of the DC motor (R_EN / L_EN). The last two female-to-female jumper cables are needed feed the motor driver with a PWM signal to control the speed of DC motors (RPWM/LPWM).

https://www.raspberrypi.org/forums/viewtopic.php?p=1124139

  1. Connect the external power supply +/- to the numbers 2 and 1 respectively
  2. Connect the motor +/- to the numbers 3 and 4 respectively
  3. Connect both E and F letters (respectively reverse enable and forward enable) to 5V
  4. Send 5V to either G or H letter : sending 5V to G (i.e. reverse PWM) will cause the board to send -12V to the motor, and sending 5V to H (i.e. forward PWM) will send +12V

Note that some people have had issues using 3.3V so it would be preferable if you use an external 5V power supply.

I hope this helps

Let us know if it works :grin:

1 Like