ADC readings on idf-5.0+ are offset by -30mV compared to IDF-4.4 (IDFGH-8212) #9705
Closed
3 tasks done
Labels
Resolution: Done
Issue is done internally
Status: Done
Issue is done internally
Type: Bug
bugs in IDF
Answers checklist.
IDF version.
release5.0/master VS release4.4
Operating System used.
macOS
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
No response
Development Kit.
esp32s2-saola
Power Supply used.
USB
What is the expected behavior?
128 mV are sourced to GPIO_3 (ADC1_CH2) ADC conversion vis calibration results in 128mV
What is the actual behavior?
128 mV are sourced to GPIO_3 (ADC1_CH2) ADC conversion vis calibration results in 98mV on idf5.0
Steps to reproduce.
Source 128 mV to GPIO_3 (ADC1_CH2) (e.g,. voltage divider 10K POT)
build and execute IDF-4.4 examples/peripherals/adc/single_read/single_read
build and execute IDF-5.0+ (or master 91e8312) examples/peripherals/adc/single_read/single_read
Observe that IDF 5.0 readings have -30 mV offset compared to idf4.4
Step
Step
...
Debug Logs.
More Information.
128 mV are sourced to GPIO_3 (ADC1_CH2) additional 100uF capacitor (aluminium) is soldered to GPIO (leads ~ 2cm)
ADC readings differs much for latest idf.
Also I find out that it depends on HW calibration data. it is reproduced only for devices that reports "With ADC calibration V2"
One of IC's has readings calibration table
other one just:
Device with ADC readings table provides proper readings (offset is couple of mV). This issue is crucial for our product, a lot of production devices are affected by this issue.
The text was updated successfully, but these errors were encountered: