Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1

    Squeezelite -G GPIO misbehaving

    Hi! I'm trying to activate a relay to turn on my amplifier with the -g option for squeezelite.

    So far, I only had erratic behaviors. Playing,Pausing a song, and fast forwarding/rewinding a song will trigger the relay.
    It seems like it's responding to playback status rather than power status.

    Anyone has an idea on how I could achieve that feature without this bug?

    Maybe I could use the -S option. Anyone wiling to share their power on and power off scripts ?

    Thank you!


    Envoyé de mon iPhone en utilisant Tapatalk

  2. #2
    Senior Member
    Join Date
    Sep 2005
    Posts
    2,854
    What Version do you use?

    i am using Squeezelite v1.9.0-1113from Ralph that doesnt have a -g support.

    I am using -S for my stuff and i never seen some strange things...

  3. #3
    I'm using Max2Play v1.0.2 based on v1.8.4-726


    Envoyé de mon iPhone en utilisant Tapatalk

  4. #4
    Senior Member Jeff07971's Avatar
    Join Date
    Aug 2011
    Location
    London, England
    Posts
    1,688
    Quote Originally Posted by Gobuleberbu View Post
    Hi! I'm trying to activate a relay to turn on my amplifier with the -g option for squeezelite.

    So far, I only had erratic behaviors. Playing,Pausing a song, and fast forwarding/rewinding a song will trigger the relay.
    It seems like it's responding to playback status rather than power status.

    Anyone has an idea on how I could achieve that feature without this bug?

    Maybe I could use the -S option. Anyone wiling to share their power on and power off scripts ?

    Thank you!


    Envoyé de mon iPhone en utilisant Tapatalk

    Never had a single problem with the -G switch. And its -G not -g

    What version of SQUEEZELITE are you using "squeezelite -?" I think.

    What GPIO are you using ?

    How are you buffering the signal from the GPIO ?
    Last edited by Jeff07971; 2018-12-07 at 09:21. Reason: Corrected "squeezelite -?"

    Want a webapp ? Get SqueezeLite-X ! https://forums.slimdevices.com/showt...l=1#post903953

  5. #5
    In max2play,
    I run it with the following flag
    -G 24:H

  6. #6
    Quote Originally Posted by Jeff07971 View Post
    Never had a single problem with the -G switch. And its -G not -g

    What version of SQUEEZELITE are you using "squeezelite -?" I think.

    What GPIO are you using ?

    How are you buffering the signal from the GPIO ?
    Buffering? I'm not sure I quite understand how to do that

  7. #7
    Senior Member Jeff07971's Avatar
    Join Date
    Aug 2011
    Location
    London, England
    Posts
    1,688
    Quote Originally Posted by Gobuleberbu View Post
    Buffering? I'm not sure I quite understand how to do that
    The GPIO on a Pi does not have enough power to run MOST relays, there are a few it can but not many and are specialised.
    Buffering is the circuit used to increase the power available to drive a relay - See attached image.

    Lets get the basics first:-
    What raspberry Pi have you got ?
    What DAC do you use ?

    How does the relay power the amplifier 120/220 Vac ?

    Then we can go from there, as I said I have never had any problems with the -G option on pCP (PiCorePlayer) and use -G in 4 systems

    Jeff

    Name:  How-to-Control-a-Relay-using-Raspberry-Pi-Relay-Drive.jpg
Views: 202
Size:  57.9 KB

    Want a webapp ? Get SqueezeLite-X ! https://forums.slimdevices.com/showt...l=1#post903953

  8. #8
    Ok! I'm driving a power switch tail II with my pi 3B+

    It should work decently...
    Maybe it's my firmware, I've updated everything. I'll test it tonight.

    Otherwise which kernel version are you running? I'm 4.14.85-v7+

  9. #9
    Senior Member Jeff07971's Avatar
    Join Date
    Aug 2011
    Location
    London, England
    Posts
    1,688
    Quote Originally Posted by Gobuleberbu View Post
    Ok! I'm driving a power switch tail II with my pi 3B+

    It should work decently...
    Maybe it's my firmware, I've updated everything. I'll test it tonight.

    Otherwise which kernel version are you running? I'm 4.14.85-v7+
    Yes that should work fine !

    I doubt if its firmware, but possible

    What DAC do you use ? Does it use GPIO 24 ?

    I use GPIO 13 as its not used by my Hifiberry DAC+'s

    Want a webapp ? Get SqueezeLite-X ! https://forums.slimdevices.com/showt...l=1#post903953

  10. #10
    Allo boss

    And no, it's not being used by the board...
    It uses bcm 3 5 12 27 28 31 35 50

    And gpio 24 is at pin 18

Posting Permissions

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