Login |  Register



Welcome
Welcome to engineeringdiy

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!


Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Rotary Encoder "jumping"
PostPosted: Sat Dec 12, 2015 12:53 pm 
Joined: Tue Oct 06, 2015 3:01 pm
Posts: 122
Kamion wrote:
I have 2 problems:

When I power up the Raspberry the volume is about 70% and when I turn the rotary encoder it will jump down to 0% and then start to rise. After this first jumpt to 0%, it works fine (except for the occasional jumping).

And the volume wont go past the 95% when I operate it with rotary encoder.


I still have this two problems.... No suggestions?


Report this post
Profile  Offline
 
 Post subject: Re: Rotary Encoder "jumping"
PostPosted: Sat Dec 12, 2015 3:42 pm 
Joined: Sat Apr 25, 2015 5:50 pm
Posts: 212
I have exact the same issue. I think this behavior ist based on the fact that the encoder has no defined state when the Pi ist powered on. Therefore it always starts at '0' when it is turned for the first time. Maybe someone can find a solution to save the last state of the encoder somewhere when the Pi is powered down and to let the system read this saved state when the Pi is powered on the next time. I'm not a programmer, so I'm not able to do this by myself.


Report this post
Profile  Offline
 
 Post subject: Re: Rotary Encoder "jumping"
PostPosted: Sat Dec 12, 2015 3:54 pm 
Joined: Tue Oct 06, 2015 3:01 pm
Posts: 122
I think kodi saves volume position, so rotary encoder "driver" has to just read it at startup and then add or subtract....


Report this post
Profile  Offline
 
 Post subject: Re: Rotary Encoder "jumping"
PostPosted: Sat Mar 05, 2016 2:10 pm 
Joined: Tue Oct 06, 2015 3:01 pm
Posts: 122
Kamion wrote:
I have another 2 problems:
When I power up the Raspberry the volume is about 70% and when I turn the rotary encoder it will jump down to 0% and then start to rise. After this first turn it works just fine (except for the jumping).

And the volume wont go past the 95% when I operate it with rotary encoder.


I think this is because at every boot the volume of music and volume of FM radio are equalised, and radio starts at 0, so the music volume is also set at 0.

Is this right? correct me if I am wrong.


Report this post
Profile  Offline
 
 Post subject: Re: Rotary Encoder "jumping"
PostPosted: Sun Mar 06, 2016 6:01 pm 
Joined: Tue Oct 06, 2015 3:01 pm
Posts: 122
How to eliminate rotary encoder bouncing:
http://www.youtube.com/watch?v=RqyhvlMKt14&t=3m46s

GreatScott! wrote:
You add a 1µF capacitor between DT and GND and another 1µF between CLK and GND.


I searched for this solution for a long time. Now my CarPC volumne control and song jumping will work like it should. :D


Report this post
Profile  Offline
 
 Post subject: Re: Rotary Encoder "jumping"
PostPosted: Tue Mar 29, 2016 4:03 pm 
Joined: Tue Oct 06, 2015 3:01 pm
Posts: 122
So I added capacitors between pin GND and pins SW, CLK and DT.

But, there is no improvement. :(


Report this post
Profile  Offline
 
 Post subject: Re: Rotary Encoder "jumping"
PostPosted: Tue Mar 29, 2016 7:09 pm 
Joined: Sat Apr 25, 2015 5:50 pm
Posts: 212
Quote:
You add a 1µF capacitor between DT and GND and another 1µF between CLK and GND.


Kamion wrote:
So I added capacitors between pin GND and pins SW, CLK and DT.

But, there is no improvement. :(


Do you see what I mean? ;)


Report this post
Profile  Offline
 
 Post subject: Re: Rotary Encoder "jumping"
PostPosted: Tue Mar 29, 2016 7:18 pm 
Joined: Tue Oct 06, 2015 3:01 pm
Posts: 122
There is improvement on switch. It works flawlessly. ;)


Report this post
Profile  Offline
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2


Who is online

Users browsing this forum: No registered users and 0 guests

Panel

Top You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Search for:
Jump to:  


cron
suspicion-preferred