Hi Daniel
with the following code i get the letters sent d e n o ay one second intervals but no relay switching take the delays out & relay 5 comes on and stays on. I thought I had declared relay address -1 it that example?.
byte relay_address=1;
void setup(){
Serial.begin(9600);
}
void loop(){
Serial.print(relay_address=1, BYTE); // send relay module address
Serial.print(100, BYTE); // All relays on
delay (1000);
Serial.print(relay_address=1, BYTE); // send relay module address
Serial.print(101, BYTE); // Turn relay 1 on
delay (1000);
//etc
Serial.print(relay_address=1, BYTE); // send relay module address
Serial.print(110, BYTE); //All relays off
delay (1000);
Serial.print(relay_address=1, BYTE); // send relay module address
Serial.print(111, BYTE); //Turn relay 1 off
delay (1000);
//etc
}