Electronic – Do I need a flyback diode with an automotive relay

diodesprotectionrelay

I have two relays to convert +12 volt circuits to "ground" inputs into a fuel injection ECU.
If I connect the relay coil ground to the same ground as the "source" will I need to install a diode to prevent possible fly-back to the ECU?

Here is the diagram:

enter image description here

Best Answer

Sometimes, relay coils are used together with switches, and no freewheeling (flyback) diodes are used. This will work, but every time you open the switch contacts, an arc will burn for a short time, which shortens the lifetime of your switches.

With a transistor output driving a relay, a freewheeling diode is absolutely necessary, because the voltage spike will destroy the transistor.

When using a switch to turn on/off a relay, omitting the diode will work, but your switch will be happier when you use a diode (one individual diode for each relay). The best place for the diode is right at the relay, Cathode at input from switch ("86"; in case you switch the + end, which is indicated in your diagram) and anode at GND ("85").

Good diodes for this purpose are those of the fast switching type, e.g. a 1 A / >=50 V Schottky barrier. A SB160 or SB1100 or similar will likely be o.k. Note that on automotive supply rails, there are often high voltage / high energy spikes caused by turning off other inductive loads. Therefore allowing some safety margin and using a 100 V diode won't hurt. Those parts are cheap anyway.

Note: You say If I connect the relay coil ground to the same ground as the "source"... This will not decide if you need the diodes or not. Actually, if you were not using the same ground for switch, battery and the relays, no current would flow at all. Including the battery, switches and return paths (GND) into your diagram makes things clearer (even though it looks a bit messy):

complete diagram

Please make sure that this diagram is correct (relay coil between 86/85, common contact at 30, NO at 87, NC at 87a). Also confirm that the GND (chassis) connections are o.k. like drawn here.

You say you are worried about damage to the ECU. Since the battery is not a perfect voltage source, the flyback pulse will lift the positive end of the battery somewhat, and there may be a spike. However, in a car, there are loads much worse than a relay, causing much higher spikes. Any good automotive gadget should tolerate these spikes.

Some background info:

You need the flyback diodes because at the instant you open the switch, a relay's inductance will try to maintain the current. Adding a diode will create an easy path for this current to circulate until the relay's inductance has lost all its energy.

Charging the inductance from the battery and via the switch: charging the relay's inductance

Discharging the inductance via the diode: discharging the relay's inductance

Note how the direction of the current in the relay itself does not change and satisfies the rule that an inductance does not allow a rapid discontinuity of its current.