Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Relay question (adding relay to Oscars LED driver board) - it works!  (Read 6186 times)

0 Members and 1 Guest are viewing this topic.

RandyT

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7014
  • Last login:Yesterday at 02:16:03 pm
  • Friends don't let friends hack keyboards.
    • GroovyGameGear.com
Re: Relay question (adding a relay to Oscar's LED driver board)
« Reply #40 on: June 16, 2005, 08:19:48 am »
Could it be the transistor I'm using? I just used what I had at hand (a PNP to 92 transistor 2N3906) which is different to the one's that Oscar uses in the LED driver circuit, but he does say that any general purpose PNP transistor should do.
What happens if I take the 1k resistor out of the equation?

The relay doesn't take much power to actuate it, so I don't think it's the transistor.  The 1k resistor should stay in place as well.

About the only thing I can think of to do at this point is swapping the A and B connections.  I know a coil doesn't care about polarity, but the diode across the contacts throws in something different that I'm not fully versed in.  The way it's wired right now, the diode appears that it would be conducting, which might be creating a short circuit.  If you wire it the other way, current should only be able to flow through the coil.

Remember, "AS IS" info :)

RandyT
« Last Edit: June 16, 2005, 03:15:33 pm by RandyT »

JoyMonkey

  • Voodoo Wiki Master . . .
  • Wiki Master
  • Trade Count: (+5)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2899
  • Last login:June 16, 2025, 09:16:27 pm
  • Candy is Dandy but Liquor is Quicker
    • JoyMonkey.com
Re: Relay question (adding a relay to Oscar's LED driver board)
« Reply #41 on: June 16, 2005, 08:24:22 am »
I'll try flipping the diode around tonight. Thanks!

(I wish I made this thing on a breadboard first)

JoyMonkey

  • Voodoo Wiki Master . . .
  • Wiki Master
  • Trade Count: (+5)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2899
  • Last login:June 16, 2025, 09:16:27 pm
  • Candy is Dandy but Liquor is Quicker
    • JoyMonkey.com
Re: Relay question (adding a relay to Oscar's LED driver board)
« Reply #42 on: June 16, 2005, 05:42:04 pm »
I removed the diode and the relay is working great now!
I haven't had the chance to put it back on in the opposite position, but do I really need it?

RandyT

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7014
  • Last login:Yesterday at 02:16:03 pm
  • Friends don't let friends hack keyboards.
    • GroovyGameGear.com
Re: Relay question (adding a relay to Oscar's LED driver board)
« Reply #43 on: June 16, 2005, 07:33:48 pm »
I removed the diode and the relay is working great now!
I haven't had the chance to put it back on in the opposite position, but do I really need it?

No clue. You probably want to ask the guy who designed the circuit ;)

I'm pretty sure it was there to protect the other circuitry from spikes and such.  I'd flip it around and put it back just in case.  It isn't huting anything by being there, you just had the polarity reversed..

RandyT


ShinAce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 152
  • Last login:January 16, 2007, 07:38:14 pm
  • Building the unbuildable since 2001
Re: Relay question (adding a relay to Oscar's LED driver board)
« Reply #44 on: June 16, 2005, 11:07:53 pm »
Flip it around, make sure it works in that position, and leave it there.
The coil is an electro-magnet, and having a current through it "energizes" it, or creates a magnetic field. When you suddenly stop the current, the field collapses, creating a current. This back EMF consists of a big single spike. The diode just acts as a mini surge suppresor.
An ounce of image is worth a pound of performance.

RandyT

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7014
  • Last login:Yesterday at 02:16:03 pm
  • Friends don't let friends hack keyboards.
    • GroovyGameGear.com
Re: Relay question (adding a relay to Oscar's LED driver board)
« Reply #45 on: June 17, 2005, 01:33:52 pm »
Flip it around, make sure it works in that position, and leave it there.
The coil is an electro-magnet, and having a current through it "energizes" it, or creates a magnetic field. When you suddenly stop the current, the field collapses, creating a current. This back EMF consists of a big single spike. The diode just acts as a mini surge suppresor.

ShinAce,

Since you are an EE type, could you please tell me how that diode in parallel with the coil prevents back feed?  I would have thought that to do that, it would have to have been in series, not parallel (which is why I said to ask the guy who designed the circuit)?

Just hoping to learn something from this one myself.  :)

Thanks,
RandyT
« Last Edit: June 17, 2005, 02:10:30 pm by RandyT »

ShinAce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 152
  • Last login:January 16, 2007, 07:38:14 pm
  • Building the unbuildable since 2001
Re: Relay question (adding a relay to Oscar's LED driver board)
« Reply #46 on: June 17, 2005, 06:59:38 pm »
If the diode is in parallel, we have 2 possible cases.
1) Current is flowing through the relay coil in the proper direction(with respect to the diode, since the relay has no sense of direction), and the diode is basically not even connected.
2) Power is interrupted to the coil, yet it wants to get rid of its stored energy really quickly. In this case, the diode acts as a resistor(nearly a short circuit, actually), absorbing the load.

If the diode were in series, it would allow the relay to work properly. But when the power is turned off, I don't know what will happen. I'm guessing here, but my gut feeling is that it will PREVENT surges, instead of absorbing them. Which sounds great, but that energy still needs to go somewhere, and you're not letting it do that.

BTW, in case 1), if the diode is wired backwards, the relay will not engage, and you are basically faced with a short circuit scenario. The diode will not enjoy this.
However, I've used diodes as temperature sensors, and took a lighter to them when testing. At 200 degress celsius(internal temp of the diode), the diodes will still work. I'm sure you've heard that passing power through a diode will cause about a 1/2 volt loss. That loss is temperature dependant. At higher temperatures, the voltage drop becomes lower. That's right, diodes work better when they're hot.
An ounce of image is worth a pound of performance.

JoyMonkey

  • Voodoo Wiki Master . . .
  • Wiki Master
  • Trade Count: (+5)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2899
  • Last login:June 16, 2025, 09:16:27 pm
  • Candy is Dandy but Liquor is Quicker
    • JoyMonkey.com
Re: Relay question (adding a relay to Oscar's LED driver board)
« Reply #47 on: June 17, 2005, 07:08:23 pm »
I just flipped the diode around and sure enough it works perfectly now! Even with the resistor and LED included! Yaaayyy!

Thanks Randy, Popcorrin and ShinAce for holding my hand through this- couldn't have done a thing without you!