I'm using the LTC2944 and I found the linduino file cpp but i don't know how to use it to calculate the Charge in Coulomb and in mAh. There is no time consideration in the code ?
Thank's for help !
please see page 11 of the datasheet. The LSB size of the accumulated charge register is given by following equation:
M is the Coulomb Prescaler value stored in the Control Register B, default value is 4096. Rsense is your external sense resistor. To get the charge in mAh just multiply the accumulated charge register value with this LSB.