This microcontroller-based control circuit adjusts the speed of a small permanent-magnet DC motor to one of four speeds as selected by a pair of photosensors.