PWM Duty Cycle to Motor Voltage
Convert PWM duty cycle to effective motor voltage, calculate no-load speed and stall current for DC motor PWM control.
Formula
V_eff = V_s × D, n₀ = V_eff × Kv
How It Works
Worked Example
A 24 V DC motor must run at 60% of its rated speed using a PWM controller at 20 kHz. Step 1 — Required duty cycle: D = 60% → D = 0.60 Step 2 — Average voltage applied to motor: V_avg = 0.60 × 24 V = 14.4 V Step 3 — PWM period and on-time: T = 1 / 20000 = 50 µs t_on = 0.60 × 50 µs = 30 µs t_off = 50 µs − 30 µs = 20 µs Step 4 — Estimate motor current ripple (motor inductance L = 2 mH): ΔI = (V_supply × D × (1−D)) / (L × f) ΔI = (24 × 0.60 × 0.40) / (0.002 × 20000) = 5.76 / 40 = 0.144 A Result: Set the PWM timer for a 30 µs high pulse in a 50 µs period. The 0.14 A current ripple is acceptable for a 2 mH motor winding.
Practical Tips
- ✓Choose PWM frequency above 20 kHz to avoid audible noise; for large inductive motors use 5–20 kHz where switching losses are acceptable
- ✓Add a bootstrap or high-side gate driver when driving the high-side MOSFET of an H-bridge — a logic-level MOSFET cannot be fully enhanced from a fixed supply rail
- ✓Measure motor temperature during extended low-duty-cycle operation — the motor may receive insufficient cooling airflow from its own fan at low speeds
Common Mistakes
- ✗Using too low a PWM frequency (< 1 kHz) for brushed motors — audible whining and high current ripple cause overheating and brush wear
- ✗Ignoring the motor's minimum duty cycle threshold — below ~10–20% the motor may not turn but will still draw stall current
- ✗Driving a motor with a GPIO pin directly instead of a gate driver — GPIO pins cannot source the peak gate charge needed for fast MOSFET switching
Frequently Asked Questions
Shop Components
Affiliate links — we may earn a commission at no cost to you.
Related Calculators
Motor
DC Motor
Calculate DC motor speed, torque, power, and efficiency from electrical parameters
Motor
H-Bridge
Calculate H-bridge MOSFET requirements including peak current, conduction losses, and minimum current rating for DC motor drivers.
Motor
Driver Power
Calculate motor driver IC or discrete MOSFET power dissipation including conduction loss and switching loss at a given PWM frequency.
Motor
Stepper Motor
Calculate stepper motor speed, step frequency, and travel per revolution
Motor
BLDC Motor
Calculate brushless DC motor no-load RPM, stall torque, maximum efficiency, input power, and propeller thrust from Kv rating and electrical parameters
Motor
Servo Motor
Calculate servo motor torque, speed, efficiency, and back-EMF from electrical and load parameters.