Electronic – arduino – How to safely connect both Arduino and a 120V 10A circuit

arduinorelaysafety

I'm building a thermostat, and the idea is to have it fire one of two 120V 10A circuits (one to heat, one to cool). I have two of these modules for the relay and I understand how to connect both of them.


Here is a picture directly from the site I purchased it from:

Relay


However, I still have a couple of questions:

  1. Is it safe to connect from an Arduino pin directly to the signal pin on this block or is there some way I should be 'protecting' the Arduino?
  2. I eventually want to put this whole project in a single box and hopefully only have one power cord going to it. What's the safest way to power both the Arduino and the 120V 10A circuits (note that only one of the 120V 10A circuits would ever be on at a given time;never simultaneously)?

Best Answer

As Kevin commented, you can connect them to an Arduino directly providing they're using the same logic voltage. There's no harm in connecting the Arduino directly to the relay control, as the control will be isolated from the rest of the relay. Theoretically, you could pass a high enough current to cause the gas inside the relay to ionise and cause electrical arcs, but at that point I'd be worried for your safety, not the Arduino's. Basically, as long as you're careful when dealing with high currents, then you and your Arduino will be fine.

EDIT: In response to question 2, I doubt you could use just one power cord - you would need one connected to a 120V, 5A (600W) source, and one to a low current one. The exception to this would be if you used a modified ATX Power Supply - this would supply 600W (and so could be transformed to the correct voltage), and also has 5V logic lines which could power an Arduino - this has been done successfully in the RepRap 3D Printer.