HI all,
I've been trying to enable my home server for completely remote use, and this project focuses on turning the PC on from an off state (S5). To do this I have an ESP8266 listening on my home network for a message to turn on, from the simple app I'm developing. It's powered through the Server's motherboard USB passthrough.
I'm at the stage where I have everything kind of working using a relay, but I want to detect the relay being triggered in order to retry the input or inform the user on the app that it was successful or not. I kinda need this feature because the ESP occasionally crashes, hangs, or the relay can fail to switch properly, it's quite temperamental overall.
At the moment I have a wire from the NO relay pin connected to an input GPIO pin on the ESP, which reads whether the voltage is high or low. I've measured the front panel power switch pins on the motherboard at 3.3V so I presumed I should be able to take that voltage once it's connected through to the ESP, indicating the relay was successful in triggering. In reality, the GPIO pin reads 0. I hooked up the 3.3V relay input to the NO pin and it read 1, so I think the code is working at least. I'm wondering why I can't read the voltage from the PC front IO headers, is it maybe a grounding issue? Or maybe a lack of current?
I don't know much about circuitry, so apologies if it's pretty obvious, and I hope the diagram is helpful! Any help is appreciated, thanks

I've been trying to enable my home server for completely remote use, and this project focuses on turning the PC on from an off state (S5). To do this I have an ESP8266 listening on my home network for a message to turn on, from the simple app I'm developing. It's powered through the Server's motherboard USB passthrough.
I'm at the stage where I have everything kind of working using a relay, but I want to detect the relay being triggered in order to retry the input or inform the user on the app that it was successful or not. I kinda need this feature because the ESP occasionally crashes, hangs, or the relay can fail to switch properly, it's quite temperamental overall.
At the moment I have a wire from the NO relay pin connected to an input GPIO pin on the ESP, which reads whether the voltage is high or low. I've measured the front panel power switch pins on the motherboard at 3.3V so I presumed I should be able to take that voltage once it's connected through to the ESP, indicating the relay was successful in triggering. In reality, the GPIO pin reads 0. I hooked up the 3.3V relay input to the NO pin and it read 1, so I think the code is working at least. I'm wondering why I can't read the voltage from the PC front IO headers, is it maybe a grounding issue? Or maybe a lack of current?
I don't know much about circuitry, so apologies if it's pretty obvious, and I hope the diagram is helpful! Any help is appreciated, thanks
