Search found 9 matches

by ESP-Kevin
Sun Mar 24, 2024 10:57 am
Forum: ESP-IDF
Topic: i2s_pdm example - accessing raw pdm data
Replies: 2
Views: 354

Re: i2s_pdm example - accessing raw pdm data

It's a pity that the raw PDM is not supported in IDF currently. But will be supported in the future ;)
by ESP-Kevin
Mon Apr 03, 2023 12:15 pm
Forum: ESP-IDF
Topic: Restarting an I2S DMA read
Replies: 2
Views: 3863

Re: Restarting an I2S DMA read

For the sequence of reset, maybe you can refer to the DAC driver (https://github.com/espressif/esp-idf/bl ... #L169-L193), because the DAC on ESP32 relies on the DMA of I2S.

Also, the DAC driver provides three ways to use the DMA, maybe it can help you
by ESP-Kevin
Mon Mar 27, 2023 11:24 am
Forum: ESP-IDF 中文讨论版
Topic: 莫名重启问题
Replies: 6
Views: 4938

Re: 莫名重启问题

uxTaskGetStackHighWaterMark 这个报错可能是堆栈调用深度过深,排查一下是不是有什么地方递归太深了,或者在栈上分配了太多内存

附上freeRTOS文档
https://www.freertos.org/zh-cn-cmn-s/ux ... rMark.html
by ESP-Kevin
Mon Mar 27, 2023 11:08 am
Forum: ESP-IDF
Topic: APLL is occupied when using i2s in esp-idf 5.0
Replies: 2
Views: 1244

Re: APLL is occupied when using i2s in esp-idf 5.0

Yes, If you're using two channels under same sampling rate, just ignore this warning. But if you're using two I2S ports with different sampling rate, the driver can still possible to make it work in this case, but you need to take care: 1. Allocate the I2S port which has higher frequency first, beca...
by ESP-Kevin
Wed Nov 16, 2022 3:38 am
Forum: ESP-IDF
Topic: Distorted start of sound from I2S output
Replies: 2
Views: 1469

Re: Distorted start of sound from I2S output

May I ask how many bytes are wrote in every loop? Could you take a try to increase the sending buffer size. As you know, the i2s dma buffers are linked as a ring, and it'll keep looping once it start. Therefore, if the sending buffer size is short, there might be some interval before transmitting th...
by ESP-Kevin
Thu Sep 01, 2022 3:35 am
Forum: ESP-IDF
Topic: Audio conversion (to wav file) from PDM mic output is having loud noise
Replies: 3
Views: 2087

Re: Audio conversion (to wav file) from PDM mic output is having loud noise

Hi @aydeep.faldu, I see you printed all the data in the `i2s_read` thread and delayed 50 ms every time. Unfortunately, it will lead data lost, which should be the reason of the heavy noise. Although there are printing and delays in some i2s examples, they are only used for monitoring whether the dat...
by ESP-Kevin
Mon Jul 18, 2022 2:47 am
Forum: ESP-IDF
Topic: I2S with built-in ADC to capture stereo
Replies: 2
Views: 1972

Re: I2S with built-in ADC to capture stereo

Yes, only the first ADC unit is available via the I2S driver, you can refer to the dedicate ADC driver for the full support of ADC continuous mode
by ESP-Kevin
Fri Jul 01, 2022 6:17 am
Forum: ESP-IDF 中文讨论版
Topic: Deepsleep例子的疑问[已解决]
Replies: 1
Views: 2709

Re: Deepsleep例子的疑问

您好,我对比了一下两个平台代码的区别,原因是Arduino上touch默认的测量时间短于IDF v3.3中默认的测量时间,具体为:Arduino上的默认值为0x1000(在esp32-hal-touch.c第27行), IDF上的默认值为0x7fff(在driver/touch_pad.h第106行)。
当测量时间增大,touch_pad充放电所占时间比例就会增大,因此造成了功耗相对较高