MCP3464 Interfacing with ESP32 , Unable to relate the output voltage with input voltage

Hi,
Module : ESP32
External ADC : MCP3464
COmmunication Protocol : SPI

I'm able to read and write the registers . Also getting the output value .
But I'm unable to relate the output digital value with analog input.
2. I tried to convert digital to analog using ADC formula using resolution of 2^16 ( 2^15 - 1).

Please suggest me if I'm missing something and also If I'm getting correct value or not

hi,

assuming you are reading back the ADC values correctly (we cannot see your code!) then did you try something like this then?

let ((2^15)-1) = Vcc (ESP32 supply)

then for an value adc = (adc * Vcc)/((2^15)-1)

hope that helps

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.