one more relay question
firealarmfreak
Posts: 105
I am connecting a relay from pin7 on the board of education and pin 8. I have it conencted through a transister and it works fine however i was told you should use a protection diode to protect damage to the BOE. It seems to be working fine now but, Is this true? if so could someone explain where the diode is supposed to be conencted cuz im confused.
Thanks.
Chris.
Thanks.
Chris.
Comments
The diode should be placed in parallel with·the coil, "reverse-biased". Meaning Cathode (the 'line') on the coil pin on +5, and the Anode (the 'triangle') on the other pin of the coil. This gives the current spike somewhere to go besides destroying the BS2 I/O pin.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
I am using the I/O pin to activate a transister and then the tranistser activates the relay coil like you said too do. But do i also need a protection diode to prevent damage to the BOE? if so where do i connect it.?
Chris.
Chris.
You can also hook up two batteries "in parallel" -- plus to plus, negative to negative. This way the voltage stays at 1.5 volts, but you get twice the current.
I'm belaboring this point because it's critically important and can come up A LOT. When I say "hook a diode up in parallel with a coil", that's a completely unambiguous statement.
So, I'm assuming you have one pin of your coil tied to +5, and the other pin of the coil tied to the collector of the transistor. To protect the transistor from the "reverse surge of current generated by the coil's collapsing magnetic field" you place the Cathode pin of the diode on the pin of your coil tied to +5, and the Anode pin of the diode on the pin of the coil tied to the collector of the transistor. There's LOTS of examples in the "Interfacing" Nuts&Volts article.
Almost any diode will work for this -- 1n4001 is good. The current surge is quite small and short, but it can generate destructive voltages if not given somewhere to go.
Chris.
Capacitors can be viewed in the same plumbing model, but act as water towers. The smaller the capacitance, the smaller the piple going up the tower, and the larger the charge capacity, the bigger the "bulb".