Is there a good example of a battery manager schematic where I can have a power supply for my Photon, and also charge a battery at the same time or use the battery power when the supply is disconnected, and keep the photon informed of the power remaining, etc…
What about the photon battery shield? It does exactly those things, and is stackable with the photon/Core. Should be shipping somewhere this month as well
The new battery shield does exactly what you want. All the shields are currently under production and once we get a confirmation, I’ll make the design repository public. In the meantime, I can send you the design files for you to take a look at.
As an outside possibility, how about a readymade unit and plugging in with micro USB?
This might work well in a clear lid enclosure with a sachet of silica gel in the enclosure for good measure.
Do a search for “5000mAh USB Waterproof Solar Power Bank Battery” on ebay.
On a Spark core consuming 50mA this would give about 70 hours runtime (being 3.7V lithium battery at 5000mAh). Clearly longer on a Photon where cited power consumption is lower than 50mA.
Building your own would enable more control over deisgn parameters, and may work better in winter conditions with insufficient daily charging light for the unit to cover 24hr consumption by your circuits. Although in sunnier climates than the UK, that may not be a problem.