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)
|