I have a Teensy 4.1 which is being used to detect a "dry contact" on one of its pins (basically a relay closure where no voltage is involved). I am using the Bounce2 library. In the office, when shorting pin 32 to GND using a short wire, everything works as expected and I can detect the closure.
This Teensy is powered in the field by a POE cable and a splitter. At the field, they placed the POE RJ45 cable along with the two "dry contact" wires in the same conduit. The length of the wire run is about 25-30 feet. (please refer to diagram).
Now, when the system starts, I am getting a dry contact on that pin all the time! What may be causing this and how can I prevent it?
Thanks in advance for the community's help as my knowledge of hardware is limited.
Code:
pinMode(32, INPUT_PULLUP);
This Teensy is powered in the field by a POE cable and a splitter. At the field, they placed the POE RJ45 cable along with the two "dry contact" wires in the same conduit. The length of the wire run is about 25-30 feet. (please refer to diagram).
Now, when the system starts, I am getting a dry contact on that pin all the time! What may be causing this and how can I prevent it?
Thanks in advance for the community's help as my knowledge of hardware is limited.
Attachments
Last edited: