Hi Everyone,
New here, but not new to circuits, but not really very experienced either.
I'm planning to run a 5V ucontroller with a 12V SLA battery and charge the battery with a solar panel. I'll have plenty of current from the panel on a sunny day and plenty of capacity in the battery for nights. What I'm really interested in is this: I'd like the load to use the panel when possible, and any extra from the panel would go into the battery. This seems straight forward except of course that between the panel and the battery will be a charge controller and between the battery and the load will be a regulator. The load is 5V, and most times will be no more than 30-40mA but could go up to 300mA for very short periods. So here's the secnario I'd like to see, values are just picked from a hat so I'm clearer than mud: It's night and the load is running off the battery. The sun starts to come up and the panel starts generating 4V, still running off battery. The sun comes up a bit more and the panel is generating 8V. Now the panel is generating enough to run the load but not to charge the battery. I'd like it to do that, run the load so I can stop using the battery. If it's a sunny day the panel will eventually start charging the battery and running the load. But if it's cloudy, maybe the panel will generate 11V all day. Still enough to run the load but not to charge. I don't want to be stuck using the battery all day when I have totally useable power coming from the panel.
My question is what's the proper way to do this. The panel will be connected to the charger of course, but what's a good way to make it power the load if it can, while allowing the battery to power the load when needed? I have some ideas but none feel very right. Thanks.