Rotary Trinkey debounce: Use a good encoder!

Adafruit's tiny microcontroller platform. Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ihab
 
Posts: 62
Joined: Tue May 17, 2016 5:20 pm

Rotary Trinkey debounce: Use a good encoder!

Post by ihab »

Dear Adafruit / users --

I was the OP for this post about debouncing rotary encoders with the Rotary Trinkey:

viewtopic.php?f=52&t=187981

I'd like to report that using a name brand (Bourns) encoder fixed the problem.

I observed that a friend was having no problem with the same board, so I ordered a Bourns encoder from a reputable electronics supplier and tried it out. The result was stable performance without noticeable problems.

Cheers and thank you very much for the help and attention. I hope this helps someone else out.

Ihab

User avatar
blnkjns
 
Posts: 963
Joined: Fri Oct 02, 2020 3:33 am

Re: Rotary Trinkey debounce: Use a good encoder!

Post by blnkjns »

I fix this in software, and that works perfectly. Even on the cheapest Ali arduino kit encoders. The idea is that the other line is always stable when the active line is "noisy". So if anything happens on a line, wheter it is a up or down event, you change its state, and then you keep the state locked until something happens on the other line.

Locked
Please be positive and constructive with your questions and comments.

Return to “Trinket ATTiny, Trinket M0”