NeonHorizon / lipopi

Guide to setting up LiPo batteries on the Raspberry Pi
GNU General Public License v3.0
416 stars 62 forks source link

lipopi.py script query #37

Closed satishgunjal closed 6 years ago

satishgunjal commented 6 years ago

I have tested 'A Simple Press (no hold) Power Up Version with 100uf capacitor'. Power down and power up with button press works fine. Auto shutdown if battery is low also works fine but 'lipopi.py' script always call 'lipopi_user_shutdown' instead of 'lipopi_low_battery_shutdown'.

Using same GPIO and PowerBoost 1000.

Using raspberry pi Zero W. 1N4007 (Since 1N4001 wasn't available at the time of testing) and 100uf (50v) capacitor.

NeonHorizon commented 6 years ago

lipopi_user_shutdown is called when shutdown_pin voltage rises. Do you still have shutdown_pin set as GPIO 18? Does lipopi_user_shutdown trigger quickly or only when the battery is flat?