Hey guys. So I need some assistance if anyone has the time or energy. I know the basis of what needs to be done, but I’m not to sure about direction of attack for coding. So what I want to do is connect my PSU that is powering my subwoofer for my home theater to my raspberry pi so that I can turn on my subwoofer without having to get up and manually switching the PSU to on.
I’d like to connect a relay to the GPIO pins on the pi, so that I can switch the PS_ON for the PSU to turn on when I press a button or combination button on my pi keyboard. Preferably without involving OSMC so that my input on my receiver doesn’t switch to the pi.
I’m currently using a mac bluetooth keyboard. So I’d like to be able to have some sort of code that allows me to input the button or combination button press to turn the PSU on and off. I’m not sure if that means I need a watchdog script, python script or what. The coding is the part I’m stuck at. Also am I right in needing a 5v DC relay?
Thanks in advanced.