I’m new to the RPi, but have done Arduino projects before. I’d like to make a set of home brew Airplay speakers and Volumio looks like an excellent way to do it in conjunction with a RPi, DAC, ClassD amp and a speaker box. One thing I’d like some advice on is power management. I’d like to reduce power when the speaker is not in use by switching power to the amp via one of the GPIO pins on the RPi. I’d like it to power on when an Airplay signal is present and switch off after a programmable timeout.
I’m not familiar with Volumio yet, so I’d like some advice from someone with a bit more experience. Would I need to get into the Volumio source code or is there an easy way of activating a script when Airplay is working? Is it difficult to access to the GPIO pins?
I’ve done something very similar all in one 2.1 amp. If your using class d amp the power useage is so minimal i wouldn’t worry about saving 1 watt per hour…
Actually in my case i can switch the amp off anyway as the board has a switch that i used - that could be an easy option
Hello
Even if the power of an idle class d amp is low, you can with a python script detect the state of airplay and in function command via the gpio a switch to power the amp.