Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 5th June 2004, 07:05 PM   (permalink)
Default Relay spike voltage

I have a ULN2803 darlington array switching 6 small relays (5V, 72ohm coil) via a PIC microcontroller. Befre I knew about the induction voltage spike caused by the relay coil the PIC would get reset every time a relay switched open. I got some advice to put a diode in backwards around the coil of each relay. I did that and it helped. However, occasionally the PIC is still being reset when a relay switches. Not every time, just every now and then. Do I need a larger diode or what? I thought the ULN2803 was supposed to provide some protection against voltage spikes?
cdr is offline  
Old 5th June 2004, 07:16 PM   (permalink)
Default

By the way, I have a 1N4001 diode around each relay coil.
cdr is offline  
Old 5th June 2004, 07:49 PM   (permalink)
Default

The reversed bias diode is only good for induction current produced by the field collapse on the coil. There can be other induced transients caused by arcing of the contacts. You don't specify load which is important. High voltage loads ( 110ac< ) can produce major arcing which can feed back ( control line close to load line ) especially on inductive loads like a motor. The same arcing can cause minute spikes in the VCC that the PIC uses.

If the switched V from the relays is on the same power as the PIC feed check your power supply filtering and make sure you have enough bypass caps as close to the PIC as possible. If the load is a hi V on a different line buy a "quencharc" for $5 a pop or make one for each load from a .01 cap , like a Sprague orange drop and a 47Ohm 1/2 watt resistor ( in series ) . The V rating on the cap must be at least 2x the supply to load Ex. at 110VAC the cap should be rated @ 220 V or better. It connects directly in parallel with the load.
TillEulenspiegel is offline  
Old 5th June 2004, 08:15 PM   (permalink)
Default

I mean, this is a supply problem. I never use same supply for PIC and another circuits. Apply an independent 78L05 for PIC.
Sebi is offline  
Old 6th June 2004, 12:44 AM   (permalink)
Default

Quote:
Originally Posted by cdr
By the way, I have a 1N4001 diode around each relay coil.
ULN2803 has built-in diodes for this purpose. Just connect pin 10 to the +5v that powers your relays.
Roff is offline  
Old 7th June 2004, 02:21 AM   (permalink)
Default

MOSFETs have intrinsic diodes inside of them which protect against the induced reverse voltage, in addition to being better switches.
Oznog is offline  
Old 7th June 2004, 03:49 AM   (permalink)
Default

Quote:
Originally Posted by Oznog
MOSFETs have intrinsic diodes inside of them which protect against the induced reverse voltage, in addition to being better switches.
The intrinsic diode will not protect a MOSFET from the flyback voltage that is generated when an inductor's current is interrupted. The diode must be across the inductor. A diode from drain to source of the MOSFET provides no protection.
Roff is offline  
Old 9th June 2004, 03:18 AM   (permalink)
Default

I redesigned the circuit and seperated the PIC power from the relay driver power, I'll let you know how it does when the board comes back from the proto shop. Also, I took out the 1N4001 diode and went with the straight ULN2803.
cdr is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 12:30 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker