Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 > that actaually shows the state of the player's volume setting when > powering the PCP-Pi. > > > Exactly. I believe that's what they did in the project I'd linked to. > But thinking this twice, my project would be even more complicated. I > realized that I would need one of those motorized linear Alps/Alpine > sliders that were (still are?) used in highend sound mixers. See > https://www.adafruit.com/product/5466 > So the idea is: > After powering up the Zero W, it uses the volume status of a determind > player, converts it to voltage and send the slider to the correct > position. > When moving the slider manually, voltage difference ist converted to a > volume setting in LMS. Could something like https://www.adafruit.com/product/5295 work? mfraser's Profile: http://forums.slimdevices.com/member.php?userid=22793 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 have" feature would be to have a volume control that actaually shows the state of the player's volume setting when powering the PCP-Pi. > 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. Exactly. I believe that's what they did in the project I'd linked to. But thinking this twice, my project would be even more complicated. I realized that I would need one of those motorized linear Alps/Alpine sliders that were (still are?) used in highend sound mixers. See https://www.adafruit.com/product/5466 So the idea is: After powering up the Zero W, it uses the volume status of a determind player, converts it to volatge and send the slider to the correct position. When moving the slider manually, voltage difference ist converted to a volume setting in LMS. PCP (always latest version) on RasPi 3 with PhatDac (player & server) PCP on several RasPis 2 +3 2 Airplay speakers (Sony SA-NS510) integrated via Airplay Bridge Plugin streampunk's Profile: http://forums.slimdevices.com/member.php?userid=66210 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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. 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 Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 (player & server) PCP on several RasPis 2 +3 2 Airplay speakers (Sony SA-NS510) integrated via Airplay Bridge Plugin streampunk's Profile: http://forums.slimdevices.com/member.php?userid=66210 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 (potentiometer) instead of the rotary encoder to control the volume. There are several cheap sliders (for Arduino etc.), but they all have analogue output. Would it be possible to use one of them? Tanks & regards Martin PCP (always latest version) on RasPi 3 with PhatDac (player & server) PCP on several RasPis 2 +3 2 Airplay speakers (Sony SA-NS510) integrated via Airplay Bridge Plugin streampunk's Profile: http://forums.slimdevices.com/member.php?userid=66210 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 # give the daemon a moment to start up before issuing the sbpd command sleep 1 # load uinput module, then set the permission to group writable, so you don't need to run sbpd with root permissions sudo modprobe uinput sudo chmod g+w /dev/uinput # issue the sbpd command sbpd -d -s b,20,POWR,0,1 b,5,PREV,0,1 b,6,PLAY,0,1 b,12,NEXT,0,1 b,13,KEY:KEY_MINUS,0,1 b,16,KEY:KEY_EQUAL,0,1 mfraser's Profile: http://forums.slimdevices.com/member.php?userid=22793 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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. mfraser's Profile: http://forums.slimdevices.com/member.php?userid=22793 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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::Buttons::Common::pushMode (2010) Pushing button mode: INPUT.Volume [22-10-15 13:19:01.0232] Slim::Buttons::Common::popMode (2145) Popped to button mode: INPUT.List [22-10-15 13:19:01.0236] Slim::Buttons::Common::popMode (2145) Popped to button mode: INPUT.List [22-10-15 13:19:01.9307] Slim::Buttons::Common::pushMode (2010) Pushing button mode: volume [22-10-15 13:19:01.9312] Slim::Buttons::Common::pushMode (2010) Pushing button mode: INPUT.Volume [22-10-15 13:19:02.9345] Slim::Buttons::Common::popMode (2145) Popped to button mode: INPUT.List [22-10-15 13:19:02.9350] Slim::Buttons::Common::popMode (2145) Popped to button mode: INPUT.List [22-10-15 13:19:03.6512] Slim::Buttons::Common::pushMode (2010) Pushing button mode: volume [22-10-15 13:19:03.6518] Slim::Buttons::Common::pushMode (2010) Pushing button mode: INPUT.Volume [22-10-15 13:19:04.6548] Slim::Buttons::Common::popMode (2145) Popped to button mode: INPUT.List [22-10-15 13:19:04.6553] Slim::Buttons::Common::popMode (2145) Popped to button mode: INPUT.List [22-10-15 13:19:06.1627] Slim::Buttons::Common::pushMode (2010) Pushing button mode: volume [22-10-15 13:19:06.1633] Slim::Buttons::Common::pushMode (2010) Pushing button mode: INPUT.Volume [22-10-15 13:19:07.1663] Slim::Buttons::Common::popMode (2145) Popped to button mode: INPUT.List [22-10-15 13:19:07.1667] Slim::Buttons::Common::popMode (2145) Popped to button mode: INPUT.List [22-10-15 13:19:08.0767] Slim::Buttons::Common::pushMode (2010) Pushing button mode: volume [22-10-15 13:19:08.0772] Slim::Buttons::Common::pushMode (2010) Pushing button mode: INPUT.Volume [22-10-15 13:19:09.0807] Slim::Buttons::Common::popMode (2145) Popped to button mode: INPUT.List [22-10-15 13:19:09.0812] Slim::Buttons::Common::popMode (2145) Popped to button mode: INPUT.List mfraser's Profile: http://forums.slimdevices.com/member.php?userid=22793 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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) - Control Query Logging (Advanced) (control.stdio) - Standard I/O Command Logging (Advanced) mfraser's Profile: http://forums.slimdevices.com/member.php?userid=22793 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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://forums.slimdevices.com/member.php?userid=22793 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 1665655871.7481 6 control.c,276: Button pressed: Pin: 16, Press Type:Short 1665655871.7481 6 servercomm.c,74: Send Command:0, Fragment:["button","voldown"] 1665655876.2441 6 GPIO.c,107: Short PRESS: 84 1665655876.2442 6 control.c,134: Button CB set for button #:4, gpio pin 13 1665655876.2596 6 control.c,276: Button pressed: Pin: 13, Press Type:Short 1665655876.2597 6 servercomm.c,74: Send Command:0, Fragment:["button","volup"] 1665655876.8027 6 GPIO.c,107: Short PRESS: 2477 1665655876.8028 6 control.c,134: Button CB set for button #:5, gpio pin 16 1665655876.8686 6 control.c,276: Button pressed: Pin: 16, Press Type:Short 1665655876.8687 6 servercomm.c,74: Send Command:0, Fragment:["button","voldown"] 1665655878.1881 6 GPIO.c,107: Short PRESS: 936 1665655878.1882 6 control.c,134: Button CB set for button #:5, gpio pin 16 1665655878.2767 6 control.c,276: Button pressed: Pin: 16, Press Type:Short 1665655878.2768 6 servercomm.c,74: Send Command:0, Fragment:["button","voldown"] mfraser's Profile: http://forums.slimdevices.com/member.php?userid=22793 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 turn left volume down occurs and after immediately volume up occurs so net reault volume always 100% amanker's Profile: http://forums.slimdevices.com/member.php?userid=72694 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 that but it works. I just double assigned the button like this Code: sbpd -f /home/tc/sbpd_commands.cfg b,4,SHUF,2,0 b,4,PRE1,2,0 and in the sbpd_commands.cfg i defined the SHUF command: Code: SHUF=["playlist","shuffle","1"] I also thought it might be possible to do it with the SCRIPT Attribute but I don't know how to use it. Another thing I want to do is to control a GPIO depending on the play state. Is there a easy way to do it? luigi2000's Profile: http://forums.slimdevices.com/member.php?userid=68910 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 working These single commands work just fine PRE1=["playlist","shuffle","1"] PRE1=["button","preset_1.single"] Any idea how to solve the problem? Thanks luigi2000's Profile: http://forums.slimdevices.com/member.php?userid=68910 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 all the pages for three days now, nothing about what to write or where... I just run the script posted and changed the pin-numbers and got that working - now i just need to make it permanent :D Corpze's Profile: http://forums.slimdevices.com/member.php?userid=72536 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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/member.php?userid=9716 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 SSH in to terminal and run this: Code: #start pigpiod daemon sudo pigpiod -t 0 -f -l -s 10 # wait for pigpiod to initialize - indicated by 'pigs t' exit code of zero count=10 # approx time limit in seconds while ! pigs t >/dev/null 2>&1 ; do if [ $((count--)) -le 0 ]; then printf "\npigpiod failed to initialize within time limit\n" exit 1 # or however you want to deal with failure fi # printf "\nWaiting for pigpiod to initialize\n" sleep 1 done printf "\npigpiod is running\n" # load uinput module - required to be able to send keystrokes # then set the permission to group writable, so you don't need to run sbpd with sudo modprobe uinput sudo chmod g+w /dev/uinput # issue the sbpd command sbpd -f /home/tc/sbpd_commands.cfg e,27,24,VOLU,2 b,22,PLAY,2,0 The encoder is working just awesome... But how do imake it permanent? Corpze's Profile: http://forums.slimdevices.com/member.php?userid=72536 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 I suspect the reason it didn't work before was because you hadn't made it executable at that stage. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 lot !! With your command I can run "manually" the script ! And Play/pause is working. Now how to "autorun" this ? PaulH's Profile: http://forums.slimdevices.com/member.php?userid=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 current directory. You have to be explicit: Code: tc@pCP:~$ tc@pCP:~$ ./sbpd-script.sh chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 understand, before moving onto more. 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%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 then Notepad++ is the 3rd-party tool to use and tell it to save in Unix format. 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, via the extra \"radio now playing\" plugin lots more - see https://forums.slimdevices.com/showthread.php?115201-announce-radio-now-playing-plugin Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 found The file exist Code: tc@pCP:~$ ls pcp-powerbutton.sh powerscript.sh sbpd-script.sh PaulH's Profile: http://forums.slimdevices.com/member.php?userid=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 pigpiod to initialize - indicated by 'pigs t' exit code of zero count=10 # approx time limit in seconds while ! pigs t >/dev/null 2>&1 ; do if [ $((count--)) -le 0 ]; then printf "\npigpiod failed to initialize within time limit\n" exit 1 # or however you want to deal with failure fi # printf "\nWaiting for pigpiod to initialize\n" sleep 1 done printf "\npigpiod is running\n" # load uinput module - required to be able to send keystrokes # then set the permission to group writable, so you don't need to run sbpd with sudo modprobe uinput sudo chmod g+w /dev/uinput # issue the sbpd command sbpd -s b,8,PLAY,2,0 -v And added on the Tweaks User command #1 /home/tc/sbpd-script.sh But something more is missing. PaulH's Profile: http://forums.slimdevices.com/member.php?userid=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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, via the extra \"radio now playing\" plugin lots more - see https://forums.slimdevices.com/showthread.php?115201-announce-radio-now-playing-plugin Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 nothing uses physical PIN numbers. It work!!! I used physical pin numbers! :-( But when I quit (CTRL C) the terminal, the switch doesn't work anymore. How to "stay" it working ? - Is there 6 commands (pause, vol up/dn, rew, ffw and power) available ? Thanks PaulH's Profile: http://forums.slimdevices.com/member.php?userid=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
Then tell it to use pin 8, its 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. 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%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 PaulH's Profile: http://forums.slimdevices.com/member.php?userid=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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. chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
"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, via the extra \"radio now playing\" plugin lots more - see https://forums.slimdevices.com/showthread.php?115201-announce-radio-now-playing-plugin Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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. > > However, if you want to do something that it does not handle already > then it can be harder to do then you would expect from a generic How To > guide that is aimed at Rasbian or Raspberry Pi OS ... as you are finding > out. > > You might be better off using a full Linux and then following a generic > guide for installing LMS and Squeezelite ... then you can more easily > add other things where you follow a generic guide. I did everything with Termina Now I used Extensions! It seems better but not working: Code: tc@pCP:~$ sbpd -s b,24,PLAY,2,0 -v 1642942772.8382 6 sbpd.c,316: Options parsing: Set verbose mode 1642942772.8389 6 sbpd.c,505: Using builtin button configuration 1642942772.8389 6 control.c,108: Adding Command PLAY: Fragment ["pause"] 1642942772.8392 6 control.c,108: Adding Command VOL+: Fragment ["button","volup"] 1642942772.8394 6 control.c,108: Adding Command VOL-: Fragment ["button","voldown"] 1642942772.8395 6 control.c,108: Adding Command PREV: Fragment ["button","rew"] 1642942772.8397 6 control.c,108: Adding Command NEXT: Fragment ["button","fwd"] 1642942772.8398 6 control.c,108: Adding Command POWR: Fragment ["button","power"] 1642942772.8400 6 GPIO.c,312: Initializing GPIO 1642942772.8421 3 sbpd.c,202: Could not connect to pigpiod. Is it running? tc@pCP:~$ sbpd -d -s b,24,PLAY,2,0 -v 1642942852.7376 6 sbpd.c,316: Options parsing: Set verbose mode 1642942852.7378 6 sbpd.c,505: Using builtin button configuration 1642942852.7379 6 control.c,108: Adding Command PLAY: Fragment ["pause"] 1642942852.7379 6 control.c,108: Adding Command VOL+: Fragment ["button","volup"] 1642942852.7380 6 control.c,108: Adding Command VOL-: Fragment ["button","voldown"] 1642942852.7380 6 control.c,108: Adding Command PREV: Fragment ["button","rew"] 1642942852.7380 6 control.c,108: Adding Command NEXT: Fragment ["button","fwd"] 1642942852.7381 6 control.c,108: Adding Command POWR: Fragment ["button","power"] PaulH's Profile: http://forums.slimdevices.com/member.php?userid=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 does not handle already then it can be harder to do then you would expect from a generic How To guide that is aimed at Rasbian or Raspberry Pi OS ... as you are finding out. You might be better off using a full Linux and then following a generic guide for installing LMS and Squeezelite ... then you can more easily add other things where you follow a generic guide. 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, via the extra \"radio now playing\" plugin lots more - see https://forums.slimdevices.com/showthread.php?115201-announce-radio-now-playing-plugin Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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) saving to 'pcp-sbpd.tcz' pcp-sbpd.tcz 100% || 192k 0:00:00 ETA 'pcp-sbpd.tcz' saved tc@pCP:~$ sbpd -s b,24,PLAY,2,0 -v 1642930181.4635 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 please report this to proje...@drogon.net. If this is not a Raspberry Pi then you are on your own as wiringPi is designed to support the Raspberry Pi ONLY. tc@pCP:~$ PaulH's Profile: http://forums.slimdevices.com/member.php?userid=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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/showthread.php?107001-ANNOUNCE-SqueezeButtonPi-Tool-to-use-buttons-and-rotary-encoders-on-a-RPi&p=877437&viewfull=1#post877437 Code: cd /mnt/mmcblk0p2/tce/optional wget http://downloads.sourceforge.net/project/picoreplayer/beta/sbpd.tcz.md5.txt wget http://downloads.sourceforge.net/project/picoreplayer/beta/sbpd.tcz md5sum sbpd.tcz # make sure the file downloaded correctly f0157164d10b86325b38fee0cb8d709e sbpd.tcz cat sbpd.tcz.md5.txt # does it match the line above? f0157164d10b86325b38fee0cb8d709e sbpd.tcz echo "sbpd.tcz" >> /mnt/mmcblk0p2/tce/onboot.lst pcp rb # you must reboot! PaulH's Profile: http://forums.slimdevices.com/member.php?userid=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 dependency. @PaulH - are you using an older version of sbpd from somewhere? chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 ? PaulH's Profile: http://forums.slimdevices.com/member.php?userid=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 exists > > tc@pCP:/tmp$ sudo dpkg -i wiringpi-latest.deb > sudo: dpkg: command not foundThe 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 slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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-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 exists tc@pCP:/tmp$ sudo dpkg -i wiringpi-latest.deb sudo: dpkg: command not found PaulH's Profile: http://forums.slimdevices.com/member.php?userid=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 a genuine Raspberry Pi then please report this > to proje...@drogon.net. If this is not a Raspberry Pi then you > are on your own as wiringPi is designed to support the > Raspberry Pi ONLY. > tc@pCP:~$ > > It's a real Pi4 !!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 slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 please report this to proje...@drogon.net. If this is not a Raspberry Pi then you are on your own as wiringPi is designed to support the Raspberry Pi ONLY. tc@pCP:~$ It's a real Pi4 !! PaulH's Profile: http://forums.slimdevices.com/member.php?userid=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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: Set verbose mode 1642868732.5502 6 sbpd.c,505: Using builtin button configuration 1642868732.5502 6 control.c,108: Adding Command PLAY: Fragment ["pause"] 1642868732.5503 6 control.c,108: Adding Command VOL+: Fragment ["button","volup"] 1642868732.5503 6 control.c,108: Adding Command VOL-: Fragment ["button","voldown"] 1642868732.5504 6 control.c,108: Adding Command PREV: Fragment ["button","rew"] 1642868732.5504 6 control.c,108: Adding Command NEXT: Fragment ["button","fwd"] 1642868732.5504 6 control.c,108: Adding Command POWR: Fragment ["button","power"] 1642868732.5505 6 GPIO.c,312: Initializing GPIO 1642868732.5545 6 control.c,262: Button defined: Pin 24, BCM Resistor: up, Short Type: LMS, Short Fragment: ["pause"] , Long Type: unused, Long Fragment: (null), Long Press Time: 3000 1642868732.5548 6 discovery.c,385: MAC address found: b8:27:eb:d9:dd:0e 1642868732.5548 6 servercomm.c,176: Initializing CURL 1642868732.5699 6 sbpd.c,264: Starting main loop polling 1642868732.5705 6 discovery.c,238: Found server 8D00A8C0. A new address 1642868732.6710 6 discovery.c,349: discovery packet: port: 9000, name: NUC-Devel, uuid: d6d706ce-3908-479c-8158-5c9058697319 1642868732.6712 6 discovery.c,130: Squeezebox control port found: 9000 1642868732.6712 6 discovery.c,149: Server address found: 192.168.0.141 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%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 this command: tc@pCP:~$ sbpd -d -s b,24,PLAY,2,0 -v PaulH's Profile: http://forums.slimdevices.com/member.php?userid=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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.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%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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.slimdevices.com/member.php?userid=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
paul- wrote: > Yes, see what that shows, the should be a lot of rest output..there is > also a debug level with -z, but dont 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 PaulH's Profile: http://forums.slimdevices.com/member.php?userid=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
Yes, see what that shows ..there is also a debug level with -z, but dont 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_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 PaulH's Profile: http://forums.slimdevices.com/member.php?userid=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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=72449 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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/member.php?userid=72423 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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.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%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
/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 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%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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,NEXT,2,0 (But I need to sudo pigpiod before to make it work) I then put this in /home/tc/sbpd-script : Code: #start pigpiod daemon pigpiod -t 0 -f -l -s 10 # wait for pigpiod to initialize - indicated by 'pigs t' exit code of zero count=10 # approx time limit in seconds while ! pigs t >/dev/null 2>&1 ; do if [ $((count--)) -le 0 ]; then printf "\npigpiod failed to initialize within time limit\n" exit 1 # or however you want to deal with failure fi # printf "\nWaiting for pigpiod to initialize\n" sleep 1 done printf "\npigpiod is running\n" # load uinput module - required to be able to send keystrokes # then set the permission to group writable, so you don't need to run sbpd with sudo modprobe uinput sudo chmod g+w /dev/uinput # issue the sbpd command sbpd -v -f /home/tc/sbpd_commands.cfg e,23,24,VOLU,2 b,25,NEXT,2,0 And made it executable. Ant now I'm lost, what command line do I need to put in User Command to make it work ? I tried Code: /home/tc/sbpd-script.sh but nothing happens even after rebooting (do I need to ?) I also tried to put 2 commands (#1 sudo pigpiod and #2 sbpd e,23,24,VOLU,2 b,25,NEXT,2,0) without any luck Also, sbpd_commands.cfg is located in /home/tc/SqueezeButtonPi-Daemon, don't know if it's ok ? Thanks in advance for any help KillerJoe34's Profile: http://forums.slimdevices.com/member.php?userid=72423 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 better than the white SB? hsmeets's Profile: http://forums.slimdevices.com/member.php?userid=9716 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 support! pdo59's Profile: http://forums.slimdevices.com/member.php?userid=72369 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 button pi expect the other way around, to be pulled low by the > encoder. Then you either have to rewire or change the software options > if available. I looked for a software option to indicate pull-up but there isn't, it can only be indicated for buttons. I'll try to understand the debug output better. pdo59's Profile: http://forums.slimdevices.com/member.php?userid=72369 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 Volumio > environment. Do you pull the GPIO low or high with the encoder? IOW How do you have it wired? It could be that volumio expects the GPIO to be pulled high where squeeze button pi expect the other way around, to be pulled low by the encoder. Then you either have to rewire or change the software options if available. does the all-black SB sound better than the white SB? hsmeets's Profile: http://forums.slimdevices.com/member.php?userid=9716 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 work is 1) but anyway it goes to the > next track both by turning forward and back. > The command > Code: > > sbpd -v -z e,6,5,VOL,1 b,7,PLAY > > used for controlling the volume also fails in both directions. BTW for volume use VOLU not VOL See: read me on https://github.com/paul-1/SqueezeButtonPi-Daemon does the all-black SB sound better than the white SB? hsmeets's Profile: http://forums.slimdevices.com/member.php?userid=9716 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 defective encoder or defect GPIO, have you tried > with other gpios? In the command line I wrote the GPIO numbers, is this correct? 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 Volumio environment. pdo59's Profile: http://forums.slimdevices.com/member.php?userid=72369 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 you tried with other gpios? does the all-black SB sound better than the white SB? hsmeets's Profile: http://forums.slimdevices.com/member.php?userid=9716 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 the next track both by turning forward and back. The command Code: sbpd -v -z e,6,5,VOL,1 b,7,PLAY used for controlling the volume also fails in both directions. pdo59's Profile: http://forums.slimdevices.com/member.php?userid=72369 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 - KEY_B both work. pdo59's Profile: http://forums.slimdevices.com/member.php?userid=72369 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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:- mode: Optional. one of\n\ 1 - Step mode (default)\n\ 2-9 - Detent mode - Assumes 1 dial click is x steps. 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%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 - DT GPIO6 - SW GPIO7 piCorePlayer version: 8.1.0 piCore version: 13.1 Squeezelite v1.9.9-1391-pCP Jivelite Thank you for your help pdo59's Profile: http://forums.slimdevices.com/member.php?userid=72369 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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+ v2.0 (set as Hifiberry DAC+ and works like a charm) > gpio 18 to 21 are used by the DAC. A micro embedded electronic HAT which allowed to use 3 sets of all the GPIO pins. Everything is working and I have sound and all. Rotary encoder KY040 : gnd to gnd , + to 3.3V, sw to 26, dt to 23 and clk to 24 I created a script.sh in home/tc Code: #!/bin/sh # start pigpiod daemon pigpiod -t 0 -f -l -s 10 # give the daemon a moment to start up before issuing the sbpd command sleep 1 # load uinput module, then set the permission to group writable, so you don't need to run sbpd with root permissions sudo modprobe uinput sudo chmod g+w /dev/uinput # issue the sbpd command # This command for volume and play pause sbpd e,23,24,VOLU,2 b,26,PAUS,2,0,STOP,500 did the Code: chmod 755 script.sh when I started my script no more sound. So I rebbot and digged a little bit. When I started pigpiod > no sound any more. and I can't figure why I started sbpd just to check and I have that 36431 Any help will be appreciated. Thank you for your time and making/maintaining picoreplayer +---+ |Filename: Capture décran 2021-12-12 182605.png| |Download: http://forums.slimdevices.com/attachment.php?attachmentid=36431| +---+ Themightybob's Profile: http://forums.slimdevices.com/member.php?userid=69977 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 the raspberry to use with sbpd? +---+ |Filename: s-l500.jpg | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=36224| +---+ Besth's Profile: http://forums.slimdevices.com/member.php?userid=66850 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 +---+ |Filename: 20211016_084908.jpg | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=36014| +---+ mfraser's Profile: http://forums.slimdevices.com/member.php?userid=22793 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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.slimdevices.com/member.php?userid=22793 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 second set of > momentary switches on their way to the GPIO pins, maybe through a time > delay circuit or relay? Ill have to do some reading. > > On the software side, I wonder if I could modify the code that monitors > the pins to register a button push if a connection is made via my > non-momentary button. It could fire after a fixed time delay if the > signal is maintained on specified pin. After a longer delay, if there > was no further activity, the pin could be reset so its not left > floating. Any thoughts on which portion of the source code I would need > to look at? > > Alternatively, maybe I could take the idea of a delay / second button > and execute it in software. Maybe a script that reacts to a change on > pin 1, triggered by my mechanical non-momentary switch, and then > momentarily flips a second pin on and off on the Pi, which sbpd could > interpret as a button push? > > Ill try and work through a few possibilities and share any results. Hello Turner1200, i faced the same problem when i wanted to rebuild an old cassette recorder with pcp. Last but not least, I used gpiozero and LMSTools to control toggle style switches and rotary encoders. This combination works very well with pcp and is relatively easy to implement. If you need some advice i can help. Greetings chschind's Profile: http://forums.slimdevices.com/member.php?userid=69071 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 there is an indirect way to have the non-momentary switches activate a second set of momentary switches on their way to the GPIO pins, maybe through a time delay circuit or relay? Ill have to do some reading. On the software side, I wonder if I could modify the code that monitors the pins to register a button push if a connection is made via my non-momentary button. It could fire after a fixed time delay if the signal is maintained on specified pin. After a longer delay, if there was no further activity, the pin could be reset so its not left floating. Any thoughts on which portion of the source code I would need to look at? Alternatively, maybe I could take the idea of a delay / second button and execute it in software. Maybe a script that reacts to a change on pin 1, triggered by my mechanical non-momentary switch, and then momentarily flips a second pin on and off on the Pi, which sbpd could interpret as a button push? Ill try and work through a few possibilities and share any results. Turner1200's Profile: http://forums.slimdevices.com/member.php?userid=72084 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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. Turner1200's Profile: http://forums.slimdevices.com/member.php?userid=72084 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 push-buttons on a breadboard despite having no particular experience with "physical computing". I would now like to move beyond the breadboard and replace my prototype push-buttons. I want instead to wire the pCP into an old radio enclosure and use the radio's old 1950s selector buttons. These buttons are mechanical and depressing them shifts a metal contact between two sets of lugs/pins. I am not sure how to capture this action using SBPD and am looking for some help. With the breadboard push-buttons, I had wired one end to a GPIO pin and the other to a ground pin on the Raspberry Pi. I can see that depressing the button momentarily closes the contact between the two before the button pops back, breaking the contact. As far as I can tell the default behaviour for SBPD is to read the breaking of the contact as the button comes back up as a "button push" event. I've started the daemon with this command to define a button using pin 21. sbpd --verbose b,21,CMD1 -f /home/tc/sbpd_commands.cfg This works great, but in the radio enclosure with a different style of switch/button, once pushed, the button stays pushed (in a depressed position). The contact is made, but not subsequently broken (unless and until I push a second selector button). Is there a command option I can pass to sbpd that will recognize the simple action of making, but not subsequently breaking, the contact on a single pin as a button push event? I was hopeful at first that the CMD_LONG option would fire once the specified millisecond period had elapsed, but on testing found again that it only recognizes a button push if I break the contact. I was able to get some function going by starting the daemon with the CMD_LONG option, and by flipping the GPIO pin state option to 1 from 0. sbpd --verbose b,21,RDO1,2,0,RDO2,1500 With that command running, I got the following results: 1) pushing the button down to make the contact - no action; 2) disengaging the button to break the contact, no action; and 3) then finally pushing the button down a second time to re-engage the contact - sbpd finally recognized a long button push. Still, I'm hopeful there is an alternative way to structure this so that the first time I push down one of the radio enclosure's mode selector buttons and connect the circuit that a button push event can be recognized by sbpd. I would really appreciate any ideas or suggestions. I've attached an image of the mode selector buttons if it helps to visualize this. The mechanism allows for any one of the 4 mode selector buttons to be engaged at one time. Pushing any of the other three while one is depressed will disengage the previous selection. There is also a fifth "off" button which disengages whichever of the 4 mode selector buttons may potentially be engaged. 35704 +---+ |Filename: IMG_3758.jpg | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=35704| +---+ Turner1200's Profile: http://forums.slimdevices.com/member.php?userid=72084 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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=GB¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 > issues and sound now plays normally across all devices, buttons & > encoders work, etc. YAY! :D > > Note that unlike the user in that post, i don't utilize an IR remote, so > that issue is of no impact to me. > > However, i'm not sure if this has other repercussions or was the > intended behavior? Someone with more knowledge than me may be able to > answer. I just got a little worried when i read the final comment: "Im > thinking the use of any DAC for sound is going to have the same problem, > they all use i2s, as far as I know anyway." (and i'm pretty sure the > vast majority of the DAC options use i2s). :confused: Has anyone successfully found an alternative way of receiving IR signals with an external DAC? mfraser's Profile: http://forums.slimdevices.com/member.php?userid=22793 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 or not, ... . Enoder is recognized by SBPD, LMS Server is found automatically, but when I turn the encoder no output appears in the -v debug screen. Code: tc@pCP:~$ sbpd -v e,23,22,VOLU,2 1629728608.6509 6 sbpd.c,316: Options parsing: Set verbose mode 1629728608.6512 6 sbpd.c,505: Using builtin button configuration 1629728608.6512 6 control.c,108: Adding Command PLAY: Fragment ["pause"] 1629728608.6513 6 control.c,108: Adding Command VOL+: Fragment ["button","volup"] 1629728608.6513 6 control.c,108: Adding Command VOL-: Fragment ["button","voldown"] 1629728608.6514 6 control.c,108: Adding Command PREV: Fragment ["button","rew"] 1629728608.6514 6 control.c,108: Adding Command NEXT: Fragment ["button","fwd"] 1629728608.6514 6 control.c,108: Adding Command POWR: Fragment ["button","power"] 1629728608.6515 6 GPIO.c,312: Initializing GPIO 1629728608.6560 6 control.c,406: Rotary encoder defined: Pin 23, 22, Mode: Detent, Fragment: ["mixer","volume","%s%d"] 1629728608.6562 6 discovery.c,385: MAC address found: b8:27:eb:0e:12:87 1629728608.6563 6 servercomm.c,176: Initializing CURL 1629728608.6644 6 sbpd.c,264: Starting main loop polling 1629728608.6648 6 discovery.c,238: Found server E900A8C0. A new address 1629728608.7656 6 discovery.c,349: discovery packet: port: 9002, name: LogitechMediaServer, uuid: 4c8f7f40-0a39-49da-8038-9f2eef43e701 1629728608.7658 6 discovery.c,130: Squeezebox control port found: 9002 1629728608.7658 6 discovery.c,149: Server address found: 192.168.0.233 My sbpd-script.sh looks like that: Code: #!/bin/sh # start pigpiod daemon #pigpiod #pigpiod -t 1 pigpiod # give the daemon a moment to start up before issuing the sbpd command sleep 1 # load uinput module, then set the permission to group writable, so you don't need to run sbpd with root permissions sudo modprobe uinput sudo chmod g+w /dev/uinput # issue the sbpd command sbpd -d -s e,23,22,VOLU,2 Thank god i also have a "naked" encoder ( https://www.ttelectronics.com/products/categories/encoders/encoders/en12-vs/ ) which work like a charm. With the same ports and the same config the KY-040 is not working an the "normal" encoder works very well. As far as I read in the feed, some oter users already got KY-040 encoders up an running. I also tried the posted expample configs, but no success. I do not have attached any hat at the moment. Any idea where the problem could be ? Maybe the pullup resistors of the KY-040 ? Thank you for your help pille pille's Profile: http://forums.slimdevices.com/member.php?userid=16070 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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. mfraser's Profile: http://forums.slimdevices.com/member.php?userid=22793 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 reinstalling in a bit. ShaneC80's Profile: http://forums.slimdevices.com/member.php?userid=71859 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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=_donations&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 on GPIO13 and 3.3V script it: ~/spd.sh Code: #!/bin/sh # start pigpiod daemon pigpiod # give the daemon a moment to start up before issuing the sbpd command sleep 1 # load uinput module, then set the permission to group writable, so you don't need to run sbpd with root permissions sudo modprobe uinput sudo chmod g+w /dev/uinput # issue the sbpd command # This command will cause encoder to move selection right or left; Press=Enter; long press=down sbpd e,17,27,KEY:KEY_LEFT-KEY_RIGHT,4 b,22,KEY:KEY_ENTER,4,0,KEY:KEY_DOWN,500 I get the following error: Code: tc@pCP:~$ ./spd.sh 2021-06-26 23:43:58 initCheckPermitted: +-+ |Sorry, you don't have permission to run this program.| |Try running as root, e.g. precede the command with sudo. | +-+ Can't initialise pigpio library sbpd: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory tc@pCP:~$ sudo ./spd.sh 2021-06-26 23:44:05 initInitialise: Can't lock /var/run/pigpio.pid Can't initialise pigpio library sbpd: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory tc@pCP:~$ ShaneC80's Profile: http://forums.slimdevices.com/member.php?userid=71859 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy
Re: [SlimDevices: DIY] [ANNOUNCE] SqueezeButtonPi - Tool to use buttons and rotary encoders on a RPi
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 toward, but wasn't sure. > You can still get contacT bounce, but the software has debounce timers > in the setup. Ditto. Was pretty sure it was accounted for, but not 100% Thanks! Now just to get the time to put it together. ShaneC80's Profile: http://forums.slimdevices.com/member.php?userid=71859 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 ___ diy mailing list diy@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/diy