INPUT_PULLUP is not pulling up (Teensy 2++)

Status
Not open for further replies.

srusha

Active member
So I got this code:
Code:
void setup() {
    pinMode(PIN_D0, INPUT_PULLUP);
}

When measuring pin D0 with a multimeter I get ~1.75 volts, nothing is connected to the teensy and it is powered from USB

I tried also:
pinMode(PIN_D0, INPUT);
digitalWrite(PIN_D0, HIGH);

Same results.
writing LOW to PIN_D0 makes the pin float, as expected.

PIN_D1 gives 4.9V, as expected.

Any help would be great.

Thanks
 
Tried another teensy, it appears to be HW fault.

Pual, do you think theres a way to fix it? What should I do?
 
Sounds like a defective board. We test every pin on every board, using a bed-of-nails test. But it's possible it got damaged in shipping or some other way?

If this board new? Did you buy it directly from PJRC, or through a distributor?
 
I got it through sparkfun, it was brand new.

Stuff is becoming even weirder. I tried a new teensy, it worked well. after running my own app code (if you want I can mail it to you) which uses seeedstudio gprs v2 shield for around one day, the pin D0 also stopped pulling up. (tested using the code posted in the first message)

trying to make my own pull-up using a 10Kohm resistor didn't work as the voltage is still around 2.7v.
 
That does sound very strange.

Without code to reproduce the problem, there's nothing I more can do. If you do post code, I can try running it here on a Teensy++ 2.0 to see what happens.
 
Status
Not open for further replies.
Back
Top