relay shield V1.3 not working

i have a relay shield V1.3 that i’m mounting directly on top of an arduino. i tried to operate a simple blink code to control a led using the relays.
but nothing happens. i used a multimeter to verify that the digital input is really changing and IT IS INDEED. but the relay is not closing.
so is my shield burned or what?

Here is the code:

byte relayPin[4] = {2,3,4,5};

//D2 → RELAY1
//D3 → RELAY2
//D4 → RELAY3
//D5 → RELAY4

void setup(){
for(int i = 0; i < 4; i++) pinMode(relayPin*,OUTPUT);*

// an sample to switch the 4 relays

void loop(){

  • int i;*
    _ for(i = 0; i < 4; i++) digitalWrite(relayPin*,HIGH);_
    _ for(i = 0; i < 4; i++) digitalWrite(relayPin,LOW);

Thank you for your answers

i solved my problem. the relay shield was drawing too much current from the arduino. so when i supplied the shield with an external power supply it worked normally.


Forget my questions.