- Sun Aug 27, 2017 6:32 pm
#69500
mmrvelj wrote:I use "sensor" which is effectively a switch on a long wire (around 3 meter of wire).
I'm afraid the combination of the words "effectively" and "a long wire" don't work together on a subject like this.
A "Sensor" connected to a "Long wire" (longer than ~10cm) on a microcontroller working with 3.3V logic is very likely to fail in the first place (capacitance and restance of the wire itself, electromagnetic pulses "Invading" the wire from the outside, like an antenna).
You probably don't actually have a setup like that, so it might be better to describe your setup in more details, since that may also be the place where your problem is.
Assumption is the mother of all f*ckups. At least: that's what I'm assuming.