
I am driving a couple of relays from an ESP32, some combination of switching the two relays gives the above tranisent on the ESP32 power lines which is enough to cause a brown-out. The whole thing is driven from an ~18v battery (or bench PSU) with buck converters to give 12v for the relays and 3.3v for the ESP. The relays have flyback diodes and 100uF capacitors across them and are switched from the ESP by low-side BJTs. I've tried a range of capacitors on the input to the ESP including things like 220uF electrolytic plus a 100nF ceramic, etc but this keeps happening.
Switching one or other relay independently is okay but some combination of switching them both close together, there is always about 200mS delay between switching them off causes this. it was all working fine on the bench but when I got it into the enclosure this started happening and now it happens on the bench too. Any ideas as to how I suppress this?
