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 -
Can not compile MySensors on esp8266
Troubleshooting • 24 Aug 2024, 15:35 • TheoL 29 Aug 2024, 20:47 -
Raspberry Pi 5: invalid GPIO 9
Troubleshooting • 27 Aug 2024, 13:20 • igo 27 Aug 2024, 13:20 -
Forum Search not working?
Troubleshooting • 4 Oct 2023, 23:33 • Gibber 2 Sept 2024, 20:28 -
NODs stop responding, but ping works.
Troubleshooting • 25 days ago • Marcin 25 days ago -
Compiling Sensor code using BME280 and ESP8266
Troubleshooting • 26 Feb 2025, 00:32 • dpcons 26 Feb 2025, 06:22