🇨🇦

  • 0 Posts
  • 5 Comments
Joined 2 years ago
cake
Cake day: July 1st, 2023

help-circle



  • I did this with a regular rpi, one of it’s io pins and a single npn transistor a while back.

    Multimeter to check which power button pin on the mobo is + vs -. - to the rpi gnd, + to the transistor collector, gate to the io pin, drain to rpi gnd.

    Whenever the io pin goes high (positive), the transistor shorts the mobo pins ‘pressing’ the power button.

    Script pings the servers ip to check if its not responding; then pulls the pin high for 6 sec to ensure the mobo is fully off, then low for 2 sec, high for 2 sec, then low again.

    This was for a system that kept locking up while I was away, so I needed a way to remotely hard-restart it.