Relay Actuator Sketch problem
Burtonian last edited by
I am having a strange problem with the relay actuator sketch. I am trying to use a 2 relay board so I set the sketch to have two relays. But only D3 would activate the relay board. I swapped the relay wires In1 & In2 around and the opposite relay worked. So after a bit of fiddling I found that only D3 was changing its state. So I set the sketch to 3 relays then I could use D3 and D5 but not D4. Thinking that maybe D4 was faulty I made a test sketch that set D4 to turn on and off and it operated the relay ok.
I have tried wiping the Nano and then uploading the sketch again but this has not helped. I would just use D2 & D4 but I have made up a board to fit two Nano's on and it will be a pain having to modify it to use D4 instead of D3.
Any thoughts will be very welcome.