import DisplayFormula from '@/components/content/DisplayFormula.astro';
In modern motor systems, "speed control" is almost synonymous with "adjusting voltage and frequency," and PWM (pulse-width modulation) is the most common means of turning a fixed supply into any equivalent voltage: brushed DC controllers, BLDC square-wave drives, stepper constant-current chopping, and VFD sinusoidal output are all PWM underneath. Only by understanding duty cycle and carrier frequency can you grasp why a drive heats up, why a motor whines, and which way to turn the parameters.
Why it matters
A motor wants an adjustable voltage and frequency, but the grid delivers a fixed voltage. PWM's idea is direct: switch the power devices on and off rapidly and express the target voltage through the ratio of on-time to the period — the load (the motor winding), thanks to its inductance, "feels" a smoothed equivalent value. The three main groups of drive parameters (carrier frequency, current loop, dead-time compensation) all build on PWM, so understanding it is a basic skill for commissioning and selection.
Core concepts and formulas
Duty cycle and average voltage. The switch conducts for a time t_on within a period T, and the duty cycle is defined as:
Duty cycle D = on-time t_on ÷ period T; average voltage U_avg(V) = D × DC bus voltage U_dc(V)Numeric example: with a 24 V DC supply, D = 50% gives an equivalent average voltage of 12 V, and D = 25% gives 6 V. Under such a supply the speed of a brushed DC motor varies approximately with the average voltage, which is exactly the principle of "PWM voltage speed control" in the brushed DC motor.
Inductance "smooths" the pulsed current. The motor winding is an inductance, and current cannot change abruptly: when a high-frequency pulsed voltage is applied to the winding, the current is smoothed into an almost continuous waveform whose ripple decreases as the carrier frequency and winding inductance increase and grows as the bus voltage rises. Electromechanical energy conversion depends on the average value and waveform quality of the current, not on the instantaneous voltage — which is also why PWM speed control does not "lose torque every time it switches."
How to choose the carrier frequency. The carrier frequency is the switching frequency, and 8–20 kHz is common in engineering practice:
| Carrier frequency | Typical effect |
|---|---|
| Low (a few kHz) | Noticeable audible noise and large current ripple, but low switching loss |
| 8–20 kHz | Noise moves to the edge of audibility; the balanced range for most low- and medium-power drives |
| High (> 20 kHz) | Quiet running and low ripple, but switching loss and EMC pressure rise |
The exact carrier-frequency range is subject to the values allowed by the drive and motor manufacturer; inverter supply brings insulation spikes and shaft-current problems, and the remedies are described in Inverter-duty motors: how they differ from standard motors and selection notes.
Square-wave and sine synthesis. A VFD varies the duty cycle of each phase according to a sine law, "chopping" the DC bus into an equivalent three-phase sinusoidal voltage; a BLDC square-wave drive combines PWM with six-step commutation, and high-performance applications switch to FOC field-oriented control to generate smooth sinusoidal currents. Both approaches rely on the same thing: expressing the target voltage through the switching time ratio. For position sensing in brushless drives, see Hall sensors; for constant-current chopping and microstepping in stepper drives, see Stepper drivers.
Common misconceptions
- Reading a PWM output with an ordinary multimeter: the reading depends on the meter type, and average, RMS, and peak values do not match up, so troubleshooting is easily misled; use the drive display, a true-RMS meter, or an oscilloscope instead.
- Believing a higher carrier frequency is always better: high frequency brings switching loss, EMC, and shaft-current problems, and the reflected overvoltage at the end of long cables is also harder on insulation — set it as the manual recommends.
- Treating duty cycle directly as a speed ratio: this holds approximately at no load; under load, back-EMF, circuit voltage drops, and load torque together determine the operating point.
- Thinking PWM is only a DC technique: VFDs, brushless drives, and stepper drives all use it; insulation and shaft-current problems on the AC side also stem from PWM output characteristics.
Engineering guidance
- Change only one parameter at a time: first confirm that the carrier frequency matches the motor, then adjust the current/speed loops; a carrier-frequency change affects current sampling and noise behavior, so re-measure promptly after each change.
- Recheck torque against the operating condition: after a speed change the operating point moves, so use the power, torque, and speed calculation to verify the required torque and power, and avoid assuming that "slowing down solves everything."
- Wiring determines the interference level: route power lines separately from signal lines (Hall, encoder), and ground shields as the manual requires; for interference-resistant feedback design, see Encoder.
- Work out the commands first for pulse and positioning applications: when pulse/displacement conversion is needed, use the stepper motor microstepping and pulse calculation to work out pulse frequency, speed, and displacement clearly before matching the drive.
- Safety: wiring and commissioning of drive systems must be carried out with the power off and by qualified personnel following the applicable procedures; after a VFD is disconnected, wait for the DC bus to discharge.