I couldn't convert the ADC reading to its respective analog current value.
I connected a microcontroller in the Vout to read the current, it will give an 8bit HEX value.
The load is another microcontroller.
The ADC reading in no-load is HEX00.
(8-bit @ 3.3V) and LTC6106 for current sensing. Here's my schematic.
The input voltage is 3.3V.
The output ADC reading is HEX16 or DEC22
My expected value is 172mA
Here's my calculation:
3.3 V / (2^8 - 1) = 12.94 mV.
Sensitivity = V_out / I_sense = R_sense * R_out/ R_in, = 0.025 Ω * (4999 Ω) / 100 Ω = 1.25 V/A
I_out = 12.94 mV * 22 / 1.25 V/A = 227.744 mA
What's my mistake here? Why I did not get 172mA?
Here are useful info from the datasheet of LTC6106
I connected a microcontroller in the Vout to read the current, it will give an 8bit HEX value.
The load is another microcontroller.
The ADC reading in no-load is HEX00.
(8-bit @ 3.3V) and LTC6106 for current sensing. Here's my schematic.
The input voltage is 3.3V.
The output ADC reading is HEX16 or DEC22
My expected value is 172mA
Here's my calculation:
3.3 V / (2^8 - 1) = 12.94 mV.
Sensitivity = V_out / I_sense = R_sense * R_out/ R_in, = 0.025 Ω * (4999 Ω) / 100 Ω = 1.25 V/A
I_out = 12.94 mV * 22 / 1.25 V/A = 227.744 mA
What's my mistake here? Why I did not get 172mA?
Here are useful info from the datasheet of LTC6106