Jump to content

Encoder Debounce


Recommended Posts

I am using the Bourns non-detented encoder (PEC11-4020F-N0024), with 24 pulses per revolution.

I find at a 1ms sample frequency, that the encoders are really "jumpy".

When I turn the encoder clockwise very slowly I will see numbers jump, for example: 0,1,2,1,3,4,6,5,6,7,etc I would expect the output to be smooth: 0,1,2,3,4,5,6,7,etc

I have tried using various techniques to reduce this bounce with not much success. One I tried was this:

http://www.kennethkuhn.com/electronics/debounce.c

The integration method he uses seems sound, but I am still getting jumpy output.

Do these encoders have too many PPR? Or are my expectations too high?

Any ideas?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...