Jump to content

SCS encoder jumps


Recommended Posts

Hi all,

today I would like to share my experience with encoder on scs, the board version made by ilmenator (semper laudetur), attached to MBHP_CORE_STM32F4, midibox_NG project.

I noticed that sometimes, especially when fast rotating my encoder (I choosed a bourns PEC12R), midibox_NG detects more events than really executed, or worse, events in opposite verse.

Using an oscilloscope I saw many spikes on encoder pin, duration shorter than 1 ms.

Following suggestion on attached datasheet (I hope attaching this document is permitted, I did not find any rule against, but if so I will remove it immediately), second page, bottom right, I modified circuit with some patches.

Now it works perfectly, but I have some requests/suggestion to improve design

  • if anyone knows, please tell me if there is a NGC parameter to allow debouncing on encoder inputs, otherwise
  • for TK, please modify SCS scheme to suggest RC filter usage;
  • for ilmenator, please modify your board design and allow to connect necessary 4 resistances and 2 capacitors.

Thanks to anyone,

Regards,

Cristiano

PEC12R.pdf

Link to post
Share on other sites
24 minutes ago, latigid on said:

I'm not sure if software debounce affects encoder events?

You're right it doesn't affect it, SW debounce just let some times for the inputs to stabilize, in counterpart we loose reactivity, it's a balance to find depending on the hardware, and encoder quality of course ;)
Note: PEC12 and PEC16 are not equivalent(replacement), I also never get any trouble with the PEC16 which is bigger and more solid than the PEC12.
 

4 hours ago, FantomXR said:

Anyway: Improving the hardware should be better than software debouncing.

Alright! An interesting article.

https://hifiduino.wordpress.com/2010/10/20/rotaryencoder-hw-sw-no-debounce/

 

Edited by Antichambre
Link to post
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...
×
×
  • Create New...