user18905: How do I connect a SPDT relay to an Arduino?
It's a DC 5V Coil 6 Pin relay and ultimately what I want to do is have the Arduino trigger the relay to allow voltage to pass through.
I couldn't find a data sheet, but apparently this is the layout...
----------------------------------
|....1......2..............3.....|
|................................|
|....4......5..............6.....|
----------------------------------

2 and 5 are the 5v relay coil
3 and 6 are shorted together
3 and 1 are normally closed
3 and 4 are normally open



user7642: You can use this connection diagram with your relay

6 pin Relay pin out

Code
int Relay = 8;

void setup()
{
  pinMode(Relay, OUTPUT); 
}

void loop()
{
      digitalWrite(Relay, HIGH);  // turn on relay
      delay(2000);
      digitalWrite(Relay, LOW);   // turn off relay
      delay(2000);
}

First check your relay with multi meter then find the Coil, Com, NO and NC points for correct connection.
Hope this will help you.

18905: <p>How do I connect a SPDT relay to an Arduino?</p>

<p>It's <a href="http://rads.stackoverflow.com/amzn/click/B008MPK0VE" rel="nofollow noreferrer">a DC 5V Coil 6 Pin relay</a> and ultimately what I want to do is have the Arduino trigger the relay to allow voltage to pass through.</p>

<p>I couldn't find a data sheet, but apparently this is the layout...</p>

<pre><code>----------------------------------
|....1......2..............3.....|
|................................|
|....4......5..............6.....|
----------------------------------

2 and 5 are the 5v relay coil
3 and 6 are shorted together
3 and 1 are normally closed
3 and 4 are normally open
</code></pre>

<p><a href="https://i.stack.imgur.com/Mkb94.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mkb94.png" alt="enter image description here"></a></p>
 7642: <p>You can use this connection diagram with your relay</p>

<p><a href="https://i.stack.imgur.com/GR4cx.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GR4cx.jpg" alt="enter image description here"></a></p>

<p><strong>6 pin Relay pin out</strong></p>

<p><a href="https://i.stack.imgur.com/eywAE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eywAE.png" alt="enter image description here"></a></p>

<p><strong>Code</strong></p>

<pre><code>int Relay = 8;

void setup()
{
  pinMode(Relay, OUTPUT); 
}

void loop()
{
      digitalWrite(Relay, HIGH);  // turn on relay
      delay(2000);
      digitalWrite(Relay, LOW);   // turn off relay
      delay(2000);
}
</code></pre>

<p>First check your relay with multi meter then find the Coil, Com, NO and NC points for correct connection.
Hope this will help you.</p>
