This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ADC measured voltage is 200-300mV over the real voltage

Dear Madam/Sir,

We integrated the ADC measurement code from the ble_proximity app example (nRF52840 Preview DevKit, SDK15.0.0, Softdevice6.0.0) to measure the battery from a non-rechargeable lithium battery, and realised it is measuring around 200-300mV over the real measurement with a multimeter.

We tested the ADC measurement from both the nRF52840 PrevDevKit and our custom board and both are measuring similar voltage with the same over 200-300mV to the real multimeter measurement.

We then used the PowerProfileKit with different voltage inputs from the voltage regulator and setup the nRF52840 PrevDevKit and our custom board as an external DUT. From different input voltages, which match what we measure on the multimeter, we realised the ADC measurement keeps the same +200-300mV deviation on both boards despite the input voltage we chose.

Is there anything wrong with the ADC formultation in the ble_proximity app example? Should we unconsider the DIODE_FWD_VOLT_DROP_MILLIVOLTS from the line batt_lvl_in_milli_volts = ADC_RESULT_IN_MILLI_VOLTS(adc_result) + DIODE_FWD_VOLT_DROP_MILLIVOLTS?

Looking forward to your reply.

Thank you,

João

Parents Reply
  • Yes, the DK has diodes on its voltage inputs (which are D80, D81, D82 and D83).

    How do you have the battery connected? If you are connecting the battery output directly to the ADC input, then you are bypassing the diode and effectively adding those 270 mV to the voltage. The diode's drop should only be compensated if you are measuring the battery voltage after the diode, not before.

Children
Related