This is a common problem with relays. The relay coil acts like an inductor when power is removed, and it sends a spike of power back into your circuit. And let's say you are originally putting 5V through the coil. When the power is removed, in some cases, the coil could send a spike of any level, even in the range of 400V, back into your circuit. And the problems cause by that are many, from burning out circuitry to tremendous electromagnetic interference.
I have seen spikes that oscillate between hundreds of volts positive and negative. Like below:
The challenge is to eliminate the problem in the cheapest way, with as few components as possible. Let's just say space and money are scarce for this project. And the relay is connected to very sensitive circuitry.
Use the relay drawing here to draw your ideas.
The relay drawing here has NC & NO contacts.
Cabe








