Esp32 s2 and s3 ADC calibration

Sheepling
Posts: 12
Joined: Sun Feb 11, 2024 1:48 pm

Esp32 s2 and s3 ADC calibration

Postby Sheepling » Sun Feb 11, 2024 2:02 pm

Hello all, am currently working with the ESP32-S2-DEVKITC (I have an S3 on hand too, but would much prefer a solution on S2 at the moment) . Would it be possible to use the ADC in deep-sleep mode to measure its own voltage source? Given the reference voltage is burnt into the efuse, there seems to be no documentation regarding how to change this internal voltage reference except for the legacy esp_adc.c file.

https://docs.espressif.com/projects/esp ... s/adc.html

MicroController
Posts: 1222
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Esp32 s2 and s3 ADC calibration

Postby MicroController » Mon Feb 12, 2024 5:43 pm

I don't think I quite understand what you mean, but could the ADC Calibration Driver be what you're looking for?

Sheepling
Posts: 12
Joined: Sun Feb 11, 2024 1:48 pm

Re: Esp32 s2 and s3 ADC calibration

Postby Sheepling » Tue Mar 12, 2024 8:12 pm

Thanks for the updated link, but I was looking for the adc_ll_vref_output function found here: https://github.com/espressif/esp-idf/bl ... l/adc_ll.h

It appears the equivalent to this in the s3 only functions as an abort:
https://github.com/espressif/esp-idf/bl ... l/adc_ll.h

Unfortunately, the l1 is not public API still under heavy development, so I guess I can't really use it reliably at the moment. :(

Who is online

Users browsing this forum: No registered users and 190 guests