Solar powered Raspberry Pi Zero setup, including an external battery voltage monitor and associated automation to handle clean shutdown and restart of the Raspberry Pi Zero.
-
Raspberry Pi Zero W
-
Arduino Pro Mini 5V/16MHz
-
TP4056 based 1S Lipo Battery Charger Module
-
3V to 5V DC-to-DC boost converter module
-
5V/1A Solar Panel
- Ex: https://www.amazon.com/gp/product/B01GFGRGA4/ wired in parallel
-
3.7v Lipo 1S battery >= 8000mAh
Arduino Pro Micro code to handle battery management.
- Reports voltage to RaspberryPi via GPIO TTL Serial pins every 16 seconds
- Keeps track of "run" state to cleanly shut-down and reboot pi
- Toggles the onboard "RUN" pin of the rPi CPU to wake & boot rPi after shutdown
Battery voltage monitor and logger client for rPi
- Simple module to log incoming voltage reports from the Arduino module
- Handles shutdown message