[sdiy] Question how to improve rotary encoder feel

Julian Schmidt elfenjunge at gmx.net
Fri Jun 9 14:18:00 CEST 2017


Hello Paula,

Thanks, I have not thought of using all state changes that happen during 
one revolution.
This would already help to bring the resolution up!

Julian

Am 09.06.2017 um 12:48 schrieb paula at synth.net:
>
> Julian,
>
> I spent a great deal of time with rotary encoders and getting them to 
> feel right.
>
> There's a few tricks you can use;
>
> let's assume you have two inputs; A and B
>
> use input A to trigger an interrupt that detects both rising and 
> falling edges.
>
> when an interrupt happens you read both A and B.
>
> If the levels match you're going one way
>
> if they don't you're going the other
>
> This gives you double edge detection, so effectively 48pulses per full 
> turn.
>
>




More information about the Synth-diy mailing list