reducing the rpm of dc motors
hello
I want to set the speed of a DC motor at the define RPM,I use atmega32 and L298 for controlling,and one encoder at motor side to feedback the speed of the motor.
is there any equation that relate to the speed and pwm or duty cycle??
I use 10bit pwm(3ff).the maximum speed of the motor with max pwm is 11000RPM. I use this formula to set the pwm ,but its not correct
pwmset=(rpmset*1023)/11000;
also I dont know ,what frequency of pwm must be set for best working and controlling of dc motor.
please help me
by regards