How to wire up and trigger this SPDT relay? 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
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.