Digital Voltage Meter for Li-ion and Lead-acid Batteries