CHANGE I2S ADC ATTENUATION

marinacabezon
Posts: 6
Joined: Tue Jun 09, 2020 8:10 am

CHANGE I2S ADC ATTENUATION

Postby marinacabezon » Tue Jun 09, 2020 8:26 am

I want to use I2S to read directly from the ADC. The problem is that I configure ADC to measure with an attenuation of 0dB but when I read the value of the measurement from I2S, I think the value has been attenuated 11dB. How can I change the I2S attenuation to 0dB?

I'm using PlatformIO and ESP- IDF version 4.0.

For example: When I add a continuous tension to the ADC of 0.5V and configure it with ADC_WIDTH_BIT_12 and ADC_ATTEN_DB_0, reading ADC with adc1_get_raw() I get an output of 1829 (converted is 0.49V) but when I read ADC with I2S : i2s_set_adc_mode() and i2s_read(), the reading is 32293 (converted is 0.12 V).

physiii
Posts: 23
Joined: Fri Nov 17, 2017 9:37 pm

Re: CHANGE I2S ADC ATTENUATION

Postby physiii » Wed Jun 10, 2020 7:39 pm

Asked this recently on here. I'm not getting any replies about my i2s issues. I usually have to post here and then on github to get response.

Check this post I made on github a couple weeks ago.

https://github.com/espressif/esp-idf/is ... -633057910

Who is online

Users browsing this forum: Google [Bot] and 111 guests