Contents

Interfacing BTS7960 43A High Power Motor Driver Module with Arduino

Learn how to interface the BTS7960 43A high-power motor driver module with Arduino. This guide covers the key features of the BTS7960 motor driver, its pinout configuration, and provides step-by-step instructions for circuit connection and code implementation. Take control of your motors with this versatile and powerful motor driver.

BTS7960 43A Motor Driver Features

The BTS7960 is a high-current full-bridge motor driver module. The Key features are:

  • Input voltage: 6V to 27V
  • Maximum allowable current: 43 A
  • PWM capability: up to 25 kHz
  • Two PWM output pins for speed control in direct and reverse directions
  • Two EN output pins to control motors
  • Two IS input pins to protect against high current and heat

These modules control DC motors using PWM (Pulse Width Modulation) technique. These modules convert a constant input voltage to a variable voltage for motor. The speed can be controlled by changing the DC motor voltage. PWMs usually have a fixed frequency and can be controlled by controlling the time that the pulse is HIGH (Duty Cycle).

You can download the datasheet of this module here.

BTS7960 43A Motor Driver Pinout

To understand the pin configuration of the BTS7960 43A motor driver module, refer to the following pinout description:

Microcontroller pins (Low current):

  • VCC: Module power supply – 5V
  • GND: Ground
  • IS-R: Input signal for detecting high current – Straight rotation
  • IS-L: Input signal for detecting high current – Inverse rotation
  • EN-R: Output Signal for controlling motor direction – Straight rotation
  • EN-L: Output Signal for controlling motor direction – Inverse rotation
  • WM-R: PWM Signal for controlling motor speed – Straight rotation
  • PWM-L: PWM Signal for controlling motor speed – Inverse rotation

Motor pins (High current):

  • M+: Motor Positive
  • M-: Motor negative
  • B+: Battery positive
  • B+: Battery negative

You can see the BTS7960 43A motor driver module pinout in the image below.

Required Materials

Hardware Components

Arduino UNO R3 × 1
BTS7960 43A Motor Driver Module × 1
Micro DC Motor 6V × 1
10K ohm Potentiometer × 1
9V Battery × 1
9V Battery Clips with Bare Leads × 1
Male to Female jumper wire × 1
Male to Male jumper wire × 1
400 Tie point Solderless Mini Breadboard × 1

Software Apps

Arduino IDE

Interfacing BTS7960 43A Motor Driver Module with Arduino

Step 1: Circuit

The following circuit shows how you should connect Arduino to BTS7960 module. Connect wires accordingly.

Step 2: Code

Upload the following code to your Arduino.

   /*
  BTS7960-43A-Driver
  made on 22 Nov 2020
  by Amir Mohammad Shojaee @ Electropeak
  
Home
*/ #define RPWM 5 #define LPWM 6 #define REN 8 #define LEN 9 int pot; int out1; int out2; void setup() { Serial.begin(9600); pinMode(RPWM,OUTPUT); pinMode(LPWM,OUTPUT); pinMode(LEN,OUTPUT); pinMode(REN,OUTPUT); digitalWrite(REN,HIGH); digitalWrite(LEN,HIGH); } void loop() { pot=analogRead(A0); if(pot>512){ out1=map(pot,512,1023,0,255); analogWrite(RPWM,out1); analogWrite(LPWM,0); } if(pot<512){ out2=map(pot,512,0,0,255); analogWrite(LPWM,out2); analogWrite(RPWM,0); } }

In this code, by turning potentiometer completely the motor can be controlled in two direction: Forward and reverse. If the input value is greater than 512, the motor rotates in the forward direction and if it is less than 512, it rotates the opposite direction. We have set EN pins to High and controlled the motor with PWM pins.

Warning

Be careful not to fully turn the potentiometer because your motor is a 6 volt DC motor and the input voltage is 9 volts. So the motor may be damaged. Of course, you can use a lower voltage power supply or a higher voltage motor.

Liked What You See?​
Get Updates And Learn From The Best​

Comments (17)

  • ahmed Reply

    thank you

    January 15, 2022 at 11:12 am
    • Mehran Maleki Reply

      You are welcome!

      January 16, 2022 at 6:11 am
  • Enels Reply

    In the past I used a L298 motor driver that I could use to send 5v to the arduino Vin. Does the BTS7960 motor driver not have this capability?

    February 24, 2022 at 3:23 pm
    • Mehran Maleki Reply

      No, the BTS7960 doesn’t provide a 5V supply.

      February 26, 2022 at 7:02 am
  • Muhammad Talha Reply

    Hi
    Please koi bata sakta ha kay iss motor driver ma r.is or l.is ki pins ha os ko high karna ha ya low karna ha

    July 15, 2022 at 12:20 am
    • Mehran Maleki Reply

      Hi,
      The pins IS-R and IS-L should be connected to pins 8 and 9 of Arduino Uno, respectively. Also, please ask your questions in English so others can help you too. I used google translate to somehow get what mean.

      July 15, 2022 at 5:57 pm
  • Chikorita Reply

    There is an error in the code, on line 44. LPWM and RPWM are not supposed to be high simultaneously, doing so will short the IC and render the driver useless. Instead modify the code as

    line44: analogWrite(RPWM,0);
    line45: analogWrite(LPWM,out2);

    similarly at line 37 also.

    January 10, 2023 at 6:14 am
    • Ali Abdolmaleki Reply

      Hi
      I think you make mistake.
      for dc motor to run backward or forward , it is not different first put 0 or data pulse on 2 pins.

      February 28, 2023 at 2:28 pm
  • abhay Reply

    Hi Please let me know that what should be the value of potentiometer for a 350w pmdc motor for same circuit

    October 25, 2023 at 5:17 am
    • Mohammad Damirchi Reply

      Hi Abhay,
      The value of the potentiometer isn’t important, as long as it’s at least 1K ohms.

      October 25, 2023 at 6:30 am
  • abhay Reply

    how should increase the speed of a 9v motor changing the code

    November 22, 2023 at 6:04 am
    • Mohammad Damirchi Reply

      Hi abhay,
      The maximum speed depends on the power supply you put in place of the battery.
      This value also depends on the type of your motor, and you should not exceed your maximum voltage of motor.

      November 22, 2023 at 7:35 am
  • abhay Reply

    how to operate 24v dc motor using same circuit what are the changes requierd in code to run motor at maximum speed

    November 22, 2023 at 6:09 am
    • Mohammad Damirchi Reply

      Hi abhay,
      Just use a 24V power supply as input of driver.

      November 22, 2023 at 7:37 am
  • zyad tarek Reply

    hi, I was wondering how I can control the motor direction from its pins as you wrote besides current sensing one is reverse rotation and the other is straight rotation.

    December 19, 2023 at 12:19 am
  • Santhosh Kumar Reply

    Request for Quotation :

    BTS7960 43A Double DC High Power Motor Driver Module
    QTY – 50 Pcs

    May 20, 2024 at 10:59 am
    • Mohammad Damirchi Reply

      Hello,
      For a quotation, please email [email protected] or use our online chat.

      May 20, 2024 at 2:20 pm

Leave a Reply

Your email address will not be published. Required fields are marked *