Hi,
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);_
_ delay(1000);_
_ for(i = 0; i < 4; i++) digitalWrite(relayPin,LOW);
delay(1000);*_
}
Thank you for your answers
