β οΈ Affiliate Disclosure: This post contains Amazon affiliate links. If you purchase through our links, we may earn a small commission at no extra cost to you. Every product below was checked against its live Amazon listing before publishing. Prices change often, so we don’t list them here. Tap any Buy Here button to see the current price on Amazon.
ESP32 Motor Control Guide
βοΈ Best DC Motor Drivers for ESP32
From tiny battery robots to 24V gear motors: 8 H-bridge drivers that take 3.3V PWM from an ESP32 and turn it into smooth, reversible motor control.
β
8 Drivers Compared
β
Verified Amazon ASINs
β
3.3V Logic Checked
β
Honest Pros & Cons
An ESP32 GPIO pin can source only a few milliamps at 3.3V, while even a small toy gear motor wants hundreds of milliamps at start-up, and it generates voltage spikes every time it switches off. A motor driver sits between the two: an H-bridge that takes the ESP32’s PWM and direction signals and switches a separate motor supply, so you can set speed, reverse direction and brake without frying the board.
The right driver depends on your motor voltage and stall current, and on whether it accepts 3.3V logic. This guide compares 8 drivers, from the efficient MOSFET TB6612FNG and DRV8833 for small robots, to Cytron’s 10A and 13A boards for heavy gear motors, plus the classic L298N and high-current BTS7960 modules you’ll see in countless tutorials.
π‘ Before you buy: Look up your motor’s stall current, not its running current. A motor that runs at 300mA can pull 2A or more for a moment when it starts or jams, and that peak is what trips or overheats a small driver. Choose a driver whose continuous rating covers normal load and whose peak rating covers the stall. Also power the motors from their own supply, never from the ESP32’s 3.3V pin, and join the grounds.
β‘ Quick Comparison: All 8 Motor Drivers
| Driver | Channels | Motor Voltage | Current per Channel | Best For | Buy |
|---|
| π₯ SparkFun TB6612FNG | 2 DC | Up to 15V | 1.2A cont / 3.2A peak | Best Overall | Buy Here β |
| πͺ Cytron MDD10A | 2 DC | 5 to 30V | 10A cont / 30A peak | Best High-Current Dual | Buy Here β |
| π Adafruit DRV8833 | 2 DC or 1 stepper | 2.7 to 10.8V | About 1.2A, 2A peak per chip | Best for Battery Robots | Buy Here β |
| π‘οΈ Adafruit DRV8871 | 1 DC | 6.5 to 45V | 3.6A peak, about 2A limit by default | Best Single Motor | Buy Here β |
| πͺΆ Adafruit Motor FeatherWing | 4 DC or 2 steppers | 4.5 to 13.5V | 1.2A per bridge | Best for ESP32 Feather (I2C) | Buy Here β |
| ποΈ Cytron MD10C | 1 DC | 5 to 30V | 13A cont / 30A peak | Best Heavy Single Motor | Buy Here β |
| π₯ HiLetgo BTS7960 | 1 DC | High-voltage DC (see listing) | Listed as 43A | Best Budget High Power | Buy Here β |
| π¦ HiLetgo L298N (4 pack) | 2 DC or 1 stepper | Up to about 35V | About 2A, with high voltage drop | Best Cheap Classic | Buy Here β |
Specs come from the manufacturers and the live Amazon listings. Star scores below are our ratings.
π What Matters in a Motor Driver
π
Motor Voltage Range
A 1S LiPo robot (3.7V) needs a driver that works below 5V; a 24V gear motor needs one rated well above 24V.
β‘
Continuous and Peak Current
Continuous covers cruising, peak covers start-up and stalls. Leave headroom: drivers run hot near their limit.
π§
3.3V Logic
The ESP32 outputs 3.3V. Every pick here accepts it, but some cheap modules expect 5V and behave unreliably.
π‘οΈ
MOSFET vs Bipolar
MOSFET drivers (TB6612, DRV88xx, Cytron) waste little power. The old bipolar L298N drops around 2V and turns it into heat.
π‘οΈ
Protection Features
Current limiting, thermal shutdown and undervoltage lockout save the driver (and your motor) when something jams.
π Detailed Reviews: The Top Two
π₯ BEST OVERALL FOR ESP32 ROBOTS
SparkFun Motor Driver: Dual TB6612FNG (with Headers)
β 4.7/5 Β· Our Rating Β· The Small-Robot Standard
Buy on Amazon β

If you’re building a two-wheel robot car, a small rover or a line follower with N20 or TT gear motors, the TB6612FNG is the driver to start with. It’s a MOSFET H-bridge, so it wastes far less power than an L298N, and its logic runs from 2.7V to 5.5V, so it works directly with the ESP32’s 3.3V pins. Each channel handles 1.2A continuous and 3.2A peak at up to 15V. Control is simple: IN1 and IN2 set forward, reverse, short brake or stop, a PWM pin sets speed (accepting up to 100kHz, so you can run the ESP32’s LEDC above the audible range), and a STBY pin puts the whole chip to sleep. Thermal shutdown and low-voltage detection are built in. This SparkFun version comes with headers already soldered, ready for a breadboard.
β
Pros- Native 3.3V logic
- Efficient MOSFET bridge
- Brake and standby modes
- Headers pre-soldered
β Cons- 15V maximum
- Too small for big gear motors
- Six control pins for two motors
π― Verdict: The best all-round driver for small ESP32 robots and hobby gear motors.
π Check Price on Amazon β
πͺ BEST HIGH-CURRENT DUAL DRIVER
Cytron MDD10A Dual Channel 10A DC Motor Driver
β 4.7/5 Β· Our Rating Β· Built for Big Gear Motors
Buy on Amazon β

When your project moves something heavy, such as a 12V or 24V wheelchair-style gear motor, a lawn robot, a linear actuator pair or a sliding gate, the Cytron MDD10A is the step up. It drives two brushed motors at 10A continuous and 30A peak (10 seconds) each, from a 5 to 30V supply, using an all-NMOS H-bridge that needs no heat sink. The inputs accept 3.3V or 5V logic, so it wires straight to an ESP32: one PWM pin and one DIR pin per motor (sign-magnitude), or locked-antiphase mode if you prefer. PWM runs up to 20kHz for quiet motors, and two on-board test buttons let you spin each motor before writing a line of code. Note that it has no reverse polarity protection on the motor supply, so double-check your wiring.
β
Pros- 10A per channel, no heat sink
- 3.3V logic compatible
- Simple PWM and DIR control
- Test buttons on board
β Cons- No reverse polarity protection
- Large board (84.5 x 62 mm)
- Overkill for small motors
π― Verdict: The driver to buy for two big 12V or 24V gear motors on an ESP32 rover.
π Check Price on Amazon β
π§ Detailed Reviews: Adafruit Breakouts and FeatherWing
π BEST FOR BATTERY ROBOTS Β· β 4.5/53. Adafruit DRV8833 DC/Stepper Motor Driver Breakout
2 H-bridges Β· 2.7 to 10.8V Β· about 1.2A per channel Β· current limiting Β· 26 x 18 mm
Buy Here β

The DRV8833 shines where the TB6612 starts to struggle: very low voltages. It runs from 2.7V to 10.8V, so it can drive small motors straight from a single LiPo cell, a pair of AA batteries or 4xAA, which makes it ideal for tiny ESP32-C3 or XIAO robots. It drives two DC motors (or one small bipolar stepper) at about 1.2A per channel, with built-in current limiting set to about 1A per chip by default, kickback diodes and polarity protection on the motor input. Each motor uses two inputs with PWM on one of them, and the board is only 26 x 18 mm. It isn’t meant for anything above about 10V.
β
Pros: Works from 2.7V; tiny; current limiting; polarity protection.
β Cons: 10.8V maximum; headers need soldering.
π― Verdict: The best driver for small battery-powered robots running from one cell or AA packs.
π‘οΈ BEST SINGLE MOTOR WITH PROTECTION Β· β 4.5/54. Adafruit DRV8871 DC Motor Driver Breakout (3.6A Max)
1 H-bridge Β· 6.5 to 45V Β· 3.6A peak Β· adjustable current limit Β· UVLO, overcurrent and thermal shutdown
Buy Here β

Need to run one mid-size motor from 12V or 24V, such as a pump, a fan, a linear actuator or a conveyor? The DRV8871 handles a single brushed motor from 6.5V up to 45V with up to 3.6A peak. Its best trick is built-in current regulation with no sense resistor: the default resistor limits current to about 2A, and you can change it to suit your motor. Undervoltage lockout, overcurrent protection and thermal shutdown make it very hard to kill. Control is just two pins (IN1 and IN2) with PWM, and the inputs work with 3.3V logic. It’s a single channel, so a two-wheel robot needs two boards.
β
Pros: Up to 45V; adjustable current limit; full protection set; two-pin control.
β Cons: One motor only; 6.5V minimum.
π― Verdict: The safest choice for one 12V or 24V pump, fan or actuator.
πͺΆ BEST FOR ESP32 FEATHER AND I2C Β· β 4.6/55. Adafruit DC Motor + Stepper FeatherWing
4 H-bridges Β· 4 DC or 2 steppers Β· 4.5 to 13.5V Β· 1.2A per bridge Β· I2C control Β· 50.8 x 22.9 mm
Buy Here β

If you use an ESP32 or ESP32-S3 Feather, this add-on stacks right on top and controls four DC motors (or two bipolar steppers, or one stepper plus two DC motors) over I2C. A dedicated PWM chip generates 12-bit speed control for every motor, so it uses just the two I2C pins instead of up to a dozen GPIOs, leaving the rest free for sensors. It takes a 4.5 to 13.5V motor supply through a polarity-protected terminal, handles 1.2A per bridge, and includes thermal shutdown, kickback diodes and motors held off at power-up. It works with non-Feather ESP32 boards too, wired by I2C, but the current per motor is modest.
β
Pros: Four motors from two pins; stacks on Feather; stepper support.
β Cons: 1.2A per bridge; headers and terminals need soldering.
π― Verdict: The neatest way to run four small motors from an ESP32 Feather while saving GPIOs.
β Also Worth Considering
ποΈ BEST HEAVY SINGLE MOTOR Β· β 4.6/5
6. Cytron MD10C 13A DC Motor Driver
The single-channel sibling of the MDD10A, for one large brushed motor. It delivers 13A continuous and up to 30A peak from a 5 to 30V supply, accepts 3.3V or 5V PWM, and supports sign-magnitude (PWM plus DIR) and locked-antiphase control, with on-board test buttons. A strong match for a winch, a big actuator or a single drive motor.
Buy Here βπ₯ BEST BUDGET HIGH POWER Β· β 4.2/5
7. HiLetgo BTS7960 43A Motor Driver Module
The popular “IBT-2” style board built from two BTS7960 half-bridges and a big heat sink, listed as a 43A driver for one brushed motor. That figure is the chip’s peak rating, so plan on far less continuous current in practice. It’s a cheap way to drive one large 12V motor. Its logic side is powered from 5V, so check that your module registers the ESP32’s 3.3V signals reliably before you build around it.
Buy Here βπ¦ BEST CHEAP CLASSIC Β· β 3.9/5
8. HiLetgo L298N Dual H-Bridge Board (4 Pack)
The red L298N board from a thousand tutorials, sold here as a 4 pack. It drives two DC motors or one stepper, includes screw terminals and an on-board 5V regulator, and accepts 3.3V inputs in most cases. The catch is its old bipolar bridge: it drops roughly 2V and gets hot, so a 6V motor sees much less. Fine for learning and spare parts; choose the TB6612FNG for real builds.
Buy Here βπ€ Which Driver for Which ESP32 Project?
| Project | Typical Motors | Recommended Driver |
|---|
| 2WD or 4WD robot car | TT or N20 gear motors, 6 to 9V | SparkFun TB6612FNG |
| Tiny 1S LiPo or AA robot | Micro gear motors, 3 to 6V | Adafruit DRV8833 |
| Feather-based rover with 4 motors | Small gear motors or steppers | Adafruit Motor FeatherWing |
| 12V or 24V pump, fan or actuator | One brushed motor under 2 to 3A | Adafruit DRV8871 |
| Heavy outdoor rover, lawn robot | Two 12V or 24V gear motors | Cytron MDD10A |
| Gate opener, winch, big actuator | One high-current motor | Cytron MD10C or BTS7960 |
| Classroom kits and experiments | Small DC motors | HiLetgo L298N |
π Which One Should You Buy?
π
Your first ESP32 robot car
The SparkFun TB6612FNG: efficient, 3.3V native and easy to code.
π
Running from one cell
The Adafruit DRV8833, which works from 2.7V.
πͺ
Big motors, serious loads
The Cytron MDD10A for two motors, or the MD10C for one.
π
Short on GPIO pins
The Motor FeatherWing runs four motors over I2C.
β Frequently Asked Questions
Can I connect a DC motor directly to an ESP32 pin?
No. A GPIO pin supplies only a few milliamps, can’t reverse the motor, and the motor’s inductive spikes can damage the chip. Always use a driver (or at least a transistor with a flyback diode for one-direction control) and a separate motor supply.
Should I still use the L298N?
It works, but its bipolar bridge drops around 2V and wastes that as heat, which hurts battery robots and low-voltage motors. MOSFET drivers like the TB6612FNG or DRV8833 give your motors more voltage and run cooler.
What PWM frequency should I use on the ESP32?
Low frequencies (around 1kHz) give strong low-speed torque but an audible whine; around 20kHz is silent. Use the LEDC or MCPWM peripheral and stay within the driver’s limit: 20kHz for the Cytron boards, up to 100kHz for the TB6612FNG.
Why does my ESP32 reset when the motors start?
Motor start-up current pulls the supply voltage down and triggers the ESP32’s brownout detector. Give the motors their own supply or a separate regulator, add a large capacitor near the driver, and connect the grounds at one point.
Can these drivers run stepper motors?
The dual-bridge boards (TB6612FNG, DRV8833, FeatherWing, L298N) can drive small bipolar steppers, but a dedicated stepper driver with microstepping and current control does it much better. See our stepper motors and drivers guide.
π Final Verdict: Best DC Motor Drivers for ESP32
The right driver for each job:
πͺΆ Best for ESP32 Feather: Adafruit Motor FeatherWing
Buy Here βFor most ESP32 projects, the SparkFun TB6612FNG is the driver to reach for: efficient, 3.3V friendly and right-sized for hobby gear motors. Drop to the DRV8833 for single-cell robots, step up to the DRV8871 for one protected 12V or 24V motor, and move to the Cytron MDD10A or MD10C when the motors get big. Pair your driver with a clean motor supply from our buck converters and regulators guide, measure motor current with the picks in our current and voltage sensors guide, and see our servo motors and ESP32 robot kits guides for the rest of your build.
π¬ Not sure which driver fits your motor? Tell us its voltage and stall current in the comments below, and we’ll point you to the right one.
All Amazon links above use our affiliate tag (esp32tutorials-20). Purchasing through them supports esp32tutorials.com at no extra cost to you. Prices and availability change frequently, so always confirm the current price on Amazon before buying.
We are a team of experienced Embedded Software Developers with skills in developing Embedded Linux, RTOS, and IoT products from scratch to deployment with a demonstrated history of working in the embedded software industry. Contact us for your projects: admin@esp32tutorials.com