Controlling a Stepper Motor with a Microcontroller.
It all started when one of my devices needed to rotate a motor shaft a certain number of turns; high precision wasn't required, plus or minus a quarter turn, so I decided to do it with a DC motor. An Atmega16 microcontroller was chosen as the control element, but since the output voltage of the Atmega16 pins...