Component guide · Intermediate · 3 min read
BTS7960 motor driver

Pinout, Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The BTS7960 (IBT-2) module drives one large DC motor at up to 43 A peak from 6 to 27 V. It uses two half-bridges, so you control direction by sending PWM to RPWM or LPWM, with R_EN and L_EN held high. It suits wiper motors, wheelchair motors and big robot drives; real continuous current is limited by heat.
Key specs at a glance
- Chips
- 2 x Infineon BTS7960 half-bridges
- Motor supply
- 6 to 27 V
- Peak current
- 43 A (continuous much lower, depends on cooling)
- Logic
- 3.3 V or 5 V inputs
- PWM
- Up to 25 kHz
- Feedback
- R_IS / L_IS current sense outputs
This part can carry many amps. Use wire thick enough for the current, put a fuse close to the battery, check that connectors are rated for the load and give drivers and motors room to cool. A short at these currents melts wires in seconds.
What the BTS7960 motor driver is
The BTS7960 module is a high-current H-bridge for one brushed DC motor. Each BTS7960 chip is a half-bridge; the module combines two into a full bridge with a large aluminium heatsink and screw terminals for thick motor wires.
Direction depends on which side gets PWM: RPWM turns the motor one way, LPWM the other. Both enable pins must be HIGH. It is one of the few low-cost drivers that survives the stall current of 12 V and 24 V geared motors.
BTS7960 motor driver pinout
The pins on the BTS7960 motor driver and what each one does.
| Pin | Function |
|---|---|
| B+ / B- | Motor supply 6 to 27 V (thick wires) |
| M+ / M- | Motor terminals |
| RPWM | PWM for forward |
| LPWM | PWM for reverse |
| R_EN, L_EN | Enable both halves (tie HIGH, or join and use one pin) |
| R_IS, L_IS | Current sense outputs (analog) |
| VCC | 5 V logic supply |
| GND | Logic ground |
- B+ / B-
- Motor supply 6 to 27 V (thick wires)
- M+ / M-
- Motor terminals
- RPWM
- PWM for forward
- LPWM
- PWM for reverse
- R_EN, L_EN
- Enable both halves (tie HIGH, or join and use one pin)
- R_IS, L_IS
- Current sense outputs (analog)
- VCC
- 5 V logic supply
- GND
- Logic ground
Wiring the BTS7960 motor driver
Use wire rated for the motor current on B+, B- and the motor terminals, and an inline fuse. Join the logic GND to the controller GND.
| BTS7960 motor driver pin | Arduino Uno | ESP32 |
|---|---|---|
| RPWM | D5 (PWM) | GPIO 25 |
| LPWM | D6 (PWM) | GPIO 26 |
| R_EN + L_EN | D7 (or 5V) | GPIO 27 (or 3V3) |
| VCC | 5V | 3V3 or 5V |
| GND | GND | GND |
| B+ / B- | Battery / PSU | Battery / PSU |
- RPWM
- Arduino Uno:
- D5 (PWM)
- ESP32:
- GPIO 25
- LPWM
- Arduino Uno:
- D6 (PWM)
- ESP32:
- GPIO 26
- R_EN + L_EN
- Arduino Uno:
- D7 (or 5V)
- ESP32:
- GPIO 27 (or 3V3)
- VCC
- Arduino Uno:
- 5V
- ESP32:
- 3V3 or 5V
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- B+ / B-
- Arduino Uno:
- Battery / PSU
- ESP32:
- Battery / PSU
Example code
Ramp the speed instead of jumping to full power. It cuts the inrush current and protects gearboxes.
const int RPWM = 5, LPWM = 6, EN = 7;
void motor(int speed) { // -255..255
analogWrite(RPWM, speed > 0 ? speed : 0);
analogWrite(LPWM, speed < 0 ? -speed : 0);
}
void setup() {
pinMode(RPWM, OUTPUT); pinMode(LPWM, OUTPUT); pinMode(EN, OUTPUT);
digitalWrite(EN, HIGH);
}
void loop() {
for (int s = 0; s <= 200; s += 5) { motor(s); delay(30); } // soft start
delay(2000);
motor(0); delay(1000);
for (int s = 0; s >= -200; s -= 5) { motor(s); delay(30); }
delay(2000);
motor(0); delay(1000);
}Setup and tuning
the code above always sets one side to 0.
large motors draw their stall current at start; a 0.5 to 1 s ramp keeps the supply voltage steady.
above about 10 to 15 A continuous, add a fan to the heatsink.
put a fuse sized slightly above the motor's normal running current in the B+ line (fuse sizing).
R_IS and L_IS give a voltage proportional to current through a resistor; use them for overload cut-off.
What you need
Shop this list4 of 5 found in our store · ₹827
BTS7960 43A high-current H-bridge motor driver: the driver this guide coversBTS7960 43A High-Current H-Bridge Motor Driver₹344- Uno R3 development board: the controller used in the wiring tableFind this part
Enclosed SMPS power supply: 12 V or 24 V supply for bigger loadsEnclosed SMPS Power Supply₹257
Dupont jumper wires: for the logic connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
Digital multimeter: to set and check output voltageDigital Multimeter₹177
Alternatives and when to choose them
- L298N: for two small motors under 2 A.
- High-current motor drivers: Cytron and other drivers with built-in protection and simpler control.
- For two big motors, use two BTS7960 modules, one per motor.
Try it: Fuse sizing calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Sending PWM to RPWM and LPWM at the same time, which shorts the bridge.
- Using thin jumper wires for the motor supply.
- No fuse, so a stalled motor burns wires or the module.
- Expecting 43 A continuous: that is a short peak rating.
Frequently asked questions
How much current can the BTS7960 really handle?
43 A is a peak value. With the stock heatsink about 10 to 15 A continuous is realistic; add a fan for more.
Can it drive two motors?
No. One module drives one motor. Use two modules for a two-wheel robot.
Does it work with ESP32?
Yes. The inputs accept 3.3 V logic. Power VCC from 3.3 V or 5 V.
What voltage can I use?
6 to 27 V on B+. A 24 V system is fine; a fully charged 7S Li-ion pack (29.4 V) is too high.
Why does my motor jerk at low speed?
PWM frequency on the Uno is 490 to 980 Hz. Raise it, or start the ramp from the lowest value that moves the motor.
What are R_IS and L_IS for?
Current sense outputs. Read them with an analog pin to detect overloads or stalls.
Parts for this guide
Calculators
Terms in this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

