I’m aiming to control the speed of a 12V DC motor using PWM via a 43A BTS7960 driver connected to an Arduino Uno and potentiometer. For my project I only need the motor to turn in one direction. Having researched this, I’m still slightly unsure how I need to connect the Arduino and Driver for my requirements. Specifically, it’s the RPWM, LPWM, R_EN and L_EN pins I’m struggling to understand.
Could anyone advise me on how this should be connected?
Yes, I've seen that link. But If I only want to turn the motor in one direction should the LPWM, RPWM, L_EN and R_EN pins all be connected to the Arduino?
Yes, you have to connect both chips because one chip is only a half bridge. You might connect one PWM signal to GND but i must not be left floating (at least as far a I understand the schematic I found online, you forgot to post the schematic of your board).
So to drive the motor in a single direction would I connect L_EN and R_EN to digital pins and write them HIGH. Then connect the LPWM and RPWM to PWM pins on the Uno - writing a PWM value of 0 to one and a value between 0 -255 for the other?
I'm having real problems with this. I followed the exact code and setup in this link but my 12V motor won't even move. If I listen closely as I turn the pot, all I get is an audible ringing noise coming from the motor. Even taking the pot out and just writing a PWM value doesn't make a difference.
About the circuit:
The IBT-2 H bridge is connected to a 12v SLA battery with a 15A fuse inline and SPST switch.
Arduino Uno is connected to 10K potentiometer and is using the USB power supply.
Could anyone offer any suggestions why this isn't working?