Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


rotary encoder implementation
#1
The current way moode implements rotary encoder means it always skips one step each time you turn the knob. Skip, register, skip, register, skip, register.

The attached file changes this, now each click registers.

If you want to try it out,  extract and replace it in /var/www/daemon/

My GUI settings 20 2 10 23 24 seams a nice sweet spot

[video=youtube]https://youtu.be/hXYbsmrY9IE[/video]


Attached Files
.zip   rotecn.zip (Size: 2.04 KB / Downloads: 11)
Reply
#2
I'll test it out later today.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
I tested with an ALPS encoder and it was very erratic compared to the original encoder driver. Reverting to the default settings the test driver behavior was better but still not very smooth.

What model encoder are you using? Product link would be helpful.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#4
(08-13-2022, 05:20 PM)Tim Curtis Wrote: I tested with an ALPS encoder and it was very erratic compared to the original encoder driver. Reverting to the default settings the test driver behavior was better but still not very smooth.

What model encoder are you using? Product link would be helpful.

I think more jelly bean than this is impossible, it seams to go for ky-040 , got it some time ago to use with arduinos. 

EDIT: https://components101.com/modules/KY-04-...lternative

It's a 30 positions per revolution encoder.

I saw that erratic behavior when I was trying it out on the arduino because I did not connect the vcc pin. It has some resistors to help with the signal.

Anyhow , I made a quick video showing the output in moode debug, it does not skip a beat for me and each click registers correctly with correct direction.

[video=youtube]https://youtu.be/UkCGJNWAR6k[/video]
Reply


Forum Jump: