06-29-2019, 09:12 AM
(06-25-2019, 08:19 AM)Jewa_TWN Wrote:(06-24-2019, 01:20 PM)Tim Curtis Wrote: I don't disagree however I'm not the dev responsible for the GPIO class library used in moOde's GPIO Buttons module. You would need to contact the maintainer of RPi.GPIO https://pypi.org/project/RPi.GPIO/Tnx,
The script used in moOde is located in the directory below
/var/www/command/gpio-buttons.py
-Tim
Send the request / feedback to the maintainer of the RPI.GPIO
Once I got feedback, I will post it here.
For the meantime to "solve" my issue, i will invert the signal:
I will use a N-FET to have the GPIO at 0V (solid!!) when the supply is ok.
(The FET will five me a few milli-ohm connection, iso a 2K pull up)
This should reduce the EMI influence. Its not good, but should work.
Most likely after the weekend.
Regards,
Jeroen
=================================
Update after the above:
NO reply from the GPIO maintainer yet : a pity..
Hardware changes:
Added a extra FET, to invert the signal:
The solid N-FET + 330nF cap between Drain & 0V (0V when supply OK, 3V3 when about to shutdown) helps, but sensitivity is still there for touching the enclosure.
(Due to ESD discharge, as im walking on slippers indoor :-))
Next option is to solder a cap directly on the PI, not really preferred..
Keep you posted.
J