TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ADRIAN
from: DAVE LIQUORICE
date: 2019-08-07 23:23:00
subject: Re: GPIO problem

On Wed, 7 Aug 2019 22:10:45 +0100, Adrian wrote:

> With the PI powered off, I put a meter on the connections this morning,
> and the resistance across the two pins was off the scale, I was starting
> to suspect a short circuit as it seemed to think that the "switch" was
> always closed.

I have a feeling that electronic hardware is not your forte.  B-)

Which two pins? Presumably the GPIO and either +3.3 V or GND. A
resistance measure "off the scale" to me means a very high
resistance, open circuit, not short circuit.

> I'll look at adding in a 10K resistor and see if that makes any
> difference.

You also need to know if it needs to pull up (to +3.3 V) or down
(GND). That's dependant on how that Python module you call handles
the GPIO and what the software expects a switch closure to produce,
high, +3.3 V, binanry 1 or low, GND, binary 0.

--
Cheers
Dave.

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.