I'm testing "stressing" a proyect which are a series of relays that are turning on/off 220v devices. Not need to analize the code, (or to show details) because i think that is a electrical problem.
Relevant information:
- The promini is powered by 12v 300ma trough tl7805 regulator to the Vcc in
- 6 opto relays powered with external PSU.
- the code turns on/off relays feeding AC devices: fans, lights, etc.
I have a 220v ac fan motor connected to one relay. Sometimes, when the motor starts or ends, the 16x2 display i2c protocol colapses and later, arduino crashes.
I know that is a common issue this, i read a lot of makers facing this problem.
I read that snubbers can prevent spikes of rapid trasient discharges making the arduino inestable. But, i really dont know how to approach this solution.
Where to insert the "filters / snubbers", in the motor side or in paralel with the relays contacts?
Perhaps the issue is the psu?
Where to start ?
This is the ac fan:

Any help regarding to this topic, i would appreciate.
Gabriel