-
Notifications
You must be signed in to change notification settings - Fork 401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 | rotary encoder on developer #900
Comments
@veloxidSchweiz, can you help here? |
Hey, |
authentication was not wrong, tried a second time:
didn't even ask for auth on second run. |
You need to run the script with sudo: |
i already tried to run as root:
"sudo install.sh" with user pi didn't work
|
@veloxidSchweiz provided a possible fix in #906 |
Hi, |
At the end you will need to configure the config file correctly: |
And for debugging it could be helpful to check the output of |
GPIOS: Rotary encoder: MiniAmp: LED "Buttons" are configured in gpio-buttons.py |
Hi, The gpio_settings.ini (/home/pi/.config/phoniebox/gpio_settings.ini) should look like this:
|
hm okay.
you're referring to this script, right? |
I am not 100percent sure what happens when you install the one-line develop install script.
if check_installationsh fails,you need to resolve the issue (stopping & disabling the corresponding services...) You don't need to configure anything in the gpio_control.py
you can check everything again, by runnig the check_installation.py or |
To install from develop branch, see here: https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/INSTALL-stretch#b-developer-install-script-for-buster But this doesn't include the changes from the PR (yet). |
Thanks, |
@MiczFlor, could you elevate @veloxidSchweiz to Collaborator? |
@veloxidSchweiz i'll wait in the meantime. |
I'm stuck with the very same problem as mentioned in the OP by narf0815. Can't run |
Issues should be fixed with merged PR #906 |
@veloxidSchweiz i'm ready when you are! |
I too would be willing and eager to test. I have tried a new install with the one-line-script and the develop branch but could not get the rotary encoder to work. It seems as if, by default, the gpio_control service is not enabled. By the way: I have tried installing it with |
Please use |
I did initially, but that did not work either. Installation wouldn't start. |
Hey @narf0815, @Benzinbruder
So this makes sense as the phoniebox-gpio-buttons.service is installed and enabled automatically during the installation process. therefore this behaviour is to be expected.
after doing this one get's the following information
By running the command don't hesitate to ask additional questions... |
no idea what i'm doing wrong. nothing changes :( this raspberry has still the standard password and i inserted that one 3 times and it failed 3 times. |
i tried the single steps from install.sh:
ok
not ok
went through without any (error) message
hmm, k
(no idea why the part in the middle is not displayed as code...) maybe i should mention that i did NOT choose to install spotify in the one-line-setup... honestly... i don't even see where checking phoniebox-rotary-encoder.service should be enabled in install.sh (but that's probably just me not understanding things...) |
You need to install the Python mpd package, maybe @veloxidSchweiz can help which package exactly. |
oh. that might explain why it's not working. i started with buster-LITE, and according to this site, pip doesn't come with lite version... update: installed python-pip ran ./install.sh again and the package python-mpd2 (as found in requirements.txt) was installed successfully. ./check_install.sh showed that phoniebox-gpio-buttons.service was still running, so i tried: sudo: same happens with: journalctl no doesn't give any infos: does this help? |
You need to execute After Please make also sure you installed the mpd dependency also with |
i tried with sudo, but after that, ssh console loses connection (tried more times) and on reboot the service is still active. i don't understand why i (and Benzinbruder) have auth issues while @veloxidSchweiz has no problem with ./install.sh... i'm trying again with a fresh install (non-lite). maybe we're still missing some packages? |
If you loose SSH connection I think something else could be broken, too. Raspian Lite should be fine, but a fresh install is maybe a good idea. |
now i have massive problems with one-line-installer (several "lost connections"). |
ok. tried with pi-zero, buster (not lite!) and develop install and it worked finally:
(but why is code not displayed as "code"?!) no i'm trying with my raspberry3 (zero is very slow...) thanks for your help @s-martin & @veloxidSchweiz |
Thanks so much for the update! I have two running boxes now on release, and at the moment I do not really like to work with them. My other Pi seems to be fried (my fault) but if I can get it running again, I will try to reproduce your solution. |
Hi, @narf0815 : What do you mean with
|
installed on (another) pi3 yesterday and rotary + buttons work perfectly (LED not connected yet).
usually if i put a text between two of these guy: `` it's displayes like this: |
If you have multiple lines you need 3 ` at the start and 3 at the end (in it's own line). |
Hey, |
I am also using Light. Any progress with this? |
I am sorry at the moment i do not have much time to work with the rpi and could not try to check what is the cause for this (for me really strange) behaviour. |
That would be cool. I am tryinig to get the rotary knob to work but I cannot use GPIO 5 and 6 for the rotary knob, because I use the Hiifiberry and the onoffshim. |
I too am using a HiFiBerry (MiniAmp) and a Pimoroni OnOff SHIM. Neither of these devices interferes with GPIOs 5 and 6. Do you use a different HiFiBerry amp? |
Perhaps I miscounted... I will have a look later. |
@thiesschneider look at this post #900 (comment) |
Nice, thank you! Hope this feature will soon also work with the lite version. At the moment I am using the time to prepare the box design :) |
I am not sure if this fits here, but after dealing with the setup of GPIO_control I finally have a running service and a running gpio_buttons.py script. Turning the knob results in input read by the script, however, here I get the following error messages:
I adjusted in rotary_encoder.py on line 142
to my GPIO 5 and 6 between ' ' but this shouldnt be causing this? any pointers as to what is going on? I am a bit lost. |
What does your code look like exactly?
or
|
I used I am at this point not sure if this has to do with that script or if it might be an issue with the other scripts involved. ky040.py.txt Not sure where else I would find this script in the most up to date version? |
I am afraid I can't help you out here. You might want to switch to using gpio_control instead. I have found a few similar threads and obviously the integration of a rotary switch is still tricky in 2.0. |
Hi, |
Bug
What I did
as the status LED wasn't introduced to stable release yet i tried the developer branch and i tried to install the rotary-encoder followig these steps: https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/Audio-RotaryKnobVolume
What happened
on the last step
sudo chmod +x /home/pi/RPi-Jukebox-RFID/scripts/rotary-encoder.py
tells me the file does not exist.
i found the file rotary_encoder.py in the folder ~/RPi-Jukebox-RFID/components/gpio_control/GPIODevices and tried to copy the file to /home/pi/RPi-Jukebox-RFID/scripts/ but the rotary encoder still didn't work
last thing i tried was to change the ExecStart in phoniebox-rotary-encoder.service to "/home/pi/RPi-Jukebox-RFID/components/gpio_control/GPIODevices/rotary_encoder.py"
but this didn't work either...
same wiring and gpio definitions work fine with stable.
The text was updated successfully, but these errors were encountered: