Quote:
Originally Posted by MPaulHolmes
aha!!! get rid of pull down resistors. And change the RC filter to just an R filter. 1k in series for index, qea, and qeb to the inputs of the microcontroller, and NO capacitance after that. The dspic has a "glitch ignore" feature. The RC time constant will just slow things down and confuse the quadrature encoder interface.
Or if you really want pull down resistors, just use something like 47k or 100k instead of whatever you are using. IT's too strong right now.
|
ok ahhaha if they are not needed i will remove...
but i noticed that the encoder is working well with an1162's code... i can see the motor speed on lcd in rpm..