Latching push button to control two relays in different ways

Thread Starter

theSpicyOrange

Joined Nov 11, 2019
11
A little background for my project. I'm putting a small form factor PC into the shell of an old Gamecube shell. I would like the original buttons to perform their original uses.

The gamecube power button is a latching button and I need it to do two thing. First, I need it to momentarily power a relay that will connect the power button pins on the motherboard, this should only happen on the button press not when its pressed again turn it off (low to high not high to low). Second, the button also needs to control a second relay that will connect two pins on an auxiliary power supply that powers the GPU and its riser. The second relay can just turn on and off with the button. I have 5v power from a usb header on the motherboard, it is stand by power too, so it supplies 5v even when the PC is off.

Thanks in advance for any help.
 

crutschow

Joined Mar 14, 2008
34,432
First, I need it to momentarily power a relay that will connect the power button pins on the motherboard, this should only happen on the button press not when its pressed again turn it off (low to high not high to low).
Sorry, I don't understand what you want the button to do (or not do) when it is pressed again(?).
 

Thread Starter

theSpicyOrange

Joined Nov 11, 2019
11
Forgive my crude schematic, but this what I'm going for, the box with the 'X' is what ever circuit is needed to turn on that relay for ~200 ms.
20200423_183019.jpg
 

Thread Starter

theSpicyOrange

Joined Nov 11, 2019
11
Sorry, I don't understand what you want the button to do (or not do) when it is pressed again(?).
While in the on (closed) position relay one should be powered and relay two should be briefly powered (~200 ms). While in the off (open) position both relays should not be powered.

I'm an ME student circuits are not my forte.
 

crutschow

Joined Mar 14, 2008
34,432
If the button is alternate action not momentary, the simple circuit below should do what you want;
The current through the relay coil (yellow trace) stays on for over 200ms after power is applied to the input (blue trace).
The pulse time is determined by the value of R1 and C1 (higher values give longer pulse).

1587687944201.png
 

Thread Starter

theSpicyOrange

Joined Nov 11, 2019
11
If the button is alternate action not momentary, the simple circuit below should do what you want;
The current through the relay coil (yellow trace) stays on for over 200ms after power is applied to the input (blue trace).
The pulse time is determined by the value of R1 and C1 (higher values give longer pulse).
I'm not sure I understand your schematic, the switch is alternate action it functions like s spst toggle switch. I just want one relay to act like the switch was momentary and the other to act just like the switch. I'm intended to use (and have) two of these 5v relays G6DN-1A-L DC5 if that help or changes anything.
 

crutschow

Joined Mar 14, 2008
34,432
I just noticed that the relay pulse time is actually only about 150ms, so C1 should be increased to 1μF or so, which will give a pulse width of a little more than 200ms.
 

Thread Starter

theSpicyOrange

Joined Nov 11, 2019
11
So, I made the circuit and it didn't work. It's almost definitely my fault. I changed the schematic from above to use what should be equivalent components, just through hole rather than smt. When I tested the circuit both relays cycled rapidly and repeatedly. I first thought that it was maybe because I used a polarized capacitor (is that a problem) but then I noticed that I missed the traces in my pcb design connected the coils of both relays (pictured below)
relay trace error.PNG relay trace fix.PNG
Left: error; Right: fix
Would that be the only issue with circuit? I'd love to not make a rev 4.

Thanks again for any help.
 
Top