D13 · Lesson 9 · Motor controller
The DC motor as two coupled first-order systems, electrical and mechanical, the back-EMF and torque constant that link them, steady speed and current under load, stall current, the two time constants and the poles they become, and a simulation to check them against
To control a motor's speed you need to know how it responds, and a brushed DC motor is one of the most predictable machines there is. Its winding is a resistor and an inductor in series with a back-EMF proportional to speed; its rotor is an inertia turned by a torque proportional to current. Two equations, five constants from the datasheet, and you can predict the current surge at start-up, the top speed, how far it slows under load and how fast it gets there.
- A motor (1 Ω, 0.05 V·s/rad, friction 10⁻⁵ N·m·s/rad) switched onto V volts from rest, with rotor inertia J (in units of 10⁻⁵ kg·m²) and winding inductance L.
- The current leaps toward the stall current V/R, then falls as the rotor speeds up and its back-EMF opposes the supply. Speed settles at about 4570 rpm for 24 V.
- Lower J or raise L and the two parts start to interact: the current's peak drops, and with very little inertia the speed overshoots and rings.
Predict
A motor with 1 Ω of winding resistance is switched onto 24 V from rest. What current flows at the instant it starts turning?
At rest there's no back-EMF, so only the winding's resistance limits the current: 24 V/1 Ω = 24 A, the stall current. The inductance slows the rise, and by the time it peaks (19.5 A after 2.5 ms here) the rotor is already moving. A controller that doesn't limit current would make the supply and switches carry this surge at every start.
Name it
The equations
The same constant K is the back-EMF constant (V·s/rad) and the torque constant (N·m/A), since the motor converts power without loss between torque at speed ω and back-EMF Kω times current i.
Steady state
Setting both derivatives to zero:
so speed falls in a straight line with load, by rad/s per N·m when friction is small. The stall current is V/R and the stall torque KV/R.
Dynamics
The mechanical time constant sets how fast speed responds; the electrical one, , how fast current responds. When they act separately; here (1 ms against 8 ms) they interact, and the poles are the eigenvalues of
−853 and −147 s⁻¹ for the motor above. Small inertia or large inductance can make the poles complex, and the speed then overshoots. Lesson 10 controls the current fast enough to hide the electrical dynamics, then controls speed around it.
Worked example
What are the motor's no-load speed and current at 24 V, and how far does 0.05 N·m of load slow it?
Show the solution
- No-load speed.
- No-load current.
- Speed with 0.05 N·m.
- The drop. It's 19.9 rad/s, close to
- Loaded current. The current rises to 1.09 A.
Answer 478.1 rad/s (4565 rpm) at 0.096 A with no load; 0.05 N·m slows it by 19.9 rad/s to 458.2 rad/s, at 1.09 A.
Worked example
What are its time constants and poles?
Show the solution
- Electrical time constant.
- Mechanical time constant.
- Poles. The characteristic polynomial is with roots −853.4 and −147.1 s⁻¹.
- Compare with the mechanical time constant. The slow pole is near = 125 s⁻¹ but not equal to it, since the inductance delays the torque.
Answer = 1 ms and = 7.97 ms, with poles at −853.4 and −147.1 s⁻¹.
Check
Model the motor: its equations, steady state, poles and a simulated start.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
A motor with 1 Ω of resistance, friction 10⁻⁵ N·m·s/rad and K = 0.02 V·s/rad runs unloaded from 24 V. What's its steady speed?
Check
A motor with resistance 1 Ω and K = 0.02 V·s/rad takes on a load of 0.1 N·m. Ignoring friction, how much does its speed drop?
Write units the way you normally would: 1.5 rad/s and 1500 mrad/s are the same answer.
Check
Ignoring friction, what's the mechanical time constant of a motor with inertia 2 × 10⁻⁵ kg·m², resistance 0.5 Ω and K = 0.1?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
A DC motor has = 0.5 Ω, = 0.5 mH and = 0.05 V·s/rad (or N·m/A), on 24 V.
(a)
What is its electrical time constant?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
(b)
What is its stall torque?
Check
A motor with rotor and load inertia 5 × 10⁻⁶ kg·m², resistance 0.5 Ω and constant 0.05 N·m/A has what mechanical time constant, ?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Explain why
Why does a DC motor draw so much more current when starting or stalled than when running freely?
The current through the winding is set by the difference between the applied voltage and the back-EMF, divided by the winding's small resistance. A spinning motor generates a back-EMF proportional to its speed, which at full speed nearly cancels the supply, so only a small current flows, just enough for the torque that friction and load require. At standstill there's no back-EMF at all, so the whole supply voltage drives current through the resistance alone, many times the running current. That's why motors need current limiting at start-up, and why a stalled motor overheats quickly.
Practice
Keep practicing
7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.