Design overview
Key specifications and signal flow at a glance
Block diagram
Four MOSFETs form the H-bridge. The gate driver handles bootstrap high-side drive; a shunt resistor feeds current back to the controller for limiting.
Bill of materials
Select the lines you need and send them to RFQ in one click
Tick the lines you need, then copy the list, download a CSV, or open the RFQ form. Part numbers are common catalogue items; equivalents are acceptable.
| # | Function | Suggested part | Key spec | Qty | |
|---|---|---|---|---|---|
| 1 | H-bridge driver | DRV8871DDAR | 3.6 A, 45 V, HTSSOP-16 | 1 | |
| 2 | N-channel MOSFET | AOD4184A | 40 V, 10 A, TO-252 | 4 | |
| 3 | Half-bridge driver | IR2104S | 600 V, SOIC-8 | 2 | |
| 4 | Current sensor | ACS712ELCTR-05B-T | 5 A, hall effect, SOIC-8 | 1 | |
| 5 | MCU | STM32G031K8T6 | Cortex-M0+, 64 KB flash, 32-pin | 1 | |
| 6 | Schottky diode | SS34 | 3 A, 40 V, SMA | 2 | |
| 7 | Bulk capacitor | GRM21BR61A106KE19L | 10 uF, X5R, 10 V, 0805 | 2 | |
| 8 | Sense resistor | CRCW2512100RFKEG | 100 mOhm, 1%, 2512 | 1 | |
| 9 | Decoupling cap | GRM155R71C104KA88D | 100 nF, X7R, 25 V, 0402 | 8 | |
| 10 | TVS diode | SMBJ18CA | 18 V bidirectional, SMB | 1 |
Design notes
Engineering choices and common pitfalls
H-bridge basics
Two high-side and two low-side switches reverse the voltage across the motor. Never turn on both MOSFETs in one leg at the same time - that shorts the supply. A hardware dead-time in the gate driver prevents this.
Current sensing and braking
A low-value shunt or a hall sensor measures motor current. During braking the motor acts as a generator and pushes current back into the bridge; the driver must handle regenerative current or dissipate it in a braking resistor.
Bootstrap capacitors
High-side N-channel MOSFETs need a bootstrap capacitor above the supply rail. Use a low-ESR 100 nF ceramic placed close to the driver pins. At very low duty cycles or long off-times the bootstrap may need refreshing.
Layout and thermal
Keep the switching loop between the MOSFETs and bulk capacitor short. Motor current ripple is high, so size the bulk capacitor for the peak. Add copper under the driver for heat spreading.
Frequently asked questions
What is an H-bridge?
A circuit of four switches that can reverse the voltage across a motor, allowing forward, reverse and braking.
Why do I need a gate driver?
A microcontroller pin cannot drive the high-side MOSFET gate above the supply rail. A driver with bootstrap provides the required gate voltage.
How do I control motor speed?
Apply a PWM signal to the bridge. The duty cycle sets the average voltage and therefore the speed; the direction pin selects forward or reverse.