Electronic – Relay controlling another relay – surge noise

relaysolenoid-valve

I'm working on a project that uses Arduino Nano to control 1A relays, which in turn control electrical solenoids in a car. This is for controlling the HVAC air flows in a dash, so my challenge is to control the vacuum signal solenoids. The project is built and tests fine on the desk. Nano controls the 1A signal relays with ULN2803A chip no problem, no hiccups. But when I connect to my test rig which has the solenoids from the car, the Nano keeps resetting as soon as a car solenoid releases. It sure looks like voltage surges to me, getting past my filters and overwhelming the LM2940-12 power regulators I'm using. No data to prove that though. The capacitors in the design are all 100V rated. So, my question is "Is it better to add more filtering (capacitor?) to my voltage supplies, or add individual flyback diodes for each solenoid being controlled? If the answer is "more capacitor", then should I look for higher voltage rating? The solenoids are SOL1 and SOL2 on the right.
Initial search doesn't show this problem of resetting the controller, but did learn some things from the TE paper about relay surge supression. Depending on the answer from above, I might do some redesign to include a Zener diode, or resistor, for each solenoid control.
I have tried adding a IN5404 (400V, 3A) diode from the general GND to +12V power on the pin 30 side of the 1A control relays. This caused the ULN2803A to fry an output pin within 2 seconds of that relay activating!

Added pin 30 note

Top view of board

Bottom view of board

Best Answer

The relay and solenoid counter EMF voltage on the coil and contacts needs to be shunted with reverse polarity diodes across the contacts. The diode needs to be able to handle to load current for the transient duration during turn off.

Then the loop area of high current needs to be minimized by pairing the wires or routing the power wire close to the chassis ground away from the control wires at right angles or shielded by chassis ground to reduce radiated noise coupling.