I am using raspbmc and a hifiberry DAC connected to my active loudspeakers. In order to turn on my active loudspeakers, I need a turn-on voltage of 3 V. currently I am turning on the loudspeakers manually.
I would love to turn-on my active loudspeakers automatically, as soon as the hifiberry DAC is sending any sound. Theoretically it should work with the GPIO interface of the raspberry.
Probably I need a script, that somehow detects if the hifiberry DAC is working and then switch on 3V on the GPIO interface.
I am happy for any hint or help I can get.
Date
Votes
5 comments
-
HiFiBerry team One option would be to patch the device driver. However I would not really recommend this. The easiest way is to add a script to your application that plays the music. Which player are you using?
Best regards
Daniel -
Munich I am using raspbmc respectively xbmc.
(I am still testing to play music files via hifiberry DAC and video files via HDMI. That is a additinal condition, that the loudspeakers should only turn on when using the DAC) -
HiFiBerry team If you can't use software, you can try to connect the I2S data pin to an IO pin and run a script that monitors the state of this pin. If it changes, it is a sign, that there is an audio output.
Best regards
Daniel -
Munich Thank you, Daniel for the information.
Which one of the 10 I2S Pins on HIFIBerry DAC is the data pin?
Do I need only to connect I2S data pin to an IO pin or do I need to connect GND, too (or is this already done via the “regular” connection between HFIBerry and Raspberry)? -
HiFiBerry team You only need to connect the data pin (pin 6) on P5.
Best regards
Daniel
Please sign in to leave a comment.