# uno hangs on switching the relay

**URL:** <https://forum.arduino.cc/t/uno-hangs-on-switching-the-relay/127569>\
**Category:** Motors, Mechanics, Power and CNC\
**Created:** [November 2, 2012, 11:37am UTC](https://forum.arduino.cc/t/uno-hangs-on-switching-the-relay/127569 "2012-11-02T11:37:25Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![dc42](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/dc42/32/214539_2.png) [@dc42](https://forum.arduino.cc/u/dc42)\
**Post date:** [November 3, 2012, 8:55am UTC](https://forum.arduino.cc/t/uno-hangs-on-switching-the-relay/127569/5 "2012-11-03T08:55:19Z")

</div>

> fca:  
> So its the big relay(with no 230v power presence) just by switching does any electric noise dirty that hangs the arduino ? some times it doesn't hang but the lcd gets strange characters ...

Put a diode in parallel with the coil of the big relay, right at the relay terminals, cathode to the positive side, anode to the negative side. Type 1N400x (where x = any of 1 thru 7) will do.

---

_[View the full topic](https://forum.arduino.cc/t/uno-hangs-on-switching-the-relay/127569)._
