Hi Ben
Is it possible to add a command for all the AD converter from the ESP32 to use analogSetAttenuation?
regards
Stefan
https://espressif-docs.readthedocs-host ... /adc.html#
Analog set:
ESP32 add AnalogSetAttenuation
-
- Valued Contributor
- Posts: 997
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 190 times
- Been thanked: 217 times
-
- Matrix Staff
- Posts: 1924
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 501 times
- Been thanked: 684 times
Re: ESP32 add AnalogSetAttenuation
Hi Stefan,
Thanks for the suggestion. It was there previously but a bit reduced in terms of functionality and visibility.
I've updated the ESP32 ADC definitions so now it should show the correct max voltage in the Vref property and also catch and implement this in the CAL C code.
Let me know how you get on.
Thanks for the suggestion. It was there previously but a bit reduced in terms of functionality and visibility.
I've updated the ESP32 ADC definitions so now it should show the correct max voltage in the Vref property and also catch and implement this in the CAL C code.
Let me know how you get on.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Valued Contributor
- Posts: 997
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 190 times
- Been thanked: 217 times
Re: ESP32 add AnalogSetAttenuation
Hi Ben
It works with the attenuation settings.
But it is a little confusing what the ESP32 pico delivers.
In order to get to the maximum I have to apply the following voltage:
Vref Vin
950mV 1.1volts
1250mV 1.39 volts
1750mV 1.89 volts
2450mV 3.2 volts
I'm not interested in the small errors at the moment, but why is
for the 2450mV reference 3.2 volts necessary?
But even worse, I should actually have the 3.2 volts, but I have no idea why this is already working...
regards
Stefan
It works with the attenuation settings.
But it is a little confusing what the ESP32 pico delivers.
In order to get to the maximum I have to apply the following voltage:
Vref Vin
950mV 1.1volts
1250mV 1.39 volts
1750mV 1.89 volts
2450mV 3.2 volts
I'm not interested in the small errors at the moment, but why is
for the 2450mV reference 3.2 volts necessary?
But even worse, I should actually have the 3.2 volts, but I have no idea why this is already working...
regards
Stefan