Microcontroller freezes randomly when switching on a relay (snubber inside)

Finally I solved the issue changing the way I connected the snubber.

Instead of connecting it like this:
snubber1

I connected it like that:
AC SNUBBER

Thank you all for your help, very appreciated.

1 Like