In this tutorial we explain how to interface a DC motor with ATmega16 AVR microcontroller and control the speed of the DC motor.