how can I check battery health in an embedded system
The State of Health of the battery can be determined by either the cell impedance or the cell conductance. Others advocate measuring several cell parameters, all of which vary with the age of the battery, and making an estimation of the SOH from a combination of these factors. Examples are capacity, internal resistance, self-discharge, charge acceptance, discharge capabilities the mobility of electrolyte and cycle counting if possible.