View Single Post
Old 03-17-2016, 12:49 PM   #2665 (permalink)
shaggythegangsta
EcoModding Lurker
 
Join Date: Mar 2016
Location: italy
Posts: 40
Thanks: 5
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by MPaulHolmes View Post
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..
  Reply With Quote