Home of the Squeezebox™ & Transporter® network music players.
Page 5 of 6 FirstFirst ... 3456 LastLast
Results 41 to 50 of 58
  1. #41
    I believe there is still a risk of frying the GPIO chip and I do have the pins protected with a resistor and zener diode (via a rasp.io break out board at the moment for convenience). I'm assuming it will need protection unless advised otherwise! Would it no still b needed if I reconfigured the centre pin to go to ground?

    Sent from my SM-N9005 using Tapatalk

  2. #42
    Senior Member pippin's Avatar
    Join Date
    Oct 2007
    Location
    Berlin
    Posts
    14,202
    Don't take my word for it but my understanding is that by default the GPIO pins are on ground level so unless you activate the Pulldown-Menüs resistors software wise, nothing happens if you connect them to ground.
    If you connect them to 3.3V, otoh, you get quite a bit of current so you probably always want to add external resistors. The advantage then is that you don't need your software to specifically activate anything
    ---
    learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
    Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
    at penguinlovesmusic.com
    New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch

  3. #43

    Which buttons?

    Hi,
    i am also building a Musicbox with picoreplayer and i am looking for some buttons.
    So i found this script, which seems to be very useful, but did not try it.

    But because the script is only useful if you have some buttons, i have another question:
    what buttons do you use?
    I cant find any buttons which have some engraved or painted Symbols on it like play, pause next etc. on it.
    Any body has seen something like that?

    greetings
    cubii

  4. #44
    Quote Originally Posted by pippin View Post
    I'll play around with some more configurations over the weekend, maybe I'll add another option to use encoders and buttons pulling down from 3.3V
    Pippin, I was just wondering if you have had a hence to update the software? I'd be happy to help test it. P.S. I've put the centre pin to ground but it still doesn't do anything when I turn the rotary encoder.

    Sent from my SM-N9005 using Tapatalk

  5. #45
    Senior Member pippin's Avatar
    Join Date
    Oct 2007
    Location
    Berlin
    Posts
    14,202
    Quote Originally Posted by kingswindsor View Post
    Pippin, I was just wondering if you have had a hence to update the software? I'd be happy to help test it. P.S. I've put the centre pin to ground but it still doesn't do anything when I turn the rotary encoder.
    Sorry, I wasn't really able to test. My last test system is now away, my old one uses an old RPi1 and is horribly slow and my new test device is a rpi0w which doesn't yet work with piCorePlayer which I've used for testing so far.

    I have created a "testing" branch in the repo which contains a change that should allow a configuration parameter for pulling up/down (last parameter, 1 for down, 2 for up).

    Have you tried "-v" (verbose mode) to see what happens? Don't you get any interrupts at all from the encoder?
    ---
    learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
    Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
    at penguinlovesmusic.com
    New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch

  6. #46
    Quote Originally Posted by pippin View Post
    Sorry, I wasn't really able to test. My last test system is now away, my old one uses an old RPi1 and is horribly slow and my new test device is a rpi0w which doesn't yet work with piCorePlayer which I've used for testing so far.

    I have created a "testing" branch in the repo which contains a change that should allow a configuration parameter for pulling up/down (last parameter, 1 for down, 2 for up).

    Have you tried "-v" (verbose mode) to see what happens? Don't you get any interrupts at all from the encoder?
    Thanks, I will experiment over the next few days.

  7. #47
    Senior Member
    Join Date
    Apr 2008
    Location
    Paris, France
    Posts
    2,128
    I've read the thread up to here, and the readme on Github.
    I understand that sbpd is a networked controller that needs to be colocated with hardware buttons hosted by a Raspberry Pi.
    In this sense it could be possible to use something like a pi0w as a wireless remote or table-top controller, and provided there is a button/screen to select the target player, control any of the players on the network.

    Correct?
    PiPeng??
    3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

  8. #48
    Quote Originally Posted by ralphy View Post
    I've added a test sbpd.tcz package to the beta files area for pcp 3.1x.

    ssh to picoreplayer as tc user and run these commands.

    Code:
    pcp bu  # save pcp config
    
    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!
    You can start /usr/local/sbin/sbpd at boot from the user commands in the the web gui. Adding command line options as needed.

    I tried this on a raspberry Zero W with Picoreplayer 3.11 (i think, need to check this again).
    It works great, with the right buttons/encoders:

    I have on rotary encoder which just allows some turns in every direction and has no physical feedback ( you can just turn it, without "stops" in between)

    This on is not working.

    Than i have one encoder which turns indefinitely, and this one works great.

    This has also 2 pins for the use as a button, and when connected to ground and one BCMXX Gpio pin, it works also as eg, play/pause button.

    I have another button, i think you can find them as trigger /arcade buttons on ebay (black plastic button perfectly sized for a finger ;-)) which is also recognized, but has problems with timing, which results in random pause (If the button is pressed and is kept pressed, it pauses the music, but if the button is released, music starts again, same result if pressed not short/fast enough)

    I also tested a foil button (you know them from very cheap remotes) and this one works to like the encoder one.

    So it seems the tools misses a debouncer, but pippin wrote something like that in the first line of his first post
    although for the latter someone should take the time to create a "hold" gesture detection for a button, something I didn't have the time for so far.
    Because i dont know if i would be able to write this, has anybody a suggestion for a button, which works like expected and does not need the debouncing part?
    If not, i would try to use the encoder button for play /pause and two foil buttons for next and previous.... ( or even more of these encoders, but use only the button functionality...)

    But before i forget, thank you pippin! Great work.

    Grüße

    cubii

  9. #49
    so this evening i tried to use more than one butoon, but if i use this code:

    /usr/local/sbin/sbpd -d -s e,23,24,VOLM,0 b,12,NEXT b,16,PLAY

    Both button will do the same? (both are working, Connected to BCM 12 and BCM16 and ground)

    What is wrong?

  10. #50
    Senior Member pippin's Avatar
    Join Date
    Oct 2007
    Location
    Berlin
    Posts
    14,202
    What are they doing?

    Regarding the de-bounce Paul from PiCorePlayer has made a proposed change that we should probably merge, I just didn't have time to really test it, yet.
    ---
    learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
    Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
    at penguinlovesmusic.com
    New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •