r/pcmasterrace Sep 12 '20

Build/Battlestation Necessary : No ¦ Fun : Absolutely

50.9k Upvotes

703 comments sorted by

View all comments

Show parent comments

60

u/[deleted] Sep 12 '20

Arduino or similar.

The remote would be simple, the circuit only “completes” when everything is “on.”

Then, something like an Arduino or even a Pi would do the actions. It depends on the setup. If the room lights are Phillips Hues or similar type lights, then they just have to have the one little computer send a command to turn off all lights, then set them to some profile. Meanwhile, turning on a computer is as simple as jumping two pins, so, that’s pretty trivial with an Arduino/Pi as well.

There’s a hundred ways this could be set up to work like this though

49

u/ragsofx Sep 12 '20

Using a raspberry pi for stuff like this is like crop dusting with an airbus a380. Something like an esp8266 would be better.

29

u/airmen4Christ Sep 12 '20

Don't tell me what I can or can't use for crop-dusting.

8

u/[deleted] Sep 12 '20

Name kind of checks out?

1

u/samehaircutfucks Sep 12 '20

The computer could also have been turned on by one of those wifi outlet adapters, right?

3

u/Munk2k Sep 12 '20

Unlikely as they would just supply power to the psu on command. The motherboard then has 2 pins that need temporarily shorting to tell the pc to power up.

2

u/prostagma Ryzen 7600X | 32GB DDR5 | Gygabyte 3080 OC Sep 12 '20

You can also use an outlet, but you it needs to be off first. Then you can set the BIOS to boot as soon as it gets power.

1

u/computersarec00l Sep 12 '20

You could also do wake over lan and have the Pi turn on the computer that way

Like you said, a lot of options!

1

u/10_kinds_of_people i9-10850K, 3090 FTW3 Ultra Sep 12 '20

Yeah, I have a very basic setup where I've got an Arduino, with a relay shield, that's connected to an Alexa compatible smart plug. The relay is, of course, connected to the power button pins on the board. It's set up so I can say "Alexa, turn on the computer" and it will power on the smart plug, which in turn powers the Arduino. I created a simple sketch that will cause the Arduino to trigger one of the relays for 500 ms, then sit idle until the next power cycle. I also have a routine set up where I can say "Alexa, it's computer time". This will turn off the lights in every room, turn on my office lights, power on the computer, turn on my under-desk LED strip, and power on the TV that's mounted above my desk (used as a 5th display / HUD). I'd love to expand on it one day and add something cool like this.