Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19
  1. #11
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,802
    How did you wire the button? What pins are you connected to?
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  2. #12
    Member
    Join Date
    Jun 2017
    Location
    Belgium
    Posts
    86
    Hi Paul!
    Pin 5 & 6.
    pCP v5.0.0 on all players
    LMS 7.9.2 on Debian Buster server in a Linux Container
    RPi 3B+ with Hifiberry AMP2 and official 7" touchscreen (Squeezelite + Jivelite), +27k titles on SMB share
    RPi B as dedicated player, connected over wifi with USB dongle
    RPi 2B as dedicated player, connected over powerline
    RPi Zero W as dedicated player
    Squeezer on Android to control

  3. #13
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,802
    If you are using pins 3 or 5, you need to disable i2c as noted earlier.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  4. #14
    Member
    Join Date
    Jun 2017
    Location
    Belgium
    Posts
    86
    I did.

    Could the button that I've used be a problem?
    It's a reset button from a desktop, so not a sticky contact - or how you call that.
    pCP v5.0.0 on all players
    LMS 7.9.2 on Debian Buster server in a Linux Container
    RPi 3B+ with Hifiberry AMP2 and official 7" touchscreen (Squeezelite + Jivelite), +27k titles on SMB share
    RPi B as dedicated player, connected over wifi with USB dongle
    RPi 2B as dedicated player, connected over powerline
    RPi Zero W as dedicated player
    Squeezer on Android to control

  5. #15
    Senior Member M-H's Avatar
    Join Date
    Oct 2016
    Location
    Western Europe
    Posts
    203
    Quote Originally Posted by Rnee View Post
    I did.

    Could the button that I've used be a problem?
    It's a reset button from a desktop, so not a sticky contact - or how you call that.
    This is called a momentary switch and is indeed the right way to make a short connection.

    M-H
    Pi based multi-room audio system powered by PiCorePlayer(s):
    Pi3B with Phat-dac in a Rasptouch, 2 pi B+ with Cirrus Logic Audio Card, Pi Zero with Phat-beat , and a few other tests...

  6. #16
    I'm thinking to switch on Raspberry when I switch on my amplifier and switch off Raspberry when i switch down my amplifier. The Raspberry Is plugged to my amplifier by USB so all gpio Is free. My amplifier has a USB port free. I can plug a cable to have +5v when the amplifier Is on. And After what i have to do? Do i need a relay ?

  7. #17
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,802
    Unless your running a Zero, the USB port is likely not going to put out enough to power the pi properly. You could use the 5 volt from the USB to power a small relay, then run the normal wallwart power through the relay. Many different ways to do it.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  8. #18
    Quote Originally Posted by paul- View Post
    Unless your running a Zero, the USB port is likely not going to put out enough to power the pi properly. You could use the 5 volt from the USB to power a small relay, then run the normal wallwart power through the relay. Many different ways to do it.
    Yes this Is a Simply solution that i can do Just now.
    The question Is: Is there a more elegant solution, by using gpio, to Power on and off exploting the 5v obtained from the amplifier USB? For example, to Power off, i can writer a script that every x times (in cron) examine a specific gpio PIN ti do a "sudo halt". But to Power on?

  9. #19
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,802
    I guess I should ask.....is the pi doing anything other than playing music. Your LMS server is elsewhere?

    If so, then just power it to start and cut the power to kill it.
    Last edited by paul-; 2020-02-26 at 10:10.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

Posting Permissions

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