I just bought a relay for Arduino and following the tutorial code here:
http://www.dfrobot.com/wiki/index.php?title=Relay_Module_%28Arduino_Compatible%29_%28SKU:_DFR0017%29//Arduino Sample Code
//www.DFRobot.com
//Last modified on 14th March 2012 by HJS
//This code has been updated to work with the sample code provided in the Wiki
int Relay = 3;
void setup()
{
pinMode(13, OUTPUT); //Set Pin13 as output
digitalWrite(13, HIGH); //Set Pin13 High
pinMode(Relay, OUTPUT); //Set Pin3 as output
}
void loop()
{
digitalWrite(Relay, HIGH); //Turn off relay
delay(2000);
}
But it is only flashing the led and there is a click sound. What happen with my relay? broken?