Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4954

General discussion • PI 5 Graceful Shutdown with UPS using INA219 i2c?

$
0
0
I have a Waveshare UPS 3S which has an external power button - great UPS for its form factor and functionality except power button kills power completely and does not trigger any kind of graceful shutdown of PI 5. Ideally I would want UPS to send Power button action to Pi 5 and start Pi when power is restored - both these things are missing here.

https://www.waveshare.com/ups-module-3s.htm

Can I write my own INA219 Python code using i2c interface to achieve this? I will give user two buttons - one for J5 jumper on Pi 5 used for most purposes. And one for Battery - for rare cases when Pi comes to life from complete power loss. When user presses shutdown on Pi Button - it will initiate shutdown and just before end of shutdown sequence will trigger a shutdown of UPS - using some API. Possible?

I hope when UPS comes online it sends some trigger to Pi via i2c that can be used to wake up PI - but this seems like along shot to me.

Thanks,

Statistics: Posted by femski — Wed Mar 13, 2024 7:54 pm — Replies 1 — Views 22



Viewing all articles
Browse latest Browse all 4954

Trending Articles