seyyah
Advanced Member level 2
I have a motor control project. In this project, i need to measure the speed. To measure the speed, i planned to use a 100ppr incremental encoder. With the ucontroller's ability it can count 400 pulses per revolution.(It counts decreasing and increasing edges of phase A and phase B) This means that, in order to measure the speed with 1 rpm resolution, i have to wait at least 150ms. This is a very long time i think, for a speed feedback in a control loop. If we decrease resolution, obtaining the speed takes less time. But resolution isn't good enough for those cases. I tried to implement a stepped algorithm for obtaining speed. (From low resolution to high resolution, step by step) It sometimes gives good results but sometimes the calculated speed deviates from the real speed largely for a very little time (like a spike). I'm hearing that 100ppr suffices for most cases in a commercial drive. If so, how should be the way that i follow? Or what kind of technique should i use to obtain the speed? Please, help me.