I have Problems with the Rotary Encoder.
How, can I eleminate debounce at my rotary encoder. When I turn the rotary encoder, it always skips numbers.
Example for the Frequence:
127.050 - 127.055 - 127.065 - 127.080 - 127.085 ....
(each one click)
Thanks Chris
Debounce Rotary Encoder
Re: Debounce Rotary Encoder
Sounds more like you haven't specified the correct number of detents per pulse.
Re: Debounce Rotary Encoder
The debounce delay can be altered from the default value by using the optional debounce argument in the dial_add() but as Ralph posted you need the detents per pulse set correctly too. See the wiki for details.
Air Manager panels at https://www.experimentalsimavionics.com
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
-
- Posts: 4
- Joined: Thu Apr 22, 2021 11:55 am
Re: Debounce Rotary Encoder
I tried to find this in the Wiki but cannot find where or how I can change the detents per pulse setting. This page (https://siminnovations.com/wiki/index.p ... n_tutorial) mentions "Rotary encoders come in different number of detents, this means the number of pulses per step/click. If your rotary encoder gives too many callbacks per step/click, try a different type setting.", but does not explain how to do it.
I would appreciate any help with this. This is not for Knobster which apparently has a setting. I am using Arduino Mega for custom panels, and rotary knob response is erratic.
-
- Posts: 4
- Joined: Thu Apr 22, 2021 11:55 am
Re: Debounce Rotary Encoder (solved)
Found it: https://siminnovations.com/wiki/index.p ... w_dial_add