Author Topic: Latching relay is causing Arduino reset  (Read 2630 times)

0 Members and 1 Guest are viewing this topic.

Offline aurmerTopic starter

  • Regular Contributor
  • *
  • Posts: 84
  • Country: us
  • Insert text here.
Latching relay is causing Arduino reset
« on: September 26, 2018, 06:09:42 pm »
Each time I latch this 12V relay, my Arduino Uno r3 restarts.

Allow me to illustrate.
- Arduino with a Relay Shield
- One of the 4 shield relays is switching the low side of my 12V relay.
- But in testing I realize that when there is no current flowing through the 12V relay, there is 12V on NET 1 (see illustration).

When the shield relay latches, for an instant, it connects 12V to GND and I think it is the cause of my restarting issue. (When I remove the 12V relay from the circuit, there is no restarting.)

Can someone suggest an additional component or a redesign to help solve this? I am inexperienced with relays, so I am not sure if there is an alternate type of relay that would suit me better.
If I just asked the wrong question, shame on me for asking before I was ready for help. Please be kind and direct me to a resource which will teach me the question I SHOULD be asking. Thank you.
 

Offline Fleetz

  • Regular Contributor
  • *
  • Posts: 60
  • Country: au
Re: Latching relay is causing Arduino reset
« Reply #1 on: September 26, 2018, 06:20:34 pm »
Try putting a back EMF diode across the relay coil to supress the large back EMF generated when it is switched on and off. It is mostly causing a spike on the Arduino supply line causing the reset.

Also make sure the supply feeding the relay is adequately decoupled.
 
The following users thanked this post: aurmer

Offline macboy

  • Super Contributor
  • ***
  • Posts: 2256
  • Country: ca
Re: Latching relay is causing Arduino reset
« Reply #2 on: September 26, 2018, 07:23:07 pm »
+1 on the back EMF diode, or an RC snubber (diode is easier).
+1 on decoupling on the relay supply (add an electrolytic cap near the relay).
Keep the relay's 12 V supply and return wires close together, preferably twisted together. This prevents them from becoming a big loop antenna to transmit EMF pulses during switching the relay on and off. The same goes for whatever high current load that relay is controlling.

You should not need to use a small relay to drive a larger relay, even if the larger relay is driven from a higher voltage, 12 V in your case. You can create a simple open-collector relay driver with any jelly bean NPN transistor (2N2222, 2N3904, etc) and one resistor.
 
The following users thanked this post: aurmer


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf