All pins from Arduino UNO remain high and never get to the LOW state

I am currently using a relay bard. I do notice that pin 13 is being toggled every 1000 ms even after compiling the code below. Is this a defect? I am pretty new at Arduino. Can anyone help me?

/ Basic 4 Realy board connection

// Each relay is turned on for 2 seconds and then off.

// You can here them click as there state changes from off to on and on to

// off.

// You will also see the corresponding Red LED on the 4 Relay board

// light up when the relay is on.

// define names for the 4 Digital pins On the Arduino

// These data pins link to 4 Relay board pins IN1, IN2, IN3,

IN4

#define RELAY1 6

#define RELAY2 7

#define RELAY3 8

#define RELAY4 9

void setup()

{

// Initialise the Arduino data pins for OUTPUT

pinMode(RELAY1, OUTPUT);

pinMode(RELAY2, OUTPUT);

pinMode(RELAY3, OUTPUT);

pinMode(RELAY4, OUTPUT);

}

void loop()

{

digitalWrite(RELAY1,LOW); // Turns ON Relays 1

delay(2000); // Wait 2 seconds

digitalWrite(RELAY1,HIGH); // Turns Relay Off

digitalWrite(RELAY2,LOW); // Turns ON Relays 2

delay(2000); // Wait 2 seconds

digitalWrite(RELAY2,HIGH); // Turns Relay Off

digitalWrite(RELAY3,LOW); // Turns ON Relays 3

delay(2000); // Wait 2 seconds

digitalWrite(RELAY3,HIGH); // Turns Relay Off

digitalWrite(RELAY4,LOW); // Turns ON Relays 4

delay(2000); // Wait 2 seconds

digitalWrite(RELAY4,HIGH); // Turns Relay Off

Your

code

doesn't

compile.

Please remember when posting code to use code tags

Did you just compile it or did you hit the button to upload to the board?

Please read the forum rules about posting code and use code tags in the future.

Needed minor cleanup to compile, probably just paste error.

// Basic 4 Realy board connection
// Each relay is turned on for 2 seconds and then off.
// You can here them click as there state changes from off to on and on to
// off.
// You will also see the corresponding Red LED on the 4 Relay board
// light up when the relay is on.

//  define names for the 4 Digital pins On the Arduino
// These data pins link to 4 Relay board pins IN1, IN2, IN3, IN4
#define RELAY1  6
#define RELAY2  7
#define RELAY3  8
#define RELAY4  9

void setup()
{
  // Initialise the Arduino data pins for OUTPUT
  pinMode(RELAY1, OUTPUT);
  pinMode(RELAY2, OUTPUT);
  pinMode(RELAY3, OUTPUT);
  pinMode(RELAY4, OUTPUT);
}

void loop()
{
  digitalWrite(RELAY1, LOW);          // Turns ON Relays 1
  delay(2000);                                      // Wait 2 seconds
  digitalWrite(RELAY1, HIGH);         // Turns Relay Off

  digitalWrite(RELAY2, LOW);          // Turns ON Relays 2
  delay(2000);                                      // Wait 2 seconds
  digitalWrite(RELAY2, HIGH);         // Turns Relay Off

  digitalWrite(RELAY3, LOW);          // Turns ON Relays 3
  delay(2000);                                      // Wait 2 seconds
  digitalWrite(RELAY3, HIGH);         // Turns Relay Off

  digitalWrite(RELAY4, LOW);          // Turns ON Relays 4
  delay(2000);                                      // Wait 2 seconds
  digitalWrite(RELAY4, HIGH);         // Turns Relay Off
}

Nothing there to make 13 blink. Does sound like you compiled only and did not Upload.