Please explain why this part of my sketch only works on pin 6 when run. I was expecting it to work on all. They all have been activated output prior to this code
digitalWrite(6, HIGH); // Turns ON Relay 3 on digital pin 6 (blue)
digitalWrite(7, HIGH); // Turns ON Relay 2 on digital pin 7 (yellow)
digitalWrite(8, HIGH); // Turns ON Relay 1 on digital pin 8 (red)
delay(200); //length of purge
digitalWrite(6, LOW); // Turns OFF Relay 3 on digital pin 6
digitalWrite(7, LOW); // Turns OFF Relay 2 on digital pin 7
digitalWrite(8, LOW); // Turns OFF Relay 1 on digital pin 8
the Arduino is powered via usb 5 volt. The shield is powered by a separate 9 volt supply and the relays attached to the shield by a separate 12volt supply. If there is no problem with the code I will experiment with some leds tomorrow. Thanks