Go to advanced search

by hrvoje
Tue Apr 16, 2019 5:47 pm
Forum: Automation, sensing and robotics
Topic: Ultimate rotary encoder switch decoder
Replies: 18
Views: 26335

Re: Ultimate rotary encoder switch decoder

Hi Cyanoazimin! I’m glad I have been of some help. I did have some problems with pigpio daemon but I used PCM instead of PWM for clock (i.e. sudo pigpiod -t 1) which solved my problem. Then recently, I did a small project for my friend building him a network player with HiFiBerry Amp2 and Volumio. F...
by hrvoje
Fri Oct 05, 2018 10:33 am
Forum: Automation, sensing and robotics
Topic: Ultimate rotary encoder switch decoder
Replies: 18
Views: 26335

Re: Ultimate rotary encoder switch decoder

Hi, After long time coming back to my original post I would like to share my experience and findings about this topic. It took quit some time as I don’t have much time to pursue my small project but here it is. So first, thanks to all replies and tips about different and better ways to decode rotary...
by hrvoje
Wed Sep 21, 2016 9:16 am
Forum: Automation, sensing and robotics
Topic: Ultimate rotary encoder switch decoder
Replies: 18
Views: 26335

Re: Ultimate rotary encoder switch decoder

Hi johnestan, Yes, I actually do: the problem lies in fact that falling and raising edges of contacts are smooth happens only in perfect world. In real world jittering occurs so if you connect oscilloscope to pins you will see that instead of only one edge you have few of them in moment when switch ...
by hrvoje
Tue Sep 20, 2016 7:45 am
Forum: Automation, sensing and robotics
Topic: Ultimate rotary encoder switch decoder
Replies: 18
Views: 26335

Re: Ultimate rotary encoder switch decoder

Hi johnestan, Well, not knowing how your setup looks like here are some ideas: most obvious one: did you call init()? Is rotary encoder connected to correct pins. In my example I have used GPIO 4 and and GPIO 14 which correspond to pin numbers 7 and 8 on 40 pin connector. Next is that GPIO 14 an be ...
by hrvoje
Mon Sep 19, 2016 7:55 am
Forum: Automation, sensing and robotics
Topic: Ultimate rotary encoder switch decoder
Replies: 18
Views: 26335

Re: Ultimate rotary encoder switch decoder

Hi neteng,

I don't see why not. In my example variable Rotary_counter is either decreased or increased for each step, depending on direction. If it is all what you need just use it unmodified and discard functionality in main() function (except init() of course).
by hrvoje
Tue Mar 15, 2016 11:02 am
Forum: Automation, sensing and robotics
Topic: Yet Another Rotary Encoder Solution (Python)
Replies: 8
Views: 13301

Re: Yet Another Rotary Encoder Solution (Python)

Hi Paulv,

I have seen that you fought with same problem as I did, if you want you can check my solution - maybe it can help you.

Regards,
Hrvoje


viewtopic.php?f=37&t=140250
by hrvoje
Tue Mar 15, 2016 10:56 am
Forum: Troubleshooting
Topic: Fluttering rotary encoder
Replies: 13
Views: 1394

Re: Fluttering rotary encoder

I had same problems and I hope I solved it (for my purpouses). check my post at: viewtopic.php?f=37&t=140250

Hope it helps you.
by hrvoje
Tue Mar 15, 2016 10:48 am
Forum: Automation, sensing and robotics
Topic: Ultimate rotary encoder switch decoder
Replies: 18
Views: 26335

Ultimate rotary encoder switch decoder

Hi, Recently I started a project where I needed to read 2-bit rotary encoder switch. I got rotary encoders from SunFounder with pull-ups & push button and started searching for simple code that would give me direction and number of steps turned. Simplest example would be volume control. And here is ...
by hrvoje
Sat Mar 12, 2016 4:31 pm
Forum: Raspbian
Topic: Improved forked-daapd (iTunes server)
Replies: 1515
Views: 371813

Re: Improved forked-daapd (iTunes server)

@ejurgensen: Thanks for quick reply. To your questions: - Yes, dropouts on local audio happen at same time as main problem - retransmit from Beolit airplay speakers: you are right, there seems to be no problem in audio output. In meantime I had a chance to test it with two other Airplay speakers (B&...
by hrvoje
Fri Mar 11, 2016 8:13 am
Forum: Raspbian
Topic: Improved forked-daapd (iTunes server)
Replies: 1515
Views: 371813

Re: Improved forked-daapd (iTunes server)

Hi everybody, I am new to this forum (and also to raspberry and forked-daapd) so first I would like to congratulate everybody here for great work you did with daapd! What I am trying to do, same as some other of you, is to build self sufficient player that will be able to stream to more Airplay spea...

Go to advanced search