Relay Actuator Sketch problem
-
Hi everyone.
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.
Regards
Burtonian
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
Ghost Child
Troubleshooting • 22 days ago • FcNanoLed 19 days ago -
Raspberry Pi 5: invalid GPIO 9
Troubleshooting • 27 Aug 2024, 13:20 • igo 27 Aug 2024, 13:20 -
JSN SR04T - Temperature Influencing Readings
Troubleshooting • 6 Sept 2019, 07:51 • Timbergetter 9 days ago -
JSN-SR04T-V3.0 Coax cable extended
Troubleshooting • 18 days ago • bocalexandru 16 days ago -
Getting system time from the controller
Troubleshooting • 27 Feb 2025, 01:39 • dpcons 3 Mar 2025, 01:00