Electrical – Dc Motor Position Control

controldc motorencoder

I am driving dc motor with drv8848. I send pwm pulse to the drv8848 and then ı read encoder value. My pwm frequency is 500 Hz. So here is my problem, pulse count is same but encoder value is different. I don't expect to be same. But difference is very big. For example one time I send same pulse count, encoder value is 4 um but in other same pulse count encoder value is 15 um. So can you help me about this problem ?
thanks

Best Answer

There is no relation between PWM pulses and encoder feedback pulses. When you send PWM pulses, you supply the motor with voltage which is V = Vdc * DutyCyleRatio. The encoder measures the position of rotor. Where did you got the idea that PWM pulses == encoder pulses?