Section11.1Before Class: DC Motors and Speed Control
A DC motor converts electrical energy directly into rotational motion: connect it to a voltage source and the shaft spins. Getting a microcontroller to drive a motor precisely, however, requires solving two problems: the motor needs far more current and voltage than a GPIO pin can supply, and controlling speed means controlling average voltage, which a digital output cannot do directly. This section covers the concepts you need before class.