You can do it either with a comparator or a small microcontroller. In my case, I used a small microcontroller (ADC) that cut-off charging, measure voltage and if fully charged, stop further charging until voltage level become lower which is checked every few minutes (continuous charging system) or e...