My MCU Resets while switching a 5v Relay .. #2

dl324

Joined Mar 30, 2015
18,216
Welcome to AAC!

Apparently you hijacked a thread and were given your own without any context.

Do you have adequate supply decoupling and a snubber diode on the relay coil?
 

crutschow

Joined Mar 14, 2008
38,316
Such problems are usually the result of:
  • poor ground layout
  • poor power decoupling
  • lack of a relay snubber diode.
Any of those seem likely?
 
Top