-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Hello!
Please tell me why your formulas use the ADC value as 2 ^ 23 and not 2 ^ 24? We have a 24-bit ADC, right?
Using the readRawVoltage() function;
This way I get the original value from the ADC.
Next, I need to rebuild it from conventional units into real voltage. Your example indicates that you need to divide the reference voltage by the ADC bit width. Why is there 2 ^ 23?
My problem is that when I get the initial voltage through the example function, I pass this value through a 3.3Ω shunt to measure the current consumption of some device.
By applying current from a lithium battery (3.68V) through a 3.3kΩ resistor, I should get about 1.1mA, but in fact I get 860μA.
Thus, I would like to get an answer to two questions, why is the degree 23 and not 24?
And why am I getting values that are not very close to the calculated ones?
All measurements take place on the lower shoulder relative to the common ground according to the differential scheme.