ESP8266/ESP32 Pin Interrupt False Positives #9223
Replies: 2 comments 6 replies
-
Sorry @PsuFan I'm having a bit of a hard time understanding your description of the circuits. Can you draw a diagram maybe? I think what you're saying is that for a given pair, both conductors are connected. i.e. you're using a CAT5 cable as a 4-conductor cable, where each pair is a single conductor? i.e.
Or are you saying that you have two relays and two switches?
Neither of these particularly make sense for using CAT5. The relay turning on is very likely to induce a current in the switch lines. You'd be much better off with current return on the same pair. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I was wondering if this had a simple explanation or solution because I run into this a lot lately. Recently I have a 15 ft CAT5 cable with:
1 pair for switched 3.3 relay / 1 pair ground for relay
1 pair gpio switch / 1 pair ground for switch
Set the switch to input, pull up, with an interrupt trigger FALLING. When I turn on the relay i get 10,000 interrupt triggers on the switch that isn't connected. I also have a switch on a 2 inch wire and that interrupt is fine, does not get triggered. I haven't checked the voltage on this specific setup but I've checked with a setup with a 50 ft switch, no relay with the same issue and the voltage never goes under 3v. Replaced out with MCP23017 gpio extender and it works fine. Also tried using an external 1K pull up which did nothing.
Beta Was this translation helpful? Give feedback.
All reactions