This paper states a fanner Equipment adjusted its revolving angle range freely based on avr microcontroller 169,rotary encoder AS5040 and 3966 DC driver. Designs AS5040 interface circuit,PWM Driver,and the PI control arithmetic prevented integral statured.