If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Announcement
Collapse
No announcement yet.
[ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
Just to report that I have installed Squezebuttonpi and wiringpi etc successfully but not getting any response from twiddling the rotary encoder. Setting up verbose reporting I get the 'discovery' messages too. The encoder in on GPIO 23 and 24 and I have used those numbers in the sbpd command. Same hardware config that works with Moode.
Just to be sure: this means that the encoder is connected to pins (physical pins) 16 and 18 and ground (the center pin)?
Or are you pulling down against 3.3V?
---
learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
at penguinlovesmusic.com New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch
Agreed. Then we can move sbpd.tcz into the repo with the next update.
I'll play around with some more configurations over the weekend, maybe I'll add another option to use encoders and buttons pulling down from 3.3V
---
learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
at penguinlovesmusic.com New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch
I tried both the PLAY and POWR command. But I'm getting tired, I may have done something else stupid. Let me take a fresh look at everything tomorrow.
Found my problem, I sent you a pull request. If you mac address has a leading 0 in a segment, it was not auto setting the mac properly. If your mac looks like this, b8:27:eb:0a:dd:0d it is being sent to the LMS server as b8:27:eb:a:dd:d
Until things get merged and recompiled You can hard set your mac on the command line with --mac=b8:27:eb:0a:dd:0d
Note: do not use capital letters in your mac address, LMS does not like that.
Ah, LMS needs leading zeroes, I remember.
How does this work in SqueezeLite? Does it correct the MAC when using it?
Because that code is actually taken from SqueezeLite so I'd expect it to behave the same way as there.... (that's the idea behind that).
Edit: merged.
---
learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
at penguinlovesmusic.com New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch
Yes, but I thought anything that uses the MAC as playerID. I always convert them before sending in iPeng, that's probably why I forgot about it here.
But isn't it the same in SlimProto? Or does that use network-format MAC addresses? Have to look it up...
---
learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
at penguinlovesmusic.com New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch
Just to be sure: this means that the encoder is connected to pins (physical pins) 16 and 18 and ground (the center pin)?
Or are you pulling down against 3.3V?
Yes, physical pins 16 and 18 but against 3.3v. Not right?
Yes, physical pins 16 and 18 but against 3.3v. Not right?
Sent from my SM-N9005 using Tapatalk
No, right now sbpd expects you to pull up (from ground).
It's just a configuration option, I'll update it over the weekend to support both varieties.
Is there no longer a risk of frying the GPIO chip when pulling down from 3.3V is the software enabled pull-up resistors are not yet enabled and you use the encoder/button?
I read in some articles that this was a problem with at least some Pi models so that people recommended to still use hardware resistors with such a setup.
---
learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
at penguinlovesmusic.com New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch
I believe there is still a risk of frying the GPIO chip and I do have the pins protected with a resistor and zener diode (via a rasp.io break out board at the moment for convenience). I'm assuming it will need protection unless advised otherwise! Would it no still b needed if I reconfigured the centre pin to go to ground?
Don't take my word for it but my understanding is that by default the GPIO pins are on ground level so unless you activate the Pulldown-MenĂ¼s resistors software wise, nothing happens if you connect them to ground.
If you connect them to 3.3V, otoh, you get quite a bit of current so you probably always want to add external resistors. The advantage then is that you don't need your software to specifically activate anything
---
learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
at penguinlovesmusic.com New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch
Hi,
i am also building a Musicbox with picoreplayer and i am looking for some buttons.
So i found this script, which seems to be very useful, but did not try it.
But because the script is only useful if you have some buttons, i have another question:
what buttons do you use?
I cant find any buttons which have some engraved or painted Symbols on it like play, pause next etc. on it.
Any body has seen something like that?
I'll play around with some more configurations over the weekend, maybe I'll add another option to use encoders and buttons pulling down from 3.3V
Pippin, I was just wondering if you have had a hence to update the software? I'd be happy to help test it. P.S. I've put the centre pin to ground but it still doesn't do anything when I turn the rotary encoder.
Pippin, I was just wondering if you have had a hence to update the software? I'd be happy to help test it. P.S. I've put the centre pin to ground but it still doesn't do anything when I turn the rotary encoder.
Sorry, I wasn't really able to test. My last test system is now away, my old one uses an old RPi1 and is horribly slow and my new test device is a rpi0w which doesn't yet work with piCorePlayer which I've used for testing so far.
I have created a "testing" branch in the repo which contains a change that should allow a configuration parameter for pulling up/down (last parameter, 1 for down, 2 for up).
Have you tried "-v" (verbose mode) to see what happens? Don't you get any interrupts at all from the encoder?
---
learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
at penguinlovesmusic.com New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment