Hello guys :D
Setup: Arduino Due
My problem: I'm working on a project in which the Arduino needs to recognise if one out of two buttons is pressed or not.
I'm doing this by constantly checking the analogIn pins A0 and A1 if there is a current flowing (3.3V). If I use a short wire to connect the 3.3 output pin to one of the analog pins it works perfectly.
Now the problem: For the final project the button wires run through an about 10 meter long cable. All of the wires for the 2 buttons go through one big cable. (Like the interns of an ethernet cable).
Now, if I measure the voltage of the 2 cables which go from the buttons to the arduino, both are giving me 1.6 Volts, even when the button is not pressed. I think there is some electrical interference going on. What can I do to prevent this?
Thx for your answers :)