Two equations run the motor
A DC motor has an electrical side and a mechanical side, joined by one constant K. On the electrical side, the supply drives current through the armature resistance Ra, and the spinning armature generates a back-EMF K·ω that opposes the supply. On the mechanical side, that current makes a torque K·I, which has to balance the load torque Tl plus friction B·ω.
In SI units the torque constant Kt and the back-EMF constant Ke are the same number, so the simulator uses one constant K for both.
V = I·Ra + K·ω (armature loop) K·I = B·ω + Tl (torque balance)
The steady-state speed
Solve the two equations together and the speed comes out directly. The motor speeds up until its back-EMF has used up enough of the supply that the current left over makes exactly the torque the load needs. Load it more and it slows down, which lowers the back-EMF and lets more current flow to make more torque. A DC motor regulates itself this way.
ω = (V − Ra·Tl/K) / (Ra·B/K + K) I = (B·ω + Tl) / K rpm = ω · 60 / 2π
Power and efficiency
The supply delivers V·I. Part of it is lost as heat in the armature resistance, I²·Ra; the rest reaches the shaft as mechanical power T·ω. A heavily loaded motor draws more current, and since the loss grows with the square of the current, its efficiency falls.
P_in = V·I = P_mech + P_loss P_mech = K·I·ω P_loss = I²·Ra
Speed control with PWM
A microcontroller cannot output 7.2 V, but it can switch a transistor fully on and off thousands of times a second. Pulse-width modulation (PWM) does exactly that and varies the duty cycle D, the fraction of each period the switch is on. The armature inductance smooths the current, so as long as the switching is fast compared with the armature’s L/R time constant, the motor behaves as if it were fed the average voltage.
The switch is either fully on or fully off, so it wastes very little power, unlike a series resistor that drops the extra voltage as heat.
V_avg = D · Vs
Stall
At standstill there is no back-EMF, so the current is V/Ra and the torque K·V/Ra is the most the motor can make at that voltage. If the load needs more than that, the motor does not turn at all: it is stalled, drawing its full stall current and turning all of it into heat.
T_stall = K · V / Ra stalls when K·V/Ra < Tl
Worked example (the simulator’s default values)
- Vs = 12 V, D = 100 %, Ra = 2 Ω, K = 0.05 V·s/rad, Tl = 0.02 N·m, B = 0.001 N·m·s/rad.
- ω = (12 − 2·0.02/0.05) / (2·0.001/0.05 + 0.05) = 11.2 / 0.09 = 124.4 rad/s ≈ 1188 RPM.
- I = (0.001·124.4 + 0.02) / 0.05 = 2.89 A. Back-EMF = 0.05·124.4 = 6.22 V and I·Ra = 5.78 V, which add up to the 12 V supply.
- Power: 34.7 W in, 18.0 W at the shaft and 16.7 W lost in Ra, so the efficiency is about 52 %.
- At D = 50 %, V_avg = 6 V: ω = 5.2 / 0.09 = 57.8 rad/s ≈ 552 RPM, and I = 1.56 A.
- Below D ≈ 6.7 % (V_avg = 0.8 V) the stall torque 0.05·V/2 falls under 0.02 N·m and the motor stalls.
Common mistakes
- Expecting half the voltage to give exactly half the speed. Under load, part of the voltage always goes on I·Ra, so 50 % duty here gives 552 RPM, well under half of 1188.
- Thinking a motor draws the most current at full speed. Current is highest at standstill, when there is no back-EMF to oppose the supply.
- Treating PWM as a lower voltage at every instant. The armature sees the full supply during each pulse; only the average, smoothed by the inductance, is lower.
Common questions
What is back-EMF in a DC motor?
The voltage the spinning armature generates, K·ω, acting against the supply. It grows with speed, and it is what limits the current once the motor is running.
How does PWM control the speed of a DC motor?
It switches the full supply on and off quickly and varies the duty cycle D. The armature inductance smooths the pulses, so the motor runs as if it were fed D times the supply voltage.
Why does a DC motor slow down under load?
More load torque needs more current, and more current means a bigger I·Ra drop. Less voltage is left for back-EMF, so the speed, back-EMF divided by K, falls.