Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: BANE on July 03, 2008, 05:23:12 PM
-
Can an unprotected relay circuit damage Microcontroller? If so, then I'm screwed!! I just made a relay circuit to control the power to the servos and sequencer on my biped. However, I did have the right diode handly and didn't include it in my circuit because it was a 5v relay and i had it a NPN transistor in there. About 30 min of using my biped my microcontroller started restarting like crazy! I check to see if anything was shorting it out but everythings is fine. ???
Bane
-
yep Back EMF is an issue
http://www.teachers.ash.org.au/jfuller/test2/relaysB.htm
-
Can Back EMF get past a NPN transistor though? (I'm still trying to convince myself that I'm not screwed!) If that did happen, is there a componet that can be replaced or something?
:'( :'( :'( :'( I liked my Atom 28 pin too!
Bane
-
check if your MC board is still good - it probably is
always use a diode man!
-
i just took the chip out and ran a simple test which it passed, then put it back in and every thing works fine......... :D :D......... ??? ???
Does the magnetic field wear off and everythings fine?
Bane
-
What happens is when you the relay coil gets voltage some power is stored magnetically and it releases that power out very fast once the coil gets no voltage.
What happens is that power is release several times larger in a very short amount of time. From a test I did in school I could see that a 9V battery powering up a coil had a back EMF of like 110V. If you don't use the protection diode that 110V for a fraction of a sec can fry your microcontroller.
-
Thanks, i just learned something new. Is there a special type of diode or can i use one from like an H-bridge or something? Its a 5v relay controlled by a 9v bat after a 5v regulator.
Bane
-
regular diode that can fits your power supply on your circuit
all a diode does is make sure electricity flows one way only ( away from your MC and not towards it) , lol
-
all a diode does is make sure electricity flows one way only ( away from your MC and not towards it) , lol
Pos and Neg going to relay. White line on diode pointing towards Neg.......right?
-
the side with the line on it blocks positive current from going in that way ( allowing only negative )
this might interest you
http://www.powerdesigners.com/InfoWeb/design_center/articles/Diodes/diodes.shtm
-
Can Back EMF get past a NPN transistor though?
Nope your microcontroller is fine.
The back EMF could fry your MOSFET, however. So you may need a diode with it, unless the built in diode is sufficient enough.