I have been trying to design a universal battery charger that can determine the battery chemistry irrespective of the number of batteries attatched without any external inputs. I have been trying to use the internal impedance but haven't found any good source of the impedance-voltage relationships yet. Could you please help me at this matter?