I ended up doing this instead. Used a different arduino, so had to modify the code (Used adafruit feather stuff) but works great! Also modified it to turn off the amps after 15 minute of stopped/paused playback instead of just at a predetermined time in the evening.
I bought one of these relay triggered outlets, and had intended to write a zone monitor to power my amp on while the zone played, then off 15 minutes or so after pause.
Iām already using Ropieee for the zone in question. Is there any chance the functionality discussed here could get implemented directly in Ropieee?
Hi @spockfish,
Iāve seen several threads die out in these forums about extending Ropieee to toggle GPIO pins around play/pause events.
Iād like this functionality, because while I can remember to turn my amplifier on each night, I seem to forget to power it off, and find it warming the house in the morning.
Is that a feature you would consider adding to Ropieee? Can I āsponserā the development effort? I know code doesnāt write itself ā thatās what I do for a living.
Itās more a case of being able to perhaps customize a selection of deemed safe pins to choose from and what is the on or off state to apply.
Basically what @wizardofoz said. Iām not against such feature and Iām willing to implement, but:
- it should not interefere in any case with HAT setups, screen setup etc.
- it should be a fixed pin: Iām not going to build it where the pin itself is configurable, because that is going contradicting the āruleā above
So itās a matter of figuring out what we can do.
Harry is it possible to selectively power down individual USB ports maybe this is an option also. I use a similar setup with my luminās and a usb to dc buffer
Hi, I would also be interested in this functionality of toggling a GPIO based on playback state.
My thought would be with the multitude of different HATs out there, the pin would have to be configurable.
Volumio has a similar plugin, called amplifier switch. It allows the Port or Pin number to be configured from port 2-27, invert the signal or not, have a delay in ms before turning off, and an option for pulsed relays.
In the case of the DAC I am using, I am considering GPIO 22-25 as they are all free of other functions.
OK, I have started writing my own roon extension to get the functionality I want, which is a little more complicated than a simple GPIO toggle.
My initial effort can be found here: https://github.com/Flyingsparks/roon-dac-trigger/releases
This was based on the effort from superfell @SImon_Fell already linked above.
Iām interested in this, too. I have a 5v-USB-to-12v-3.5mm cable; now all I have to do is to have one of the free USB ports on the Pi turn power on when something is playing, and off when itās not. We already have this in RoPieee for a port thatās connected to a DAC, but not for a port thatās a pure power drain.
I guess this 12v trigger thread died. I was interested as my Type A amp uses a lot of power in the idle mode and my DAC doesnāt have a trigger output.
Would be nice to have somethingā¦maybe a usb port can be turned on and off?
To raise and drop 5V - I requested this in the Lumins Streamer configs and it works great