Go Down

Topic: Arduino Double BTS7960B 43A motor driver question (Read 26377 times) previous topic - next topic

njkl44

I just got 2 of these in: http://www.ebay.com/itm/Double-BTS7960B-43A-Motor-Driver-High-power-module-smart-car-driver-Arduino-/150713543689?pt=LH_DefaultDomain_0&hash=item23173a2c09#ht_4319wt_1344

My question is how do i hook this up to the arduino? It says to hook logic up with 5v and gnd. Now do i just send pwm signals to pwm R and pwm L?

PaulS

Quote
Now do i just send pwm signals to pwm R and pwm L?

Yes.
The art of getting good answers lies in asking good questions.

KenC

I got two of these as well. but I really cannot figure out how to connect them.

Do I need 3 wires from Arduino to control the board?
example, pseudo-code
Short R_EN (pin3) & L_EN (pin4), hook them together to one PWM pin 9 on Arduino.
Connect Arduino Digital pin D7 to R_PWM (pin 1),
Connect Arduino Digital pin D8 to L_PWM (pin2).
//To turn forward,
{digitalwrite(D7,1); digitalWrite(8,0); analogwrite(9, XX);}
//To turn reverse,
{digitalwrite(D7,0); digitalWrite(8,1); analogwrite(9, XX);}
//To stop,
{analogwrite(9,0)}

Any help is appriciated.

PaulS

Quote
Do I need 3 wires from Arduino to control the board?

For one motor, you need a minimum of 3 wires. Add two per motor you want to control.

You need a wire from a digital pin to R_EN and a wire from a PWM pin to R_PWM and a wire from ground to ground, to control the right motor.

If you have a left motor, you need a wire from a digital pin to L_EN and a wire from a PWM pin to L_PWM.
The art of getting good answers lies in asking good questions.

KenC

Thanks Paul,
You described the half bridge control which is very clear.
Unfortunately, that is not what I am after.
I must apologise for not clear with my purpose.
I need to use  2 half bridge to form a H-bridge to provide directional & speed control for a motor.

Cheers

Ken

PaulS

Quote
I must apologise for not clear with my purpose.

Do you have the driver that this thread is about?

If so, you can connect two motors to it, and control speed and direction of both of them. independently.

If not, start your own thread, and describe the hardware you do have.
The art of getting good answers lies in asking good questions.

KenC

Yes, I have 2 of this board from ebay too.
As I'm not sure of how it actually work & I'm really lack electronic skills. I don't have money to burn anything, Burning either the Arduino, the BTS7960B motor driver board or 2 500Watt DC motor are just too expensive.
I am having the impression that we have the same question. Why waste forum bandwidth by creating a duplicate thread? If I were to start a threat the title will be exactly"Arduino Double BTS7960B 43A motor driver question"

The datasheet
http://pdf1.alldatasheet.com/datasheet-pdf/view/152658/INFINEON/BTS7960B.html
It says its a 1/2 bridge.
Page 3 show the block diagram
page 5 says
Pin1, GND - Ground
Pin2, IN  Input : Defines whether high- or lowside switch is activated
Pin3, INH : Inhibit : When set to low device goes in sleep mode
Pin4,8 OUT : Power output of the bridge
Pin5 SR I Slew Rate :The slew rate of the power switches can be adjusted by connecting a resistor between SR and GND
Pin6 IS : Current Sense and Diagnosis
Pin7 VS - Supply

When I trace the Drive board circuit, I found there are 2 BTS7960 chip
IN1 is connected to R_PWM pin1via 74AH244DW
IN2 is connected to L_PWM  pin2
INH1 is connected to  R_EN pin3
INH2 is connected to L_EN pin4
IS1 is connect to pin 5 pin5
IS2 is connect to pin 6 pin6

Actually, I don't understand how to 1) connect it as  H-bridge. & 2) how can a 1/2 bridge  do diection control ?

KenC

#7
Apr 04, 2012, 01:37 pm Last Edit: Apr 04, 2012, 01:39 pm by KenC Reason: 1
There is also an example of H-bridge in page 6. of datasheet http://pdf1.alldatasheet.com/datasheet-pdf/view/152658/INFINEON/BTS7960B.html
It has 4 lead connected to a MCU,
IS1 & IS2 share same pin,
INH1 & IH2 share a same pin
IN1 has its own pin &
IN2 has its own pin.

FreeGroup

Hi

the posting is a little bit old - but anyway.
http://www.instructables.com/id/Motor-Driver-BTS7960-43A/?ALLSTEPS

Regards


JackBlack

#9
May 03, 2014, 12:42 pm Last Edit: May 03, 2014, 12:48 pm by JackBlack Reason: 1
There are 2 ways to wire it, depending on if you want to use the fewest number of outputs, or if you want to use the fewest number of PWM outputs.

For both you obviously need to hook up the Vcc and Gnd.


Option 1 - 2PWM outputs:
Connect R_EN and L_EN to VCC (either short on the driver or wire it up), this effectively enables both directions to work.
Then connect the RPWM and LPWM to 2 separate outputs on the Arduino.

To control it, use digital write to set the direction you aren't using to 0, and analogwrite to set the other one to the desired setting. To stop it, set both to 0.

Option 2 - 2 digital outputs, one PWM output:
Connect R_EN and L_EN to the PWM output. Use analogwrite to set the desired speed.
Connect RPWM and LPWM to the digital outputs. Set the desired direction to high and the undesired direction to 0.

To stop, you can simply set the PWM output to 0.


KenC, 2 half bridges get combined to make a H bridge. They are basically the 2 sides of the Hs, the | parts of |-|, with your load being the -.
The left one determines if the left side is connected to the top or the bottom (+ or -) and the right one determines if the right side is connected to the top or bottom.

By using the 2 bridges together, the left one goes up and the right one goes down or vice versa, this will hook the left side up to + with the right side up to - or vice versa, allowing you to control the flow of current through the motor and thus the direction (assuming it is a DC motor).

With some chips you can also lock the motor in place (or make it hard to move) by connecting both sides to the top (or both to the bottom) so the motor is short circuited.

eXXonWaldez

Quote
I must apologise for not clear with my purpose.
Do you have the driver that this thread is about?

If so, you can connect two motors to it, and control speed and direction of both of them. independently.

If not, start your own thread, and describe the hardware you do have.
Hi Pauls,

I am a little confused, i also try to hook 2 motors to bts but  i am afraid to fry sth.

Could you please tell me how to connect two motors to bts7960b. Bts7960 has 2 inlet for power supply (it says(B+ and B-) and 2 outlet for motor (it says M+ and M-).

Thank you in advance.

jodege

eXXonWaldez:

This driver is for one motor only.

Motor to M+ and M-

Battery/Power to B+ and B-


Also check the previously recommended link and you will also find a schematic that will clearify for you.
http://www.instructables.com/id/Motor-Driver-BTS7960-43A/?ALLSTEPS


Go Up