Component guide · Beginner · 3 min read
DRV8833 motor driver

Pinout, Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The DRV8833 is a tiny dual H-bridge for small DC motors that runs from 2.7 to 10.8 V, so a single Li-ion cell or 2xAA pack can power it. Each channel gives about 1.5 A (2 A peak). It has no separate enable pin: you drive speed and direction with PWM on the two inputs of each motor.
Key specs at a glance
- Driver
- TI DRV8833 dual MOSFET H-bridge
- Motor supply
- 2.7 to 10.8 V
- Current
- 1.5 A RMS, 2 A peak per channel (module heat limits this)
- Logic
- Inputs accept 3.3 V and 5 V
- Control
- 2 PWM inputs per motor (IN1/IN2), no enable pin
- Extras
- nSLEEP pin, nFAULT output, over-current and thermal protection
What the DRV8833 motor driver is
The DRV8833 is a small MOSFET H-bridge from Texas Instruments, made for low-voltage motors. It is popular in mini robots, toys and N20 gear motor builds where a 3.7 V cell is the only power.
Instead of direction pins plus an enable, each motor has two inputs. Put PWM on one input and hold the other low to run forward; swap them to reverse. Both high brakes the motor.
DRV8833 motor driver pinout
The pins on the DRV8833 motor driver and what each one does.
| Pin | Function |
|---|---|
| VM (VCC) | Motor supply 2.7 to 10.8 V |
| GND | Ground |
| IN1, IN2 | Motor A control (PWM) |
| IN3, IN4 | Motor B control (PWM) |
| OUT1, OUT2 | Motor A |
| OUT3, OUT4 | Motor B |
| SLP / EEP (nSLEEP) | HIGH = run, LOW = sleep. Pulled up on most modules |
| ULT / FLT (nFAULT) | Goes LOW on over-current, over-heat or under-voltage |
- VM (VCC)
- Motor supply 2.7 to 10.8 V
- GND
- Ground
- IN1, IN2
- Motor A control (PWM)
- IN3, IN4
- Motor B control (PWM)
- OUT1, OUT2
- Motor A
- OUT3, OUT4
- Motor B
- SLP / EEP (nSLEEP)
- HIGH = run, LOW = sleep. Pulled up on most modules
- ULT / FLT (nFAULT)
- Goes LOW on over-current, over-heat or under-voltage
Wiring the DRV8833 motor driver
Every input needs a PWM-capable pin. On an Uno, D5, D6, D9 and D10 are fine. If your module brings out the sleep pin unconnected, tie it to the logic supply.
| DRV8833 motor driver pin | Arduino Uno | ESP32 |
|---|---|---|
| IN1 | D5 (PWM) | GPIO 25 |
| IN2 | D6 (PWM) | GPIO 26 |
| IN3 | D9 (PWM) | GPIO 27 |
| IN4 | D10 (PWM) | GPIO 14 |
| VM | Battery + (2.7-10.8 V) | Battery + (2.7-10.8 V) |
| GND | GND | GND |
- IN1
- Arduino Uno:
- D5 (PWM)
- ESP32:
- GPIO 25
- IN2
- Arduino Uno:
- D6 (PWM)
- ESP32:
- GPIO 26
- IN3
- Arduino Uno:
- D9 (PWM)
- ESP32:
- GPIO 27
- IN4
- Arduino Uno:
- D10 (PWM)
- ESP32:
- GPIO 14
- VM
- Arduino Uno:
- Battery + (2.7-10.8 V)
- ESP32:
- Battery + (2.7-10.8 V)
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
Example code
A minimal sketch to check the part works.
const int AIN1 = 5, AIN2 = 6;
void motorA(int speed) { // -255..255
if (speed >= 0) { analogWrite(AIN1, speed); analogWrite(AIN2, 0); }
else { analogWrite(AIN1, 0); analogWrite(AIN2, -speed); }
}
void setup() { pinMode(AIN1, OUTPUT); pinMode(AIN2, OUTPUT); }
void loop() {
for (int s = 0; s <= 255; s += 5) { motorA(s); delay(20); } // ramp up
delay(1000);
motorA(-150); delay(1500);
motorA(0); delay(1000);
}Setup and tuning
a 3.7 V Li-ion or LiPo cell powers both motors and the driver; feed the microcontroller through a boost or LDO regulator.
for smoother low-speed control, hold one input HIGH and put inverted PWM on the other (both-high is brake).
the module's small copper area limits continuous current to about 1 A per channel without cooling.
read nFAULT on a spare pin if you want to detect a stalled motor.
What you need
Shop this list5 of 5 found in our store · ₹871
DRV8833 dual motor driver module: the driver this guide coversDRV8833 Dual Motor Driver Module₹86
N20 micro metal gear motor: a typical motor for this driverN20 Micro Metal Gear Motor₹229
ESP32-WROOM-32 38-pin development board: if you want Wi-Fi or Bluetooth controlESP32-WROOM-32 38-Pin Development Board₹389
Lithium polymer (LiPo) cell 3.7 V: single-cell powerLithium Polymer (LiPo) Cell 3.7V₹118
Dupont jumper wires: for the signal connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
Alternatives and when to choose them
Try it: Pwm duty cycle calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Using non-PWM pins for the inputs, so speed control does not work.
- Running 12 V motors: above 10.8 V the chip is damaged.
- Leaving the sleep pin floating on modules without a pull-up.
- Powering the microcontroller from VM without a regulator.
Frequently asked questions
Can the DRV8833 run from a single 18650 cell?
Yes. It works down to 2.7 V, so a 3.7 V cell is a good match for small motors.
Why are there no enable pins?
Each motor is controlled by two inputs; PWM on one input sets speed and the other sets direction.
Can it drive a stepper motor?
Yes, a small bipolar stepper (one coil per channel) with full or half steps. Current limiting needs the sense resistors fitted.
Does it work with 5 V Arduino?
Yes. The inputs accept 5 V logic.
What does nFAULT mean?
It goes LOW when the chip detects over-current, over-temperature or low supply and turns the outputs off.
How hot does it get?
Up to about 1 A per channel it stays warm; for more, add a small heatsink or use a larger driver.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 8 step-by-step builds in our project library use parts from 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.
