Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-12-20 Thread mfraser
streampunk wrote: > Basically you are right, of course. But my idea was to have my headless > little streaming Pi connected to my fabulous Wega Concept 51k > controlling everything related to playback on my Denon AVR (vial > Airplay). An a "nice to have" feature would be to have a volume control

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-12-20 Thread maciekelga
Hi, I installed pcp-sbpd.tcz extension. What next in software I need to do if only want to have power button and stop button on two GPIO? maciekelga's Profile: http://forums.slimdevices.com/member.php?userid=73213 View thi

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-12-01 Thread streampunk
paul- wrote: > and anolog pot is really not much use over an encoder. Basically you are right, of course. But my idea was to have my headless little streaming Pi connected to my fabulous Wega Concept 51k controlling everything related to playback on my Denon AVR (vial Airplay). An a "nice to ha

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-11-30 Thread paul-
Since volume control within squeezelite/LMS is digital control, and anolog pot is really not much use over an encoder. Just extra complications. To do it, you would read analog voltage and use software to monitor "step" changes in voltage, then send the command to increase or decrease volume.

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-11-30 Thread streampunk
Thanks Paul, I was afraid it wasn't so easy. Now I'm thinking about adapting https://www.circuitbasics.com/using-potentiometers-with-raspberry-pi/ for my purposes. Still missing an idea on how to link it to the player's volume control PCP (always latest version) on RasPi 3 with PhatDac (pl

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-11-30 Thread paul-
Not with this software. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://picoreplayer.org/index.html#donate) if you like the piCorePlayer paul-'s P

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-11-30 Thread streampunk
Hi everybody, thanks for this great tool, I've used it sucessfully to add a rotary encoder to a PCP on a RPI Zero W. It controls playback, shutdown (with the push button function of the encoder) and volume of a Denon AVR the playback is going to. Now I was wondering whether I could use a slider (

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-10-23 Thread mfraser
mfraser wrote: > Some progress, I can change volume using the remote and Linux keytables. > So if I change the command to use keys instead it should work. It is now working with the script amended to Code: #!/bin/sh # start pigpiod daemon sudo pigpiod -t 0

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-10-18 Thread mfraser
paul- wrote: > Perhaps turn on some logging in the server. The commands appear to be > getting sent, just not processed by the server. Some progress, I can change volume using the remote and Linux keytables. So if I change the command to use keys instead it should work.

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-10-15 Thread mfraser
paul- wrote: > Perhaps turn on some logging in the server. The commands appear to be > getting sent, just not processed by the server. Code: [22-10-15 13:19:00.0195] Slim::Buttons::Common::pushMode (2010) Pushing button mode: volume [22-10-15 13:19:00.0201] Slim::

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-10-13 Thread mfraser
paul- wrote: > Perhaps turn on some logging in the server. The commands appear to be > getting sent, just not processed by the server. Anything in particular I need to turn on in logging? These perhaps?: (control.command) - Internal Command Execution Logging (Advanced) (control.queries) - Co

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-10-13 Thread paul-
Perhaps turn on some logging in the server. The commands appear to be getting sent, just not processed by the server. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://picoreplayer.org/index.html#donate) if you like the

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-10-13 Thread mfraser
paul- wrote: > Do you have LMS set to allow volume control. There is a player setting > that locks volume at max. For that player I have Volume Control - Volume controls adjust outputs. mfraser's Profile: http://forum

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-10-13 Thread paul-
Do you have LMS set to allow volume control. There is a player setting that locks volume at max. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://picoreplayer.org/index.html#donate) if you like the piCorePlayer ---

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-10-13 Thread mfraser
I now have 6 capacitive touch buttons that work with this command: sbpd -v b,20,POWR,0,1 b,5,PLAY,0,1 b,6,PREV,0,1 b,12,NEXT,0,1 b,13,VOL+,0,1 b,16,VOL-,0,1 Except that the VOL+ and VOL- buttons don't control the volume: 1665655871. 6 control.c,134: Button CB set for button #:5, gpio pin 16

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-03-30 Thread amanker
I have problem using rotary encoder for volume control. Using sbpd -s e,16,20,VOLU,2 And commands for bittons. Buttons works. But envoder dont, i can see events in console. But volume is not chamging, in console i see -1 count then +1 count. I tried changing VOLU to key event, but then also if

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-02-07 Thread paul-
That is for sure not possible. You will need to write your own software. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=PP%2dDon

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-02-07 Thread luigi2000
paul- wrote: > You can do short press / long press. Yes I thought about that but this is not what I want. It should be working with just one single press so that this playlist is always startet in shuffle mode. But I actually found a way how to do it. I dont know if it is intended to work like

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-02-07 Thread paul-
You can do short press / long press. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNo

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-02-07 Thread luigi2000
Hey, Is there a way to start more than one command when I press a button? I have a playlist that is started when I press a button and it should always start in shuffle mode. So im looking for something like this: PRE1=["playlist","shuffle","1"]["button","preset_1.single"] but it is not workin

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-31 Thread Corpze
hsmeets wrote: > Just read the posts before yours, it was just discussed. :D is it this sulotion? #!/bin/sh Before the script? I appologize but I am a total noob... I just can log in to SSH. Someone wrote something about creating a startup.sh file? How, where? what do i write? I have read

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-31 Thread hsmeets
Corpze wrote: > > > But how do imake it permanent? Just read the posts before yours, it was just discussed. :D does the all-black SB sound better than the white SB? hsmeets's Profile: http://forums.slimdevices.com/mem

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-30 Thread Corpze
Hi all - first post and i love this thing! Complete noob but is learning :) Pi 3B+ 5" LCD HDMI waveshare rotary encoder 480GB SSD Picoreplayer - latest version LMS, jivelite etc.. So, everything is working amazing! I have installed pcp_sbpd.tcz via the web GUI. The encoder is hooked up and i

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-24 Thread PaulH
it works !!! Thanks chill ! PaulH's Profile: http://forums.slimdevices.com/member.php?userid=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ di

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-23 Thread chill
PaulH wrote: > > For "autorun": > > Code: > > ./sbpd-script.sh > > > > It didn't start. You just need to put your original command back into the User Commands section. Code: /home/tc/sbpd-script.sh

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-23 Thread PaulH
chill wrote: > Ah, that's an evil Linux trap for the unwary Windows user! It won't > assume that you are referring to a file in the current directory. You > have to be explicit: > > > Code: > > tc@pCP:~$ tc@pCP:~$ ./sbpd-script.sh > > Thanks a

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-23 Thread chill
PaulH wrote: > > I can't run it: > > Code: > > tc@pCP:~$ tc@pCP:~$ sbpd-script.sh > -sh: sbpd-script.sh: not found > > > > Ah, that's an evil Linux trap for the unwary Windows user! It won't assume that you are referring to a file in the c

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-23 Thread paul-
PaulH wrote: > > - Is there 6 commands (pause, vol up/dn, rew, ffw and power) available > ? > > Thanks Yes, built in, but there is almost an infinite amount of possibilities with custom configuration files.its all buried in this thread. But get one thing working correctly so you understa

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-23 Thread Paul Webster
sh sbpd-script.sh or put a "hash bang" on the first line #!/bin/sh Also - make sure that you are using Unix line-endings for the file If you made all of your edits with nano or vi then you will be ok. If you did it with Notepad on Windows then you might have problems. If you are using Windows

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-23 Thread PaulH
chill wrote: > Why? You'll have to explain what's happening now. > > Did you make the script executable? > Did you test it from the command line? I made: chmod g+x sbpd-script.sh I can't run it: Code: tc@pCP:~$ tc@pCP:~$ sbpd-script.sh -sh: sbpd-script.sh: not fou

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-23 Thread chill
PaulH wrote: > > But something more is missing. Why? You'll have to explain what's happening now. Did you make the script executable? Did you test it from the command line? chill's Profile: http://forums.slimdevices.c

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-23 Thread PaulH
Paul Webster wrote: > You need to set it to run automatically on boot - see the linked posts > for how to get pCP to do that for you. I look on the post and create file sbpd-script.sh Code: #start pigpiod daemon sudo pigpiod -t 0 -f -l -s 10 # wait for pigpio

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-23 Thread Paul Webster
You need to set it to run automatically on boot - see the linked posts for how to get pCP to do that for you. Paul Webster author of \"now playing\" plugins covering radio france (fip etc), planetradio (bauer - kiss, absolute, scala, jazzfm etc), kcrw, abc australia and cbc/radio-canada and, v

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-23 Thread PaulH
paul- wrote: > Then tell it to use pin 8, it’s all in the help information. > > > Code: > > > For buttons: > b,pin,CMD[,resist,pressed,CMD_LONG,long_time] > "b" for "Button" > pin: GPIO PIN numbers in BCM-notation > > > > > Almost no

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-23 Thread chill
What command line options did you use with pigpiod? Do you have any other devices attached to this RPi? chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-23 Thread paul-
Then tell it to use pin 8, it’s all in the help information. Code: For buttons: b,pin,CMD[,resist,pressed,CMD_LONG,long_time] "b" for "Button" pin: GPIO PIN numbers in BCM-notation Almost nothing uses physical PIN numbers. piCorePla

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-23 Thread PaulH
Paul Webster wrote: > "Could not connect to pigpiod. Is it running?" > > This does not look good. > Is it running? > > ps -ef | grep pigpiod tc@pCP:~$ ps -ef | grep pigpiod 10897 root 0:06 pigpiod 10920 tc0:00 grep pigpiod ---

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-23 Thread chill
You have to start the pigpio daemon manually before running sbpd. See 'this post' (https://forums.slimdevices.com/showthread.php?107001-ANNOUNCE-SqueezeButtonPi-Tool-to-use-buttons-and-rotary-encoders-on-a-RPi&p=1042348&viewfull=1#post1042348) for an example script. ---

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-23 Thread Paul Webster
"Could not connect to pigpiod. Is it running?" This does not look good. Is it running? ps -ef | grep pigpiod Paul Webster author of \"now playing\" plugins covering radio france (fip etc), planetradio (bauer - kiss, absolute, scala, jazzfm etc), kcrw, abc australia and cbc/radio-canada and,

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-23 Thread PaulH
Paul Webster wrote: > No > > You do it all from the pCP web interface - look for "Extensions". > > > Note though ... pCP is not like other Linux systems. > It is great for novices to get going really quickly. > Part of its speed in booting is its small size and being memory > resident. > > H

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-23 Thread Paul Webster
No You do it all from the pCP web interface - look for "Extensions". Note though ... pCP is not like other Linux systems. It is great for novices to get going really quickly. Part of its speed in booting is its small size and being memory resident. However, if you want to do something that it

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-23 Thread PaulH
paul- wrote: > That is many years old. > > The only extension you need to load is pcp-sbpd.tcz from our repo. Is it the right place ? Thanks tc@pCP:~$ wget http://picoreplayer.sourceforge.net/tcz_repo/9.x/armv7/tcz/pcp-sbpd.tcz Connecting to picoreplayer.sourceforge.net (204.68.111.100:80)

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-22 Thread paul-
That is many years old. The only extension you need to load is pcp-sbpd.tcz from our repo. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB¤cy_

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-22 Thread PaulH
chill wrote: > That's correct. sbpd now uses pigpio instead of wiringpi. If you > install pcp-sbpd.tcz from the piCorePlayer respository, it will install > pigpio as a dependency. @PaulH - are you using an older version of sbpd > from somewhere? I follow this https://forums.slimdevices.com/s

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-22 Thread chill
slartibartfast wrote: > I read in another thread that wiringPi wasn't used any more with > piCorePlayer so I wonder where it came from. > That's correct. sbpd now uses pigpio instead of wiringpi. If you install pcp-sbpd.tcz from the piCorePlayer respository, it will install pigpio as a depen

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-22 Thread slartibartfast
I read in another thread that wiringPi wasn't used any more with piCorePlayer so I wonder where it came from. Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?useri

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-22 Thread slartibartfast
PaulH wrote: > I'm using piCorePlayer 8.1.0 > > How to display the version ?No idea but if it came from the pcp repository it > "should" be OK. Hopefully someone who knows will comment. Sent from my Pixel 3a using Tapatalk --

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-22 Thread PaulH
slartibartfast wrote: > The version for piCorePlayer should be 2.5.4 so it should work with a > Pi4. > https://github.com/piCorePlayer/wiringPi/blob/master/VERSION > > Sent from my Pixel 3a using Tapatalk I'm using piCorePlayer 8.1.0 How to display the version ?

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-22 Thread slartibartfast
PaulH wrote: > tc@pCP:/tmp$ gpio -v > -sh: gpio: not found > > try to update: > tc@pCP:/tmp$ cd /tmp > tc@pCP:/tmp$ wget > https://project-downloads.drogon.net/wiringpi-latest.deb > Connecting to project-downloads.drogon.net (188.246.205.22:443) > wget: can't open 'wiringpi-latest.deb': File ex

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-22 Thread PaulH
slartibartfast wrote: > Which version of wiringPi do you have? > http://wiringpi.com/wiringpi-updated-to-2-52-for-the-raspberry-pi-4b/ > > Sent from my Pixel 3a using Tapatalk tc@pCP:/tmp$ gpio -v -sh: gpio: not found try to update: tc@pCP:/tmp$ cd /tmp tc@pCP:/tmp$ wget https://project-downl

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-22 Thread slartibartfast
PaulH wrote: > tc@pCP:~$ sbpd -d -s b,24,PLAY,2,0 -v > tc@pCP:~$ > > or with: > > tc@pCP:~$ sbpd -s b,24,PLAY,2,0 -v > 1642871394.5050 6 GPIO.c,219: Initializing GPIO > Unable to determine hardware version. I see: Hardware: BCM2711 > , > - expecting BCM2708, BCM2709 or BCM2835. > If this is

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-22 Thread PaulH
tc@pCP:~$ sbpd -d -s b,24,PLAY,2,0 -v tc@pCP:~$ or with: tc@pCP:~$ sbpd -s b,24,PLAY,2,0 -v 1642871394.5050 6 GPIO.c,219: Initializing GPIO Unable to determine hardware version. I see: Hardware : BCM2711 , - expecting BCM2708, BCM2709 or BCM2835. If this is a genuine Raspberry Pi then pleas

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-22 Thread paul-
And nothing at all is printed on the screen when you enter that command? You should see all of this output. drop the -d, as you don't want the command to demonize either. Code: tc@piTouch:~$ sbpd -s b,24,PLAY,2,0 -v 1642868732.5499 6 sbpd.c,316: Options parsing: S

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-22 Thread PaulH
paul- wrote: > Are you doing your testing with a keyboard and monitor connected to your > pi? > > Connect to your device with ssh and then copy and paste into a message > here. > > https://docs.picoreplayer.org/how-to/access_pcp_via_ssh/ It's connected by SSH with Terminal on my MAC I sent t

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-22 Thread paul-
Are you doing your testing with a keyboard and monitor connected to your pi? Connect to your device with ssh and then copy and paste into a message here. https://docs.picoreplayer.org/how-to/access_pcp_via_ssh/ piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.p

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-22 Thread PaulH
paul- wrote: > Post the output of the command. How ? paul- wrote: > I hope you are using a button and not just touching wire and pins. yes there is a switch between PIN24 and GND PaulH's Profile: http://forums.slimd

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-22 Thread paul-
Post the output of the command. I hope you are using a button and not just touching wire and pins. There is debounce in the software. But you would see that if you look at the output. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-22 Thread PaulH
paul- wrote: > Yes, see what that shows, the should be a lot of rest output..there is > also a debug level with -z, but don’t start with that. It doesn't work. I measure 3,3V on PIN 24 (it's seems to be set as input). Connected to GND the player stay in PLAY mode

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-22 Thread paul-
Yes, see what that shows…..there is also a debug level with -z, but don’t start with that. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB¤cy_cod

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-22 Thread PaulH
paul- wrote: > Almost certainly user error. :) > For sure ! paul- wrote: > Almost certainly user error. :) > > Run the command from an ssh session with verbose (-v) output. Like that ? tc@pCP:~$ sbpd -d -s b,24,PLAY,2,0 -v ---

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-22 Thread paul-
Almost certainly user error. :) Run the command from an ssh session with verbose (-v) output. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB¤cy

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-22 Thread PaulH
Tried to add the pause command by pulling down the GPIO08 (pin24): /usr/local/sbin/sbpd -d -s b,24,PLAY,2,0 Nothing happend. What could be wrong ? Thanks PaulH's Profile: http://forums.slimdevices.com/member.php?userid=7

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-04 Thread KillerJoe34
Yes, it's sbpd-script.sh I just added sudo pigpiod in the script and it works now :confused: strange Thank you Paul for your time and work ! But... I'll be back :) KillerJoe34's Profile: http://forums.slimdevices.com/me

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-04 Thread paul-
The user commands section of pCP will run with root permission, so no need for sudo in the script. Is the script named sbpd-script or sbpd-script.sh Make sure you are using the correct name in user commands. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.p

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-04 Thread KillerJoe34
It's ok if I run the script manually Do you mean I have to move the cfg in the tc directory ? KillerJoe34's Profile: http://forums.slimdevices.com/member.php?userid=72423 View this thread: http://forums.slimdevices.com/sho

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-04 Thread paul-
/home/tc/sbpd-script.sh is correct for put in user commands. What happens when you run the script manually. I can see you have a path issue for the cfg file. You need to fix that first. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Pleas

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2022-01-04 Thread KillerJoe34
Hi everyone, noob here... and french btw, excuse my english I approximately managed to get it working, read several times the entire thread for that, but there's something probably very simple I don't get : It works perfectly if I run this command line in my monitor: sbpd e,23,24,VOLU,2 b,25,

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-12-19 Thread hsmeets
In this same thread someone also had issues with that encoder. https://forums.slimdevices.com/showthread.php?107001-ANNOUNCE-SqueezeButtonPi-Tool-to-use-buttons-and-rotary-encoders-on-a-RPi&p=1018753&viewfull=1#post1018753 But I see you have it working now :) does the all-black SB sound bett

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-12-19 Thread pdo59
I found the problem, in the command I swapped CLK and DT. Indeed -pin1- stands for CLK and -pin2- stands for DT, in my case 5 is CLK and 6 DT, so the correct final command is: Code: sbpd -s -d e,5,6,TRAC b,7,PLAY Thank you hsmeets, paul for the su

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-12-19 Thread pdo59
hsmeets wrote: > Do you pull the GPIO low or high with the encoder?IOW How do you have it > wired? The encoder is an KY-040 module, CLK and DT in HIGH state are connected via pull-up resistors. hsmeets wrote: > > It could be that volumio expects the GPIO to be pulled high where > squeeze but

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-12-18 Thread hsmeets
pdo59 wrote: > In the command line I wrote the GPIO numbers, is this correct? Yes pdo59 wrote: > The PLAY button works because is connected to pin 26 that is GPIO7; the > encoder is connected to pin 29 / GPIO5 and pin 31 / GPIO6. > With this configuration the encoder work perfectly in a Vol

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-12-18 Thread hsmeets
pdo59 wrote: > Can anyone help me? > The rotary encoder appears to only work in one direction: forward. I > have tried all the expected ways (1..9) using this command:> Code: > > sbpd -v -z e,6,5,TRAC,1 b,7,PLAY > > (the only mode that seems to wo

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-12-18 Thread pdo59
hsmeets wrote: > What encoder do you use? > > Assuming you have not mixed up GPIO numbering and pin numbering on the > header. > > Pin 5 would be GPIO 3 and pin 6 would be ground. Which could explain > only working in one direction. > GPIO 5 & 6 are pin 29 & 31 > > Other possibility is a defe

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-12-18 Thread hsmeets
What encoder do you use? Assuming you have not mixed up GPIO numbering and pin numbering on the header. Pin 5 would be GPIO 3 and pin 6 would be ground. Which could explain only working in one direction. GPIO 5 & 6 are pin 29 & 31 Other possibility is a defective encoder or defect GPIO, have y

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-12-17 Thread pdo59
Can anyone help me? The rotary encoder appears to only work in one direction: forward. I have tried all the expected ways (1..9) using this command: Code: sbpd -v -z e,6,5,TRAC,1 b,7,PLAY (the only mode that seems to work is 1) but anyway it goes to

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-12-12 Thread pdo59
Hi paul, I want to control the current playlist, not the volume. I tried also this: Code: sbpd -v -z e,6,5,KEY:KEY_Z-KEY_B b,7,PLAY but no result, I can only select the next track. I have configured ir-remote for jivelite and in this case KEY_Z - KE

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-12-12 Thread paul-
Well then tell it to use VOLU instead of TRAC Code: For rotary encoders (one, volume only): e,pin1,pin2,CMD[,edge] "e" for "Encoder" p1, p2: GPIO PIN numbers in BCM-notation CMD: Command. one of. \n\ VOLU for Volume\n\ TRAC for Prev/Next track\n\ KEY:-

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-12-12 Thread pdo59
Hi all, I have successfully installed this great plugin in my piCoreplayer and the encoder works. However works only "next track". I use this command: Code: sbpd e,6,5,TRAC,1 b,7,PLAY My config is: Raspberry Pi 4B Encoder module KY-040: CLK GPIO5 -

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-12-12 Thread Themightybob
Hi all, so I tried to do this wonderful thing to add a rotary encoder connected to the gpio to control the volume. And... all my attempts failed. I read the thread like millions times. First of all mega noobs about command lines etc... but i did my best. The material; Raspberry pi A+ PiFi DAC+ v

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-11-22 Thread paul-
The other pins are for the push button on the stem of the encoder. You can connect that to GPIO and do something else. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&busin

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-11-22 Thread Besth
Hello, i have this rotary encoder: 36224 there are 5 connectors: CLK, DT, SW, + and GND GND to GND SW (Switch) like an button to a GPIO, so i can use the rotary encoder as button, when pressed in the middle. now i have 3 left: CLK, DT and + can someone give me a hint how to connect this one to

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-10-26 Thread mfraser
paul- wrote: > Depends on how you have the software configured.But those button > output voltage when pressed. This works: sbpd -v b,20,POWR,0,1 Now I can turn it on/off just by touching the body of the player. 36014 +---+ |

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-10-26 Thread paul-
Depends on how you have the software configured.But those button output voltage when pressed. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-10-26 Thread mfraser
I now have a https://www.adafruit.com/product/1374 capacitive touch connected to pin 20 and have set both resist and pressed to 1 as the output goes high when activated. Is this correct? mfraser's Profile: http://forums.sl

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-09-13 Thread chschind
Turner1200 wrote: > For this project, I really want to preserve the outside and interface of > the old radio. While this means in principle keeping the non-momentary > original switches (buttons), you make we wonder if there is an indirect > way to have the non-momentary switches activate a secon

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-09-11 Thread paul-
All kinds of things you can do with software. This tool was just not written that way. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB¤cy_code=

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-09-10 Thread Turner1200
paul- wrote: > Hmm, anyway to replace the mechanical button mechanism with standard > push buttons? For this project, I really want to preserve the outside and interface of the old radio. While this means in principle keeping the non-momentary original switches (buttons), you make we wonder if t

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-09-10 Thread paul-
Hmm, anyway to replace the mechanical button mechanism with standard push buttons? piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&b

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-09-10 Thread Turner1200
paul- wrote: > There is no config for a toggle style switch. > > What do you intend to do with these switches? I would like each toggle switch to launch a preset from LMS. Favourite / preset radio station buttons in practice. --

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-09-10 Thread paul-
There is no config for a toggle style switch. What do you intend to do with these switches? piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB¤cy_c

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-09-09 Thread Turner1200
First of all, thank you to the community that contributes to this forum! I have read through all the posts in recent days, and as a result was able to successfully get a pCP up and running with a working instance of the SqueezeButtonPi Daemon allowing me to collect the input from a few simple p

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-08-26 Thread paul-
A bit out of scope for this tool. Both squeezelite and jivelite support ir remotes for controlling. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-08-26 Thread mfraser
Krazystar wrote: > Self-update: > > I found this > https://forums.pimoroni.com/t/issue-phatdac-on-pi-zero-with-pigpio-and-moode-6-3/11875 > > I did what they sort of recommended, issuing the pigpiod command with -t > 0, which turns the clock from PCM to PWM. This solved all of my previous > iss

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-08-23 Thread pille
Hello, I am trying to get the encoder KY-040 with SBPD up an running (same encoder as skywalker posted in post #393). As far as I know the encoder hast built in pull-up resistors for SW (switch), DT and CLK. SBPD is running, and I already tried many configurations for gpio ports, with + connected

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-08-08 Thread paul-
The gpio version works fine. I found the touch to be way too sensitive. I reverted to using mechanical switches. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-08-08 Thread mfraser
Has anyone tried using one of these https://www.adafruit.com/product/1362 with SqueezeButtonPi? Looks like it just needs 3V power and then connecting to whichever GPIO you want. There is also https://www.adafruit.com/product/1982https://www.adafruit.com/product/1982, but that is I2C. --

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-06-26 Thread ShaneC80
paul- wrote: > Make sure you used the extension provided by pCP.pcp-sbpd.tcz > > curl is a dependency of sbpd, and is loaded if you use our extension. that might be the error then. I *think* I (originally) manually loaded sbpd without grabbing the pCP extension. I'll try purging and rein

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-06-26 Thread paul-
Make sure you used the extension provided by pCP.pcp-sbpd.tcz curl is a dependency of sbpd, and is loaded if you use our extension. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-06-26 Thread ShaneC80
finally have everything laid out on the table, hardware connected, but I think I'm still missing something (and it may be from reading TOO much in the thread). Encoder 1 is connected to GPIO 17, GND, GPIO27, with button on GPIO22 and 3.3V Encoder 2 is connected to GPIO5, GND, GPIO6, with button

Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi

2021-06-15 Thread ShaneC80
paul- wrote: > Rpi has internal pull-up/down resistors, set by software. > > The safest way to wire the button is to set the resisors as pull-up, and > then connect the gpio pin to ground with the button. Do the same with > encoders….connect the center to ground. Ok, that's what I was leaning

  1   2   3   4   5   >