Close

05/01/2023 - Pull-my-hair-out UP/DOWN resistors

A project log for A smart controller for a powered chair or bed

2023 Assistive Tech Winner! Automates the powered recliner or bed. Ideal for the mobility-challenged.

stephen-craverStephen Craver 05/01/2023 at 21:553 Comments

It turns out the PICO's internal pull-up/pull-down resistors are somewhat undependable/unpredictable  for anything but unconnected GPIO pins, as expained at https://forums.raspberrypi.com/viewtopic.php?f=144&t=315020

Image

I'm adding external resistors, plus a secret surprise!!

Discussions

Stephen Craver wrote 09/11/2024 at 23:12 point

...a perfect explanation! Thanks, Ken

  Are you sure? yes | no

Ken Yap wrote 09/12/2024 at 01:32 point

Possibly what that forum poster meant by "unconnected" is "configured the output to high impedance state" which is an option for pins allowing more that one output to share that line, as long as only one output drives it at any time. This is commonly called Hi-Z state.

  Are you sure? yes | no

Ken Yap wrote 09/11/2024 at 22:01 point

The statement that they are only good for unconnected outputs is meaningless. If the pin is unconnected then there is no need to pull anything down or up. A pull down or up is to ensure that any leakage current or residual voltage due to capacitance at the driven input doesn't affect the logic level when the output is "off". In other words don't let the input float. They should not be used to supply working current, the output transistor does that. So the pull resistance values inside the chip are moderately high.

  Are you sure? yes | no