Lessons and the learning game

DC motors and generators

An intermediate course on the brushed DC machine as a component, from torque and back EMF to braking, ending in a motor dyno built on an Uno.

What the course covers

DC motors and generators is seven lessons, one chapter each, with a quiz after every chapter:

  1. Torque and current: a stalled motor that cannot beat its friction, the start, full speed, the inrush and a lower-resistance winding.
  2. Back EMF: the voltage a coasting motor makes, the constant that links it to speed, and why the running current is small.
  3. Motor curves: a TT gear motor's free speed, stall and free current, the torque-speed line they define, and a 12,000 rpm hobby motor.
  4. Generator mode: the spinning motor driving a load, sag under load, and the matched load.
  5. Efficiency: power in, copper loss and shaft power at full and half voltage.
  6. Braking: coast, dynamic braking and plugging.
  7. Boss: characterize a motor: an Uno runs the motordyno sketch with an L9110S, an INA219 and an encoder gear motor, sweeps the PWM, reports the dead band, free speed, free current and Ke, and brakes.

How it checks your work

Lessons 1 to 6 have no microcontroller: a bench supply, a sense resistor, a selector switch and a DC motor, with checks on the current, the speed and the oscilloscope. The boss checks the dyno's serial output and the motor's speed.

What the simulation is and is not

  • The motor is the standard model: winding resistance, a back EMF in proportion to speed, one mechanical lag and a constant friction. There is no shaft load, so the torque-speed line is drawn from measured stall and free-running points rather than swept on a brake.
  • The winding has no inductance, so there is no switch-off kick; the Magnetism and inductors course shows that.
  • Generator mode uses the motor's own stored energy as it coasts, because there is no second shaft to turn it with.

Motors and motion for drivers and H-bridges, and Control systems for closing the loop on the same motor rig.