Hi Paul et al,
I'm filing a kind of technical report that was the result of a few hours of debug time.
This is probably documented elsewhere but you can't have too many reports of this kind of thing.
I didn't find it while googling around for solutions.
I used pinMode(pin, INPUT) on an analog pin reading a piezo sensor.
The pin works fine and reports reasonable outputs (I didn't really check how reasonable the output was - such as hooking up a pot)
somewhere up to a to higher voltage between 2.5 and 3.3 volts - again I didn't check this very accurately - exactly where the latch starts -
it would be easy enough to check with a pot.
At some high voltage, the pin latches into a low impedance state (but still above 10K ohms) and biases the pin at about
2.8 volts. This condition will persist until the pin is unlatched by a lower impedance path to ground.
Anyway the issue is solved - with the takehome being:
DON'T USE PINMODE ON ANALOG PINS USED AS INPUTS!
I'm filing a kind of technical report that was the result of a few hours of debug time.
This is probably documented elsewhere but you can't have too many reports of this kind of thing.
I didn't find it while googling around for solutions.
I used pinMode(pin, INPUT) on an analog pin reading a piezo sensor.
The pin works fine and reports reasonable outputs (I didn't really check how reasonable the output was - such as hooking up a pot)
somewhere up to a to higher voltage between 2.5 and 3.3 volts - again I didn't check this very accurately - exactly where the latch starts -
it would be easy enough to check with a pot.
At some high voltage, the pin latches into a low impedance state (but still above 10K ohms) and biases the pin at about
2.8 volts. This condition will persist until the pin is unlatched by a lower impedance path to ground.
Anyway the issue is solved - with the takehome being:
DON'T USE PINMODE ON ANALOG PINS USED AS INPUTS!