Im designing a pcb that has a solar cell input that goes to a voltage regulator currently 5v will soon implement a 3v system. The reason for the voltage regulator is because It is currently going to a barrel jack which can also accept DC wall wart.(I.E. seamlesly switch between wall wart and solar cell.) I think the output of the solar cell is somewhere around 4.5v My question is I want to hook up a battery input as well that will always be connected onboard that way should the solar cell lose output the battery is still supplying the board.
Any Ideas on how I go about setting something like this up so I dont fry the battery yet still have two inputs?