PIC16F877A based DC motor speed control using potentiometer to control PWM. MikroC coding.