I'm a bit embarrassed to be asking this in the beginners forum, but my analog fu is pretty weak.
I have an RPi that I am powering from solar + battery remotely. The unit does not need to run at night. To reduce cycling of the battery (and to allow it to be smaller), I'd like to shut down the pi at night.
I need a circuit that can do two things:
1. generate a signal that I can send to the gpio when the voltage from the panel (it's a 6V panel) goes below a certain value. I'll use this signal to initiate a clean shutdown
2. generate a pulse when the panel goes above a certain volate. Preferably, it would only do so if the panel was above that voltage for a certain amount of time, and it would not do so repeatedly within a short period, say 10 minutes. Ideally, one pulse in the morning. This pulse would reset the pi and cause it to boot.
I can do this with another micro, but thought it would be nice to see if I could pull it off with a few transistors, maybe a 555 or two. Is there an obvious, simple solution?