ElecEng Handbook Electronic Engineer Reference
HomeMotors

Motor Control

Mechanical power & torque, synchronous speed, PWM drive voltage and stepper angle calculators, plus motor-type and drive-stage reference tables and driving diagrams.

Opens the browser print dialog — choose "Save as PDF".
Motor specs (KV, torque constant, winding resistance, pole count) come from the datasheet. Drive-stage and flyback ratings must include margins for inrush, stall current and inductive spikes.

Mechanical Power ⇄ Torque

P = τ · ω = τ · 2π·RPM/60. Enter torque & speed to get mechanical power out, or power & speed to get the required shaft torque.
Nm
/min
W
Mechanical power P
Power in hp
Shaft power is less than electrical input by the motor efficiency and losses. If you enter power and speed, the torque result is the required shaft torque.

Motor Synchronous Speed

n = f · 120 / p. Supply frequency f and pole count p give the synchronous speed of an AC motor (60 Hz, 4-pole → 1800 RPM).
Hz
p
Synchronous speed
Angular speed
An induction motor runs slightly slower than synchronous speed due to slip; a synchronous/BLDC motor with a matching drive runs at exactly synchronous speed.

PWM Drive Voltage

Vavg = Vbus · D. The average voltage across a DC motor is the bus voltage times duty. Select a MOSFET that conducts the peak (stall) current and a diode that clamps the inductive spike.
V
%
A
Average Vavg
Apparent power P
Switch Rds on-loss
Switching losses and gate charge add to conduction loss. Choose a MOSFET with enough Id rating (≥2× stall) and a low Rds(on); add a flyback diode across the motor.

Stepper Step Angle

step = 360° / (steps/rev · microstep). Full step 1.8° motor = 200 steps/rev; 16× microstepping gives 1/16 of a full step per drive pulse.
/rev
×
pulses/s
Step angle
Speed at rate
Microstepping smooths motion and reduces resonance but trades a little torque. The driver's current limit must be set near the motor's rated coil current.

Back-EMF & Motor Constant

Ke = (V − I0·R) ÷ ω, Kv = ω ÷ (V − I0·R) in RPM/V, and Kt = Ke in N·m/A (SI, same value). Stall current = V / R.
V
rpm
A
Ω
Ke (V·s/rad)
Kv (RPM/V)
Kt (N·m/A)
Stall current
For an ideal DC motor Kt = Ke numerically (SI units), so torque per amp equals back-EMF per rad/s. Kv is just the inverse in angular terms. Your no-load speed is where back-EMF balances the applied voltage, so I0 is small; the datasheet gives the true rated constants measured on a dyno.

Rotary Acceleration & Ramp Time

α = (T − Tl) ÷ J; time to reach ωtarget = ω ÷ α. Use the inertia reflected to the motor shaft.
N·m
N·m
kg·m²
rpm
Angular accel α
Ramp time (0→rpm)
Peak angular speed
Acceleration is limited by the torque left after the load/friction and by the reflected inertia (J of the motor plus load times the gear ratio squared). A motor rated only at its no-load torque will never reach target speed under this load — margin is essential.

Gear Reduction of Speed & Torque

Ratio = N2 / N1; output speed = input ÷ ratio; required motor torque = output torque ÷ (ratio · efficiency).
N·m
Gear ratio N2/N1
Output speed factor
Required motor torque
A speed-reducing gear train multiplies torque by the ratio (minus gear friction), so the motor sees the load as torque/ratio and the load sees the motor shaft speed divided by the ratio. Reflected inertia scales by ratio, which dominates large-ratio accel calcs.

Motor Loss & Efficiency

Pin = V·I; Pout = T·ω. The gap is loss, split here into copper (I²R) and the remainder (iron, friction, windage).
V
A
N·m
/min
Ω
Input power
Mechanical out
Total loss
Efficiency
Copper loss
Iron/other loss
Copper loss scales as I² and dominates at high load and low speed; most motors are most efficient near rated load, not at light load. Use the datasheet efficiency curve and tune PWM frequency to balance switching and copper losses.

Torque–Speed Operating Point

For a DC motor the T–ω line is roughly linear: rpm = rpm0·(1 − T/Tstall). Intersect it with your load torque to find steady-state speed.
/min
N·m
N·m
Operating speed
Mechanical power
Loading near stall draws stall current Is = V/R and causes heavy heating — only for brief bursts. Add PWM voltage control or a gear stage to keep the operating point inside the efficient region.

Rotary Kinetic Energy

E = ½·J·ω². Stored rotary energy matters for flywheels, braking and the energy needed to accelerate a load from rest.
kg·m²
/min
Stored energy E
J includes the rotor plus any reflected load inertia (divide by gear ratio squared). Because E scales with ω², a modest speed change carries large energy — relevant for sizing braking resistors and safety stops.

📊 Motor Power Flow

Where the input power goes and how the operating point is found.

LOSS FLOW Pin = V·I Pout losses (copper + iron) I²R grows with load

Loss flowElectrical input splits into mechanical output plus copper and iron losses. The copper share grows with current, so peak efficiency sits at a load where fixed losses and I²R balance.

T–ω LINE rpm0 rpm = rpm0(1 − T/Ts) Tl → speed operating point

T–ω lineThe motor drops from no-load speed rpm0 at zero torque to stall at Ts. With a constant load torque the steady speed is where the two lines cross — higher load, lower speed.

TRAPEZOIDAL POINT-TO-POINT ω t ωmax accel α cruise decel during accel the drive must supply torque above the load to overcome inertia J·α

Trapezoidal rampA point-to-point move accelerates at a set rate α = Δω/Δt to cruise speed, holds it, then decelerates to a stop. While accelerating, the drive must add torque enough to overcome inertia J·α on top of the load; set α too high and the motor stalls or the driver trips.

THREE-PHASE INVERTER +Vdc GND Q1 Q4 Q2 Q5 Q3 Q6 M U V W top = high-side, bottom = low-side · dead time prevents shoot-through

Three-phase inverterSix switches in three half-bridge legs drive the three phase coils of a BLDC or PMSM; one PWM per leg synthesizes the rotating field from the DC bus. Never turn on both switches of a leg at once — add dead time between commutations, and never let the inductive phase currents open-switch without a freewheel path.

📊 Motor Diagrams

A low-side switch, an H-bridge, a flyback clamping network and a stepper coil drive stage.

LOW-SIDE SWITCH + FLYBACK MOTOR V+ N-channel FET GND flyback → V+

Low-side switchA single N-FET switches the motor to GND. When it turns off, the motor's inductive energy would spike the drain — the flyback diode clamps it back to the rail.

H-BRIDGE (reversible) Vbus Q1 Q2 Q3 Q4 GND MOTOR Q1+Q4 → fwd

H-bridgeFour switches let you drive the motor in both directions. Turning on Q1+Q4 runs it forward, Q2+Q3 reverses. Never turn on both sides of a leg (shoot-through) — add dead time.

CLAMPING THE INDUCTIVE SPIKE L V+ FET GND diode freewheels on turn-off

Inductive clampThe diode across the coil provides a freewheel path when the switch opens, so the flyback current decays instead of forcing a high spike. Pick a diode fast enough for the switching frequency.

STEPPER COIL DRIVE COIL A H-bridge sense R →ADC A1 current limit via sense → driver microstep = chopped D/A into coil

Stepper driveEach coil is driven by its own H-bridge; a sense resistor feeds current back so the driver chops the PWM to hold the target microstep current. This prevents over-heating at low speed.

DC MOTOR EQUIVALENT CIRCUIT R E winding R L E = Ke·ω at speed: V = I·R + Ke·ω stall: I = V/R (ω = 0) torque T = Kt·I

DC motor equivalent circuitThe armature is a winding resistance, a series inductance and a back-EMF source proportional to speed. At steady state, applied voltage splits between the I·R drop and the back-EMF, linking voltage, speed, current and torque together.

TORQUE–SPEED & ACCEL T ω stall Tstart no-load ω0 op point (T,ω) α=(T−Tl)/J motor torque falls as speed rises (linear for PM DC)

Torque–speed & accelerationA permanent-magnet DC motor delivers maximum torque at stall and drops to zero at no-load speed. The operating point sits where the motor line meets the load; the excess torque above the load drives acceleration.

GEAR REDUCTION N1 teeth motor ω,T N2 teeth load ω/r, T×r mesh r = N2/N1 : speed ÷r, torque ×r (×eff) inertia at motor = Jload / r²

Gear reductionMeshing a small gear on the motor into a larger one slows the shaft but multiplies torque by the ratio (times the gearbox efficiency). A high ratio slashes the load inertia seen by the motor by the square of the ratio.

TORQUE–SPEED 4 QUADRANTS −ω −τ 0 Q2 Q1 Q3 Q4 fwd motor +τ,+ω rev brake +τ,−ω rev motor −τ,−ω fwd brake −τ,+ω regenerative regenerative opposing torque = brake (return energy); same sign = motor 4-quadrant drive must sink current while decelerating

4-quadrant operationThe torque–speed plane splits into four operating regions. Forward motoring is +τ,+ω; reverse motoring −τ,−ω. The other two are braking: with the load back-driving the shaft, torque opposes speed (regenerative), returning energy to the bus for a four-quadrant drive that must sink current when decelerating.

HOBBY SERVO · PULSE WIDTH = ANGLE +V 0 gnd 1ms 1.5ms 2ms 90° 180° frame ≈ 20 ms (50 Hz) — fixed width sets angle (~1 ms per 180°); move only the on-time 1 ms ↔ 0°, 1.5 ms ↔ 90°, 2 ms ↔ 180°

Hobby servo PWMA hobby servo is commanded by a pulse repeated every ~ 20 ms (50 Hz). A 1 ms pulse holds one end stop, 1.5 ms centers on 90°, and 2 ms reaches the other stop — the width sets the target angle, roughly 1 ms per 180°. Keep the frame period fixed; only the on-time moves the arm.

📚 Motor Reference Tables

Motor types, drive stages and common parameters. Values are representative — check the motor and driver datasheets.

Motor Types

TypeControlPositionUse
Brushed DCPWM dutynosimple speed, fans, pumps
BLDC3-phase commutationvia encoderdrones, e-bikes, efficient drive
Stepperpulse / microstepopen-loop3D printers, positioners
Servo (hobby)PWM 50 Hzclosed-loopRC models, small actuators
AC inductionVFDnoindustrial, high power

Drive Stage

ConfigurationApplies toNote
Low-side switchsmall brushed DCone direction, cheapest
H-bridgereversible DCneeds dead-time, no shoot-through
Half-bridge ×3BLDC / PMSMsix-step / FOC commutation
Chopper + sensestepper coilcurrent limit avoids over-heat

Common Parameters

SymbolNameMeaning
KVKV ratingRPM per volt, no load
KTTorque constantNm per amp, = 9.55/KV
R (winding)Winding resistancesets stall current & I²R loss
EfficiencyMotor efficiencyPout / Pin, heat fraction