I have a potentiometer with switch, that seems to be working a little wonky (Keep in mind I have tried this with a few different pots and they all behave the same way which leads me to believe I am wiring them wrong).
I can easily hookup the potentiometer and it's three terminals on the side, 1 being ground, 2 being output, 3 being input power. I can monitor it's value on a serial port with Arduino. However when I try and test the switch, which are two terminals on the bottom of the pot. I get an on signal when the pot is on, but when it is clicked off I get a random on/off signal. As in it reads that it is sort of on but never truly reads off.
Right now I am simply giving it 5v from the Arduino to both the switch and the third terminal. Should I be giving the switch power via a capacitor? Not sure, have not tried that yet but that may smooth out my readings.
Any suggestions?