Hi, I am trying to use the Teensy 3.2 to output an analog voltage (using analogWrite on pin A14) then measure an impedance across two different pins. One problem I'm finding is that the way my design is mechanically set-up, there is interference from the A14 pin because its impedance is low. I tried setting the A14 pin as an input, but am finding that as a digital input, the A14 pin is actually still outputting low impedance. I was wondering if there's anyway I can "blank" the A14 pin so that it's back to its original high impedance state.
EDIT:
Source Code:
digitalWrite(A14, 3.1 * (4095 / 3.3)); //writes pin A14 to output 3.1V
pinMode(A14, INPUT); //sets A14 to input in order to try and switch pin to high impedance
digitalRead(A14); //fully sets A14 to input to try and get high impedance from pin
Output (from multimeter):
when A14 = 3.1V output => impedance = low
when A14 = input => impedance = low
what I want => impedance = high
EDIT:
Source Code:
digitalWrite(A14, 3.1 * (4095 / 3.3)); //writes pin A14 to output 3.1V
pinMode(A14, INPUT); //sets A14 to input in order to try and switch pin to high impedance
digitalRead(A14); //fully sets A14 to input to try and get high impedance from pin
Output (from multimeter):
when A14 = 3.1V output => impedance = low
when A14 = input => impedance = low
what I want => impedance = high
Last edited: