Hi Gianluca,
i measured the Sampling frequency with an oscilloscope and its indeed 2 Msps.
I also made a measurement with a pwm signal of 120 kHz and a duty cycle of 90%. As you can see on the picture it is pretty much 2 Msps.
Search found 13 matches
- Mon Apr 26, 2021 7:51 pm
- Forum: ESP-IDF
- Topic: Uncorrect ADC iniziatization with I2S
- Replies: 20
- Views: 19424
- Mon Apr 26, 2021 1:46 pm
- Forum: ESP-IDF
- Topic: Uncorrect ADC iniziatization with I2S
- Replies: 20
- Views: 19424
Re: Uncorrect ADC iniziatization with I2S
Hi Guys,
i had to update from esp-idf version 4.1 to 4.2. Now everything is working as it should.
For further questions check out this post: https://github.com/espressif/esp-idf/pull/1991
i had to update from esp-idf version 4.1 to 4.2. Now everything is working as it should.
For further questions check out this post: https://github.com/espressif/esp-idf/pull/1991
- Thu Apr 22, 2021 6:42 pm
- Forum: ESP-IDF
- Topic: Uncorrect ADC iniziatization with I2S
- Replies: 20
- Views: 19424
Re: Uncorrect ADC iniziatization with I2S
With the following code (quite messy) I am able to get realistic adc readings up to a frequency of 10 ksps however as soon as i increase the sampling rate over 10 ksps the adc-readings are all zeros again. #include "freertos/FreeRTOS.h" #include "freertos/event_groups.h" #include "esp_log.h" #includ...
- Thu Apr 22, 2021 1:37 pm
- Forum: ESP-IDF
- Topic: Uncorrect ADC iniziatization with I2S
- Replies: 20
- Views: 19424
Re: Uncorrect ADC iniziatization with I2S
I have already tried both .apll=true, and apll=false, without any difference.
As input I use a cosine wave with a frequency of about 400Hz for testing purposes. I have also used constant values of 2.0V, but the adc display remains zero.
As input I use a cosine wave with a frequency of about 400Hz for testing purposes. I have also used constant values of 2.0V, but the adc display remains zero.
- Thu Apr 22, 2021 11:23 am
- Forum: ESP-IDF
- Topic: Uncorrect ADC iniziatization with I2S
- Replies: 20
- Views: 19424
Re: Uncorrect ADC iniziatization with I2S
Hi Gianluca,
You are right that doesn't make sense in my code. I changed it according to your suggestions.
The problem unfortunately remains the same.
You are right that doesn't make sense in my code. I changed it according to your suggestions.
The problem unfortunately remains the same.
- Thu Apr 22, 2021 9:24 am
- Forum: ESP-IDF
- Topic: Uncorrect ADC iniziatization with I2S
- Replies: 20
- Views: 19424
Re: Uncorrect ADC iniziatization with I2S
Hi Gianluca, thanks for your reply, I tried several sampling rates from 3 kHz to 100 kHz but it didn't work for any of them. I am using the esp-idf version 4.1. Here is the code that I used. I reused quite a lot of Your code. #define TAG "I2S" #define SAMPLE_RATE 5000 #define I2S_UNIT (0) #define DM...
- Wed Apr 21, 2021 10:43 pm
- Forum: ESP-IDF
- Topic: esp_ble_gatts_send_response doesn't work in the gatts_server_sercive_table demo
- Replies: 7
- Views: 8307
Re: esp_ble_gatts_send_response doesn't work in the gatts_server_sercive_table demo
Hey tasun2000,
ita been some time but maybe I can help you out.
what exactly is your problem?
ita been some time but maybe I can help you out.
what exactly is your problem?
- Wed Apr 21, 2021 9:00 pm
- Forum: ESP-IDF
- Topic: Uncorrect ADC iniziatization with I2S
- Replies: 20
- Views: 19424
Re: Uncorrect ADC iniziatization with I2S
Hi, i'm facing a quit similar problem. I try to take adc measuremets with the maximum possible sample rate. In the Documentation I read something of about 2 Msps. However, I can't get the i2s_adc_dac- example to work. When i read from the DMA buffer i always get zeros. I also tried your Example @Gia...
- Wed Apr 21, 2021 11:44 am
- Forum: ESP-IDF
- Topic: example "i2s_adc_dac " in esp-idf ADC value is zero
- Replies: 2
- Views: 5922
Re: example "i2s_adc_dac " in esp-idf ADC value is zero
Hi,
I know this post is quite old, but i have the same problem. I am using esp-idf version 4.1 and i can't get the i2s_adc_dac-example to work.
Whenever the sample frequency is over 5 kHz the i2s_read()-Function returns only zeros.
Is there any known solution for this problem?
I know this post is quite old, but i have the same problem. I am using esp-idf version 4.1 and i can't get the i2s_adc_dac-example to work.
Whenever the sample frequency is over 5 kHz the i2s_read()-Function returns only zeros.
Is there any known solution for this problem?
- Wed Dec 30, 2020 7:38 pm
- Forum: ESP-IDF
- Topic: Sending Response Failed
- Replies: 4
- Views: 18571
Re: Sending Response Failed
Hi,
if anyone still has a similar issue, i solved mine in https://www.esp32.com/viewtopic.php?f=13&t=18763
Kind Regards
if anyone still has a similar issue, i solved mine in https://www.esp32.com/viewtopic.php?f=13&t=18763
Kind Regards