[App_rpt-users] UPS for a PI 3 B+
Tom Hayward
tom at tomh.us
Tue Aug 21 23:56:47 UTC 2018
I went a bit different direction to solve this problem. I already have a
12V power system with battery backup, so I decided to run the Pi from that.
I used the SleepyPi https://spellfoundry.com/product/sleepy-pi-2/ to safely
shutdown the Pi when the battery voltage drops below the threshold I
programmed. When the voltage recovers above another (higher) threshold, it
boots up again. I can also read the current voltage over serial for
logging, alerting, etc.
Here is the code I wrote to do it:
https://github.com/SpellFoundry/SleepyPi2/blob/master/examples/LowVoltageShutdown/LowVoltageShutdown.ino
If you have a slightly different application, you could modify the code to
suit it.
Tom KD7LXL
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.keekles.org/pipermail/app_rpt-users/attachments/20180821/b38c1b74/attachment.html>
More information about the App_rpt-users
mailing list