Hey there,
I want to meassure the voltage of a battery (from 3.2 to 4.2 Volts).
So I have written a Programm in Python and use a Raspberry Pi. Im using the SMBus library.
So first I write to the register:
bus.read_i2c_block_data(0x48, 0, 2)
So when my Battery is plugged to channel A0 with exactly 4.2V and to GND I am getting back an array with [87, 112].
How can I convert this 2 Bytes to my Voltage ( 4,2Volts)??
the 2 readed bytes together 696 + 896 (in Bits) Im getting are1592 right?