Skip to content
You Start with one site
Amounts in Start with one site
Simulator · Circuits and sensors

PWM drive

The motor runs, but it whines. Raise the frequency and the whine goes. What does it cost?

Found this useful?
switch onload currentaverage current

Current ripple
Can you hear it?
MOSFET heat
Duty steps
Predict first

A fan motor on PWM whines at 490 Hz. You raise the frequency to 40 kHz. What happens?

Design check
PWM: 5 min
Try this
  1. Make the fan quiet without changing its speed.
  2. Now drive the gate straight from the pin at 40 kHz or more. Where does the heat come from?
  3. Switch to the LED strip. Why does the frequency hardly matter to the current?
How the numbers are worked out

The load is a resistance R in series with an inductance L. While the MOSFET is on, the current rises toward V / R with the time constant L / R; while it is off, it flows on through the freewheel diode and decays. The bench solves the steady state exactly, period after period, so the average current is always duty × V / R: the frequency does not change the speed of a motor, only how smoothly the current flows.

The MOSFET heats in two ways. While it is on, the current squared times its on-resistance (0.05 Ω here). And at every edge, for the time the gate takes to switch, it carries current with voltage across it: about ½ × V × I × edge time, twice a period. More edges per second, more heat; slow edges from a weak pin, much more. The timer makes the duty by counting its clock: clock ÷ frequency counts per period, and that is the number of duty steps. A sound above about 18 kHz is beyond most ears. The lesson PWM, timers and motor control builds this on a real board.

Found this useful?

Discussion

    Comments show your name. Be kind, stay on the topic.