![]() | ![]() | ![]() |
| | |||||||
| 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? |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| 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? | |
| |
| | (permalink) |
| By the way, I have a 1N4001 diode around each relay coil. | |
| |
| | (permalink) |
| 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. | |
| |
| | (permalink) |
| I mean, this is a supply problem. I never use same supply for PIC and another circuits. Apply an independent 78L05 for PIC. | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| MOSFETs have intrinsic diodes inside of them which protect against the induced reverse voltage, in addition to being better switches. | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| 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. | |
| |