Is it Possible to trigger gaming pcs power button when raspberry pi loses and gains power?

February 10, 2024, 23:38

mick0604

I am building an arcade cabinet and I was wondering if I could have a raspberry pi hooked up to a power source that has a wireless outlet to remotely turn it off and on and make it power off and power on my pc when power is applied to it Kind of a specific issue but i don’t really know where to start Was thinking something like a Zero W so maybe I can wirelessly turn it off too

oops.se

probably

mick0604

i was more of looking on how to do it and not if it would work lol

mick0604

like i mentioned in the description i dont really know where to start

k9t33n

ok first lets get onto turning on and off the pc

k9t33n

your button has two wires connecting it right?

k9t33n

ground and possitive, the button acts like a switch

oops.se

The power supply in your gaming PC is probably a ATX compliant power supply. But to be sure, check what brand and model you have! And if it a ATX compliant power supply, then the power button is a logic level type (5 volt). The signal is either called "PS_ON" or "PWR_ON" or similar. A note as the Raspberry Pi uses 3,3volt logic you need a transistor/MOSFET or level converter to level up the signal. See: https://en.wikipedia.org/wiki/Power_supply_unit_(computer) And why did I answer "probably" ? This is because you provided no "data" about your Gaming PC and I live by the rule https://www.youtube.com/watch?v=4CKiC6BO8hE

kutuptilkisi

<@501502432803815454>

kutuptilkisi

If you have atleast a motherboard

kutuptilkisi

use motherboard pins to do that

mick0604

Thanks for the ping

mick0604

Just give me one sec to catch up

kutuptilkisi

There should be 2 pins which will send power on/off signal to all of other parts in case they do a contact. Usually this two pins are conntected to a button

mick0604

Right

kutuptilkisi

Thats how i did my own wireless on/off application

mick0604

That makes sense

kutuptilkisi

Not really sure about volt

kutuptilkisi

I used this

kutuptilkisi

rather than conntecting it directly

kutuptilkisi


kutuptilkisi

it is a curcuit braker or smh like that

kutuptilkisi

but can handle a lot of power

kutuptilkisi

10 A at 220V

mick0604

And that will allow me to connect it to the pins on the motherboard

kutuptilkisi

but if you measure out the volt you can just connect it directly if it is under 3V ig

kutuptilkisi

imo it is safer than messing with power suply directly

mick0604

Yea exactly

mick0604

That was more what I had in mind from the start

kutuptilkisi

Also for the thing you asked in title

kutuptilkisi

I would do a system where a script executed when rpi boots and script checks whatever it should have been on or off

kutuptilkisi

But there is even a safer way

kutuptilkisi

This thing has both SIGNAL ON-CONTACT and SIGNAL OFF-CONTACT

kutuptilkisi

I did a wireless remote for cameras using ESP32 with this thing where when ESP32 shut downs and power goes out power-off and common cable contacts which makes electricity go and open cameras (since it is safer than letting them turn off)

kutuptilkisi

You can check out, it is fairly cheap and easy to use. Has 3 cable screw place, NORMALLY ON, COMMON, NORMALLY OFF. NORMALLY ON means when signal is sent, this cable will no longer contact with COMMON cable

kutuptilkisi

and on other hand it is reverse

kutuptilkisi

it is normally off and doesn't contact COMMON, when signal is sent it now contacts COMMON

mick0604

The only thing I can really think of is I think it’s 2 pins instead of 3 that trigger the power button maybe I’m just overthinking it though

mick0604

I’m a little new to a lot of this stuff so I’m trying to make sense of it

kutuptilkisi

what was that for?

k9t33n

the bot? it's for ok's site because otherwise the links are broken

k9t33n

<#1047463526043746304> is logged to a site online so people can Google it and solve the same problem in one of these threads. if you don't have a space after links for some reason they become broken

mick0604

Also I wouldn’t of minded providing information if you just asked instead of giving me an extremely vague response at the time

mick0604

Thank you

oops.se

That is a isolated input, so it is safe to use TTL, no need for relays

mick0604

Realized my mistake sorry abt that

oops.se

Ok if that is your attitude...

mick0604

Look don’t get me wrong I appreciate the help and all i just felt like if would have been easier if you were more direct than just saying “probably”. It’s not me trying to be rude

k9t33n

let's both take that as a learning opportunity

jannik44

yea because it cant know otherwiese where the link starts and where it ends

k9t33n

makes sense