Hello, I am using patchbox os which is great. What I am trying to do is to somehow use the button finctionality.
I found out it is hooked to gpio17 so I did the same with my custom button, but now the thing is pisound-btn seems not starting.
When run I get: “Reading Pisound serial failed, did the kernel module load successfully?” any ideas?
Thanks for your reply. I’ll also try to get to understand how those processes work so I can create my own.
Currently I run a small python program to handle encoder and matrix keyboard via pigpio. Thanks for your support, what you do is really great and stable environment for experiments. Attached the pic of my Jukiffizer I did so my wife can sing through the vocoder.
I have just made pisound-btn to run even if Pisound is not detected (no config changes necessary), and added a --gpio N command line argument to specify which GPIO pin to use. It will also take care of ‘exporting’ the GPIO pin, if necessary. (Changing BUTTON_PIN would not have been enough, as Pisound’s kernel driver was taking care of exporting the pin)
This is available since pisound-btn version 1.10, you should be able to get it using:
Hi, I’m using Pisound and the button works just as expeced, also when I soldered an “external” button to gpio 17 and gnd.
Anyway, when using Patchbox OS on RPi without Pisound, it doesn’t seem to work. I made all recomended updates, the command “–gpio N” does chande the pin and I get info that it’s listening to a certain gpio, but still it doesn’t react to any button pushes / holds.
Thx, the trick with hooking the other end of the button to +3V3 doesn’t work with GPIO 17 but it does with GPIO 21. However, I have no frickin’ idea how to permanently change gpio to 21. What I do is typing:
pisound-btn --gpio 21
and it says “Listening to events on GPIO #21” and it is listening, indeed. So how do I now save the gpio choice? Because after shutting down and turning on again, it seems that it forgot the change to GPIO 21 and after typing
it says “Listening to events on GPIO #17” again.
I know nuthin’ about linux, I just want to have Pd patch running headless and be able to switch the rpi safely. So no idea about linux terminal commands, shortcuts etc.
The +3V3 trick worked for me on GPIO 17 and RPi4, but anyway, to change the pin and save it between reboots, you have to override the pisound-btn.service file. See this topic where I explain how to do it for modep-mod-ui.service, and do the same for pisound-btn.service, edit the command line appropriately in your copy of the pisound-btn.service.
You can find out the current path of pisound-btn.service using this command:
Giedrius, thanks for immediate reply!
Unfortunately, I’m stuck again - after few steps, when I’m already editing the copy of “pisound-btn.service” , there’s no gpio number anywhere in the file, so I guess I need to add some new line - where should it be and what should it look like? (told you - no linux skills here, unfortunately…)
Im currently messing about with trying to get patches switching with an ESP8266 connecting to the hotspot. My current plan is to use OSC or MIDI but I was wondering if its possible to hook into ‘The Button’ scripts? eg, another python script to emulate GPIO input? (Is that even possible)