Not sure of the specifics, but I believe that you use a reverse-bias transistor to keep power from flowing once the batteries are full. Hopefully that will give you enough key words to search for : )
Select as Best AnswerUndo Best Answer
essentially thats it :D
a commercial product to do the job is called a 'charge controller'.
yay search terms.