Simple relay circuit help

Do you have a technical question that doesn't really fit a specific console? Want some general info on electronics, hacking, making cookies, etc? Here's the place to ask! Go nuts.

Moderator: Moderators

Post Reply
skazz
Posts: 2
Joined: Wed Jan 28, 2009 1:55 am

Simple relay circuit help

Post by skazz »

I have a DPDT latching relay, and I'm wondering about the simplest way to throw it with a SPST switch. Any ideas would be very appreciated.
XCVG
Senior Member
Posts: 1947
Joined: Sun Dec 21, 2008 9:10 pm
Location: Canada

Re: Simple relay circuit help

Post by XCVG »

Like this, I think:

Image
Gordon1
Posts: 275
Joined: Wed Sep 12, 2007 4:47 pm
Location: Canada

Re: Simple relay circuit help

Post by Gordon1 »

That's ok, but in this case I think it would be better to switch the negative.
nitro2k01
Posts: 651
Joined: Tue Dec 19, 2006 12:41 pm

Re: Simple relay circuit help

Post by nitro2k01 »

Gordon1 wrote:That's ok, but in this case I think it would be better to switch the negative.
Why? In this very simple circuit, it makes absolutely no difference whatsoever.
My blog
ASM Retro <- Gameboy Classic Backlight

Being the sadistic bastard I am, I have covered Frog's left eye with a Santa hat.

Last edited by nitro2k01 tomorrow, 1:48 pm; edited 1 time in total
XCVG
Senior Member
Posts: 1947
Joined: Sun Dec 21, 2008 9:10 pm
Location: Canada

Re: Simple relay circuit help

Post by XCVG »

Gordon1 wrote:That's ok, but in this case I think it would be better to switch the negative.
With such a small load it doesn't really matter.
skazz
Posts: 2
Joined: Wed Jan 28, 2009 1:55 am

Re: Simple relay circuit help

Post by skazz »

Thanks for the diagram. Someone showed me an elegant solution with a couple diodes, so it looks like it's covered for now. Thanks guys.
XCVG
Senior Member
Posts: 1947
Joined: Sun Dec 21, 2008 9:10 pm
Location: Canada

Re: Simple relay circuit help

Post by XCVG »

skazz wrote:Thanks for the diagram. Someone showed me an elegant solution with a couple diodes, so it looks like it's covered for now. Thanks guys.
Diodes? Where would they go in the circuit?
timmeh87
Senior Member
Posts: 3047
Joined: Mon Nov 14, 2005 10:19 pm
Location: Ontario, Canada

Re: Simple relay circuit help

Post by timmeh87 »

Relays give you a high voltage spike when you turn them off, it will fry any sensitive electronics without the diode.
Image

"Linux is only free if your time is worthless"
XCVG
Senior Member
Posts: 1947
Joined: Sun Dec 21, 2008 9:10 pm
Location: Canada

Re: Simple relay circuit help

Post by XCVG »

Ah. Never knew that. Makes sense though.
Mario
Posts: 1383
Joined: Mon Mar 05, 2007 7:20 pm
Location: Sunny California

Re: Simple relay circuit help

Post by Mario »

So where do the diodes go? I had an auto A/V switcher in my portable that turned the screen on and off when I plugged in the AV cable. The N64 would reset whenever I unplugged it (turning the screen back on, the relay off). Where do the diodes go?
Image
timmeh87
Senior Member
Posts: 3047
Joined: Mon Nov 14, 2005 10:19 pm
Location: Ontario, Canada

Re: Simple relay circuit help

Post by timmeh87 »

jfgi :roll:

put it across the relay coil so that it normally would do nothing but it lets the inductance drain through the diode when you switch it off. The associated discharge goes against the normal flow of current.
Image

"Linux is only free if your time is worthless"
nitro2k01
Posts: 651
Joined: Tue Dec 19, 2006 12:41 pm

Re: Simple relay circuit help

Post by nitro2k01 »

For clarity:
Image
The diode alongside the relay coil is necessary to avoid sparks and/or interference. The one between the switch and the relay is optional, but adds more protection. The diodes should be 1n400x (1n4001, 1n4002, 1n4003, 1n4004 should all work)
If you're using a 9V battery to power the relay, and nothing but the relay, you only need the first diode.
My blog
ASM Retro <- Gameboy Classic Backlight

Being the sadistic bastard I am, I have covered Frog's left eye with a Santa hat.

Last edited by nitro2k01 tomorrow, 1:48 pm; edited 1 time in total
Post Reply