Motors convert electrical energy into mechanical motion and are the most common actuators in embedded systems. Controlling a DC motor from a microcontroller means switching the direction of the current through the motor and varying the motor’s speed, neither of which the microcontroller can do on its own. This chapter covers the H-bridge circuit for direction control and Pulse-Width Modulation (PWM) for speed control. Section 11.6 collects the registers, the driver’s modes and the pulse-counting arithmetic for looking up later.