ESP32 Audio DMA Settings Explained - dma_buf_len and dma_buf_count @atomic14
ESP32 Audio DMA Settings Explained - dma_buf_len and dma_buf_count  @atomic14
Uploaded April 2021 | Updated September 2026, 1 week ago
I2S audio and DMA it's a mysterious world. What are these parameters: dma_buf_count and dma_buf_len? What are they for? And what values should they be set to?

Thanks to PCBWay for sponsoring this video, PCBWay offer PCB Production, CNC and 3D Printing, PCB Assembly and much much more. You can find their details here: PCBWay.com/?from=atomic

In this video, we try and answer the question around dma_buf_count and dma_buf_len.

I'm going to be focussing on I2S, streaming sample data to and from the CPU to microphones and speakers.

There are two critical parameters: dma_buf_count and dma_buf_len - and it's not always obvious what values to use.

What is DMA? DMA stands for Direct Memory Access. It allows peripherals to directly access the system memory without involving the CPU.

When using DMA, the CPU initiates a transfer between memory and the peripheral. The transfer is all taken care of by the DMA controller and the CPU is free to go off and do other work.

You can find detailed information about the DMA system that is used on the ESP32 here: espressif.com/sites/default/files/documentation/esp32_technical_reference_manual_en.pdf

I've also got a whole series around audio on the ESP32 which you can find here along with links to sample code: youtube.com/playlist?list=PL5vDt5AALlRfGVUv2x7riDMIOX34udtKD

You can pick up an I2S Amplifier (MAX98357) here: amzn.to/3cg88Z5
An INMP441 I2S Microphone here: amzn.to/3cicuiv
Or my own ICS-43434 I2S Microphone here: tindie.com/products/21519
And ESP32 Dev board: amzn.to/3gb6fyc


----
Patreon: patreon.com/atomic14
ko-fi: ko-fi.com/atomic14
ESP32 Audio DMA Settings Explained - dma_buf_len and dma_buf_countSuper Easy ESP32-S3 Dev Board#shorts - 20,000mAh? https://youtu.be/PEHDVoAE8sEHarvesting Solar Power for Low-Energy Electronics: Can We Run Forever on Scottish Winter Sun?ChatGPT Cocktail Bot In ActionESP32-S3 ZX Spectrum - Full Color Silk Screen is really cool!Surprisingly Clever DVD Eject MechanismESP32 PDM Microphone - What do you do with the L/R pin?Wireless Powered Raspberry PiI Asked AI to Design 12 ESP32 Dev Boards. It Said No.Blinkety Blink #electronics  #arduino #arduinoprojectReviving FREE Batteries: Test, Make Safe & DIY Capacity Tester!
atomic14 |

ESP32 Audio DMA Settings Explained - dma_buf_len and dma_buf_count

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER