Main > Main Forum

on\off switch to power on pc ?

Pages: (1/3) > >>

shayvidas:

so i am wiring my pc to turn on and off with an external switch...
the thing is that my switch that is already bought and is in the control panel is an on\off switch (not a bounce switch...)
here it is >
http://www.12voltplanet.co.uk/user/products/large/ON-OFF_toggle_switch_LED_tip_1_with_icon.jpg

the thing is if i turn it on my computer turns on... then after around 3 seconds shuts itself off...
the only way to turn on the pc is to turn on the switch then imidiatly to turn it off... that turns on the pc normaly ...

i know i should have bought a bouncing switch.. but i didn't :( didn't had enough research i guess.. and everything is wired now..

is there a way i can make this switch that i have.. to just put it up and turn on the pc normaly ? (without having to imidiatly push it back down...)

thnx...


shay

DaOld Man:

You could wire a small capacitor in series with it to provide a pulse. Not sure what size capacitor you would need, but shouldn't take a very large one.
Turn switch on, capacitor charges providing a pulse to the PC. The only obstacle is discharging the capacitor when you turn the switch off, maybe a high resistor (10 megohm or such) wired with the capacitor so the capacitor can discharge through it?
If the switch is a SPDT you could wire it so the switch shorts the capacitor when you turn it off.

dkersten:

You could also flip it on then off again to make it act like a momentary switch, but this is a bandaid.  When you turn it on, it is "held down" and after 5 seconds just about every motherboard ever made will do a "hard off" when the power button is held for 5 seconds. 

Best to just get the right kind of switch. 




keilmillerjr:

Purchase a momentary switch of the same size hole. Most of those style switches have similar hole sizes. 3$ spent and problem solved.

IAmDotorg:


--- Quote from: shayvidas on August 21, 2014, 04:33:58 pm ---
the only way to turn on the pc is to turn on the switch then imidiatly to turn it off... that turns on the pc normaly ...

--- End quote ---

You have a few options if you want to use a switch like that:

- Find an older PC-AT style power supply, and hack in the power connectors. May be very hard, I doubt anyone has made them in 15 years. Older PCs had power switches. Newer ones use momentary switches and power controllers
- Set your PC (in the BIOS) to start after a power interruption, wire the switch to a relay and just cut the power. You lose graceful shutdowns, though, so you have to be careful. (That's why PCs use momentary switches, not toggle switches -- so the OS can shut down properly)
- Find someone who knows electronics to make you a circuit to do it. PC power supplies have an LED output and the momentary switch input. You need a simple logic circuit -- If the LED circuit is off, and the switch is on, pulse the momentary circuit. If the LED is on and the switch is off, pulse the momentary circuit. Otherwise, do nothing. Then you'd flip the switch on, the PC would see a button push. Flip it off, it'd get another one. Its probably only a couple bucks worth of parts to do something like that.
- Replace the toggle with a momentary toggle, so you just toggle it to turn on or off. The LED you'd wire into the PC.

Personally, I went without. My PC is set to power on after a power loss, and I have a "breaker" that disables all the power in the cabinet. But I just use its BIOS setting to power on the PC with USB input, so I just hit any of the CP buttons to turn it on. It hibernates on its own, or I can shut it down.

Pages: (1/3) > >>

Go to full version