Yups I am also trying to design a solar power battery charger that won't overcharge batteries. I've worked out how to make a basic solar charger with solar panel, blocking diode, voltage regular, battery, but I can't figure out how to prevent the batteries from overcharging if I leave them out. I was thinking that an NPN transistor might be useful as a switch, but I don't know where to start.Any suggestions.