user8761: I have an Arduino Mega and a 4-channel relay module.
This is the relay module.
When the Arduino digital output is LOW, the relay is energized.  When the Arduino output is HIGH, the relay coil is de-energized. 
How can I fix this?

user19667: If you read the documentation or watch/read any tutorials on the mechanical relay you are using you will learn that LOW is active and HIGH is inactive for these devices. There is no way to change that behavior, that is how they are built. (Well, you can, but it's not worth the effort)
This design is intentional to prevent relay activation on power-up or system reset. And be sure to put this code in your setup routine to ensure proper system initialization.
digitalWrite(Relay, HIGH);
pinMode(Relay, OUTPUT);

Where Relay is the pin variable you defined for your relay.
Just code your routine using LOW to activate the relay when necessary.
Try this tutorial 4 channel relay tutorial

user521: That's how they're designed to work energized is LOW de-energized is HIGH you just need to take this into account when writing your Arduino code

8761: <p>I have an Arduino Mega and a 4-channel relay module.</p>

<p>This is the <a href="http://rads.stackoverflow.com/amzn/click/B0057OC5O8" rel="nofollow">relay</a> module.</p>

<p>When the Arduino digital output is LOW, the relay is energized.  When the Arduino output is HIGH, the relay coil is de-energized. </p>

<p>How can I fix this?</p>
 19667: <p>If you read the documentation or watch/read any tutorials on the mechanical relay you are using you will learn that LOW is active and HIGH is inactive for these devices. There is no way to change that behavior, that is how they are built. (Well, you can, but it's not worth the effort)</p>

<p>This design is intentional to prevent relay activation on power-up or system reset. And be sure to put this code in your setup routine to ensure proper system initialization.</p>

<pre><code>digitalWrite(Relay, HIGH);
pinMode(Relay, OUTPUT);
</code></pre>

<p>Where Relay is the pin variable you defined for your relay.</p>

<p>Just code your routine using LOW to activate the relay when necessary.</p>

<p>Try this tutorial <a href="http://arduinobasics.blogspot.com/2014/09/relay-module.html" rel="nofollow">4 channel relay tutorial</a></p>
 521: <p>That's how they're designed to work energized is LOW de-energized is HIGH you just need to take this into account when writing your Arduino code</p>
