Overview
Driving a higher-current DC motor from a low-power PWM output requires interfacing the control signal to a power switching device. The ECU output rated at 12V/1.5A cannot directly supply the 25A stall current of the target motor. A MOSFET switch between the ECU and motor solves this problem—the MCU output simply needs to supply gate charge current during switching transitions, not continuous motor current.MOSFET vs BJT for DC Motor Control
The original forum post suggested an NPN BJT with beta=50. This approach has fundamental limitations:| Parameter | BJT (2N2222, TIP120) | MOSFET (IRLZ44N) |
|---|---|---|
| Drive Method | Current-controlled (Ib) | Voltage-controlled (Vgs) |
| Drive Current Required | Ic/Beta = 25A/50 = 500mA minimum | Only gate charge during transitions |
| On-State Loss | Vce(sat) × Ic (1-2W typical) | Id² × Rds(on) (0.35W at 4A, higher at 25A) |
| Power Dissipation | Significant at 25A | Manageable with heatsinking |
| Saturated Switching | Slow storage time | Fast, sub-microsecond transitions |
Primary Component Selection
For 12V/25A DC motor switching, the following MOSFETs provide appropriate voltage margin and current rating:Recommended: Infineon IRLZ44N
- Part Number: IRLZ44N (N-channel, logic-level gate)
- Vdss: 55V (sufficient for 12V automotive environment)
- Id (continuous): 36A @ 25°C, 25A @ 100°C
- Rds(on): 0.022Ω @ Vgs=5V (logic-level compatible)
- Vgs(th): 1.35V to 2.0V (turn-on guaranteed above 4V)
- Package: TO-220 (easy heatsinking, through-hole mounting)
- Gate Charge: 67nC (fast switching, moderate drive requirements)
- Data Sheet: Infineon IRLZ44N Datasheet
Alternative: ON Semiconductor NDD35N
- Part Number: NDD35N40 (N-channel)
- Vdss: 40V
- Id (continuous): 35A
- Rds(on): 0.0065Ω (lower conduction loss)
- Vgs(th): 2.5V typical
- Package: TO-252 (DPAK, surface mount)
Alternative: Vishay SiHG47N60S
- Part Number: SiHG47N60S
- Vdss: 600V (overkill for 12V, but robust)
- Id (continuous): 30A
- Rds(on): 0.065Ω
- Package: TO-220
Circuit Design
Basic Switching Circuit
ECU PWM Output (0-5V/12V) ──┬─── Gate Resistor Rg ───┬─── MOSFET Gate
│ │
│ ┌────┴────┐
│ │ IRLZ44N │
│ │ N-CH │
└─────────────────GND│ │
Drain─┤
│
Motor ─┤
│
+12V ──┘
Component Values
| Component | Value | Selection Criteria |
|---|---|---|
| Gate Resistor (Rg) | 100Ω to 470Ω | Limits peak gate current, reduces ringing. 100Ω for fast transitions, 470Ω for noise immunity. |
| Gate-Source Resistor (Rgs) | 10kΩ to 100kΩ | Pulls gate low when ECU output is high-impedance or disconnected. |
| Flyback Diode (D1) | 30A+ @ 40V+ | Essential for inductive loads. Use Schottky (MBR1045) or ultrafast recovery (UF4007). |
| Supply Decoupling | 100µF electrolytic + 100nF ceramic | Absorbs motor current spikes; place close to motor terminals. |
Thermal Considerations
Power dissipation in the MOSFET equals P = I² × Rds(on) × duty cycle. At 25A continuous with Rds(on)=0.022Ω:Pdiss = 25² × 0.022 = 13.75W (worst case)
Thermal resistance from junction to ambient for TO-220 without heatsink: ~62.5°C/W (junction-to-case) + ~30°C/W (case-to-ambient) = ~92.5°C/W total.
At 13.75W without heatsink: Tj rise = 13.75 × 92.5 = 1272°C — instant failure.
Heatsink Requirements
To keep Tj below 120°C with 13.75W:Rth(total) ≤ (120°C - 25°C) / 13.75W = 6.9°C/W maximum
Required heatsink thermal resistance:
Rhs ≤ 6.9 - 62.5 - 0.5 = -56.1°C/W (impossible)
This reveals a critical issue: operating at 25A continuous requires either:
- Lower Rds(on) MOSFET: Use Rds ≤ 0.004Ω to limit dissipation to ~2.5W, achievable with modest heatsinking
- Reduced continuous current: Motor may not require continuous 25A; determine actual running current
- Parallel MOSFETs: Distribute current across multiple devices
- PWM duty cycle management: Limit maximum duty cycle to reduce effective current
Protection Circuitry
Flyback Diode (Freewheeling Diode)
Inductive loads generate voltage spikes when current stops: Vspike = L × (di/dt). Without a flyback diode, this voltage exceeds MOSFET breakdown and destroys the device. Install the diode antiparallel to the motor:Motor(+) ──►|── Motor(-)
│
Drain (IRLZ44N)
Recommended diodes for 25A motor:
| Part Number | Vrrm | If(avg) | Type |
|---|---|---|---|
| MBR1045 | 45V | 10A | Schottky (parallel two for 20A) |
| STPS2045 | 45V | 20A | Schottky |
| 30SQ120 | 120V | 30A | Schottky (good margin) |
Gate Protection
ECU outputs may generate transients. Add clamping:- TVS Diode: 15V bidirectional (e.g., SMBJ15CA) from gate to source for overvoltage protection
- Gate Resistor: 100-470Ω series resistor limits dV/dt and current spikes
PCB Layout Considerations
For 25A motor control, trace resistance matters:- Motor supply traces: Minimum 3mm width per ampere (15A = 4.5mm minimum)
- Use solid copper pours, not narrow traces
- Place decoupling capacitors within 20mm of motor terminals
- Kelvin source connection (separate sense lead from power ground) improves switching performance
- Gate loop area: Keep small to reduce inductance
Verification Procedure
- Static Testing: With power off, verify resistance from Drain to Source is infinite when gate is unconnected or shorted to Source
- Gate Threshold Test: Apply 5V to gate; verify low resistance from Drain to Source with DMM diode mode
- No-Load Test: Connect motor but keep supply current limited; monitor MOSFET temperature for 30 seconds
- Full-Load Test: Run motor at target PWM; verify MOSFET case temperature stabilizes below 80°C with adequate heatsink
- Current Measurement: Verify motor current stays within MOSFET SOA at operating duty cycle
Troubleshooting Guide
| Symptom | Possible Cause | Solution |
|---|---|---|
| Motor doesn't run | Gate not receiving voltage | Check PWM output with oscilloscope; verify Rgs pull-down not shorted |
| Motor runs hot | MOSFET partially on | Verify Vgs ≥ 5V during PWM high; check for insufficient gate drive |
| MOSFET fails shorted | No flyback diode | Install flyback diode; check for reversed diode polarity |
| MOSFET fails open | Overcurrent, overheating | Add heatsink; verify motor stall current not exceeding SOA |
| Intermittent operation | Loose connections, thermal cycling | Check all solder joints; verify gate resistor soldered correctly |
Can I use a BJT instead of MOSFET for this application?
Technically yes, but the ECU's 1.5A output cannot provide the 500mA base current needed for a BJT to saturate at 25A collector current. Use a low-Rds(on) logic-level MOSFET instead.
What's the minimum heatsink for continuous 25A operation?
Continuous 25A with 0.022Ω Rds(on) dissipates ~14W, requiring a heatsink with thermal resistance below 6.9°C/W—impractical without active cooling. Use a MOSFET with Rds(on) ≤ 0.004Ω or limit duty cycle/current.
Do I need a flyback diode?
Yes. Inductive loads (DC motors) generate voltage spikes when turned off. Without a flyback diode antiparallel to the motor, the flyback voltage exceeds the MOSFET's Vdss rating and destroys the device.
What gate resistor value should I use?
100Ω to 470Ω. Lower values (100Ω) give faster switching transitions but increase EMI and stress on the control output. Higher values (470Ω) improve noise immunity but slow transitions.
Why use logic-level MOSFETs like the IRLZ44N?
Logic-level MOSFETs have Vgs(th) specified at 5V or 4.5V, ensuring full saturation when driven directly from MCU/ECU outputs. Standard MOSFETs requiring 10V gate drive may not fully turn on from 5V logic outputs, causing excessive power dissipation.