Page 1 of 1

Why use a resistor across IO pins?

Posted: Tue Sep 13, 2016 4:56 pm
by TheBinarySheep
I'm new to the Raspberry Pi, and have come across a couple of projects where there's a resistor across two of the pin and wondered why this would be?

For example, I think the first was a temperature sensor (DHT22/11), where there was a resistor across the data and the gnd connections.

I've seen another project where you interface the Raspberry Pi with trigger pins on an alarm system, and again there's a resistor bridged across the data and gnd connections.

Re: Why use a resistor across IO pins?

Posted: Tue Sep 13, 2016 6:21 pm
by FTrevorGowen
TheBinarySheep wrote:I'm new to the Raspberry Pi, and have come across a couple of projects where there's a resistor across two of the pin and wondered why this would be?
For example, I think the first was a temperature sensor (DHT22/11), where there was a resistor across the data and the gnd connections.
I've seen another project where you interface the Raspberry Pi with trigger pins on an alarm system, and again there's a resistor bridged across the data and gnd connections.
Without any info. from the sensor and/or alarm data sheets my guess would be as a "stronger" pull-down than can be set by programming the SoC appropriately. (IRCC, "programmable" pull-ups/pull-downs are ~50k ohms ... so, what are the resistor values)
Trev.

Re: Why use a resistor across IO pins?

Posted: Wed Sep 14, 2016 2:15 am
by Graymalk
I honestly think a lot of people just don't know there's a built-in resistor.

Elescalador

Posted: Wed Sep 14, 2016 4:29 am
by ElEscalador
Without more details, I'm going with "old habits die hard." I've had to with every other microcontroller because they'd happily pull too much current and fry. Now I've learned I don't generally need to with the Pi, but it still feels weird not to.

Re: Elescalador

Posted: Wed Sep 14, 2016 6:32 am
by PeterO
ElEscalador wrote:Without more details, I'm going with "old habits die hard." I've had to with every other microcontroller because they'd happily pull too much current and fry. Now I've learned I don't generally need to with the Pi, but it still feels weird not to.
I think you might be mixing up "pull-up" and "pull-down" resistors with "current limit" resistors which are in series with the GPIO pin not in parallel.

PeterO