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

On Tue, 6 Aug 2019 20:17:42 +0100, Adrian wrote:

> I've tried unplugging the gauge, but I still get the problem, suggesting
> GPIO rather than the gauge itself.  Stopping and restarting the software
> appeared to help for a couple of days, but it has started again.
> Rebooting doesn't work either.   The Python3 code below is started at
> boot up, and can be run with nohup.  Any suggestions on where to start
> looking ?

Had any thunderstorms recently? Suspect a hardware problem, damaged
GPIO input, or the built in pull up/down resitors fried. A floating
input can produce a stream of false transitions. Either try another
GPIO for the guage or fit a 10 k or so pull up/down resistor as
required.

Then think about adding some protection to try and reduce the chances
of the Pi getting zapped again.

--
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™.