Search found 9 matches

by bnarit
Sun Jan 15, 2023 8:14 am
Forum: Hardware
Topic: ESP32S3 I2S strange problem, One Shot
Replies: 2
Views: 1998

Re: ESP32S3 I2S strange problem, One Shot

This code helped me a lot, the synchronization can be done with if (xQueueReceive(output->m_i2sQueue, &evt, portMAX_DELAY) == pdPASS)

https://github.com/atomic14/esp32_audio ... Output.cpp
by bnarit
Sat Jan 14, 2023 6:12 pm
Forum: Hardware
Topic: ESP32S3 I2S strange problem, One Shot
Replies: 2
Views: 1998

Re: ESP32S3 I2S strange problem, One Shot

I think I found the problem in ESP32 driver. According to https://github.com/espressif/esp-idf/blob/master/components/driver/i2s/i2s_common.c , line 1075. When we put data to i2s_channel_write (IDF 5.0) or i2s_write (IDF 4.x), which I believe they use the same mechanism. It will be put on the curren...
by bnarit
Sat Jan 14, 2023 11:57 am
Forum: Hardware
Topic: ESP32S3 I2S strange problem, One Shot
Replies: 2
Views: 1998

ESP32S3 I2S strange problem, One Shot

I have tried to use ESP32S3 I2S to generate the precise pulse. However, I still have a problem on how to correctly use I2S driver (IDF4.4). In theory, if the buffer was written by i2s_write , it should fill the DMA and the shift out to I2S and sent out after the last block of DMA has been sent. I ha...
by bnarit
Wed Jan 04, 2023 4:31 am
Forum: Hardware
Topic: Connecting an ESP32 to a 32-bit parallel bus
Replies: 2
Views: 1466

Re: Connecting an ESP32 to a 32-bit parallel bus

I am working on I2S, it is easy in ESP32 idf <3.0.

But, getting > IDF 4, is another story.
by bnarit
Mon Dec 26, 2022 9:30 am
Forum: ESP32 Arduino
Topic: I'm looking for an example for I2S
Replies: 2
Views: 3130

Re: I'm looking for an example for I2S

The examples only show how to use with I2S driver, which is only for low critical task.

I cannot find the example for S3 either. I only found I2S driver for ESP32 which located here.https://github.com/bdring/FluidNC/blob/ ... I2SOut.cpp
by bnarit
Mon Dec 26, 2022 9:26 am
Forum: Hardware
Topic: ESP32-S3 I2S DMA Interrupt
Replies: 5
Views: 2543

Re: ESP32-S3 I2S DMA Interrupt

We have tried the I2S Driver, but is seems to have some glitch. What we are trying to do is use I2S to control the motor, which requires a constant time loop for feedback control. We need an interrupt that refills and tricks periodically. We also reference to I2SOut of FluidNC in ESP32. Could you pl...
by bnarit
Sun Dec 11, 2022 3:44 am
Forum: Hardware
Topic: ESP32-S3 I2S DMA Interrupt
Replies: 5
Views: 2543

Re: ESP32-S3 I2S DMA Interrupt

Yes, that was my intention.

Thx.
by bnarit
Sat Dec 10, 2022 10:53 am
Forum: Hardware
Topic: ESP32-S3 I2S DMA Interrupt
Replies: 5
Views: 2543

Re: ESP32-S3 I2S DMA Interrupt

I want to use I2S to periodically generate a synthesis signal, outgoing, with high speed. Filling the tx buffer from tasking using RTOS is workable, but I believe it is more stable to use the interrupt sending by switching between transmission queues. RTOS can handle only 10+ ms with good stability....
by bnarit
Fri Dec 09, 2022 9:51 am
Forum: Hardware
Topic: ESP32-S3 I2S DMA Interrupt
Replies: 5
Views: 2543

ESP32-S3 I2S DMA Interrupt

I'm trying to get started on ESP32-S3 I2S DMA with interrupt. I have success on ESP32-S3 I2S with polling using i2s_write. However, it doesn't ensure that the tx data is transported orderly. Interrupt would be a better option. I have tried on ESP32 I2S successfully with DMA and Interrupt. But since ...