This is a Python Flask project I'm creating to monitor activity in my Little Free Library using a solar powered Raspberry Pi Zero.
Little Free Library is a trademark of the non-profit Little Free Library and is used under permission of being a steward.
- Door trigger for light and camera controls
- Image gallery
- Update script for automatic pulls from Git
- Graph voltage history for battery and panel
- Uses Highcharts under the CC Attribution-NonCommercial 3.0 licenses. Please see Highcharts website to license for commercial use.
- Flask
- GPIO
- PICamera
- Blinkt
- Bootstrap v4
- Battery Pack
- This is a 4P3S pack of 18650 batteries with 11.1v nominal and 12.6v peak.
- Samsung 18650 30Q 3000mAh
- These batteries have enough power to run everything for about a week, but (to be fair to the batteries) that week had highs of about -10F. They hardly got any charge due to it being either snowing or overcast.
- Battery holder
- This battery holder worked well by breaking the insulation along a solid piece of stranded wire, putting the tab through the middle of the wire, and soldering it in place.
- Heat Shrink tubing
- PowMR 20A Solar Controller
- This is a cheap PWM controller that has enough battery settings to safely charge Lithium Ion batteries, but not necessarily very optimally.
- ADS1115 Analog to digital converter
- 0-25v voltage reducer
- Fused cable
- I replaced the included fuses with 5A fuses, as there should never be that much current
- Raspberry Pi Stack
- Raspberry Pi Zero W
- Makerspot case
- Makerspot breadboard
- Stacking Header
- I soldered on the breadboard and mounted the Blinktd module on top.
- Blinkt!
- Magentic Switch (not pictured)
- It is important to use a normally-closed (NC) switch, as you want the curcuit to be open when the door is closed. Whenever the curcuit is closed, it does use a small ammount of power through the on-board resistor.
- Be causious of buying magnetic switches on Amazon, as many have NC and NO definitions backward.
- Raspberry PI Camera
- Any camera compatible with the camera interface should work fine, choose one based on your needs.
- Solar Panel (not pictured)
Document solar power configuration- Figure out unit tests
- Figure out an isolation circuit for monitoring solar panel volage (this may not be posible (but feel free to submit an issue if you know of a curcuit design I could use))
Install in Little Free Library