hippy wrote: ↑Thu Apr 30, 2020 12:14 pm
boyoh wrote: ↑Wed Apr 29, 2020 10:34 pm
In its high impedance state floating
It will not sink or source a working level signal
This being a logic level 0 low or 1 high, So you
MUST set it to a working impedance level by
Setting the internal resistance 50k or using a
External resister of 10k
That seems a very confusing way to describe things. It may be true when using an external switch, short to 0V or 3V3, but I have not noticed any issues when driving a Pi input pin from an output pin without a pull-up or pull-down.
From BoyOh
Introduction
In reading about using the GPIO pins of either a [Raspberry Pi][rpi], an Arduino, or some other single-board computer or micro-controller, you have probably seen reference to pull-up and pull-down resistors. But what are they and why do we need them?
Before explaining their use, we need to understand the nature of a general-purpose input/output pin (GPIO pin).
Logic Levels and GPIO Pin States
The purpose of a GPIO pin is to either influence the action of an external circuit, by toggling the high or low state of the pin used as an output, or to monitor the state of some external circuit on a pin configured as an input.
But what do we mean by high or low?
The general-purpose input/output pins on the Raspberry Pi have a high logic level of 3.3 Volts.
In reality there will be a level somewhere between zero volts and 3.3 which represents the threshold above and below which the state is said to be either low (below the threshold) or high (above the threshold).
Let’s assume this threshold is 1.65 volts, half-way between zero and 3.3 volts.
Now let’s assume we have configured one of the pins as an input, to monitor the state of a momentary press button. That is, a button which does not latch, but which has contacts which are closed when it is pressed and open when it is not.
How should we wire this button to the pin, so that when it is pressed, the state of the pin is low, and when it is not pressed, it is high.
The answer is to wire the button so that it forms one part of a potential divider with either a pull-up or a pull-down resistor.
A Potential Divider
What