ESP32 Audio DMA Settings Explained - dma_buf_len and dma_buf_count
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:
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:
I’ve also got a whole series around audio on the ESP32 which you can find here along with links to sample code:
You can pick up an I2S Amplifier (MAX98357) here:
An INMP441 I2S Microphone here:
Or my own ICS-43434 I2S Microphone here:
And ESP32 Dev board:
----
Patreon:
ko-fi:
1 view
352
94
1 month ago 00:22:49 1
Home Made Quansheng UV-K5 Desktop Transceiver
2 months ago 01:28:34 1
Design PCBs Faster with AI : ESP32 AI Pin Tutorial
5 months ago 00:36:56 1
. Часть 1. Что это такое?
7 months ago 00:09:56 1
Simple ESP32 Internet radio on VFD Display
9 months ago 00:00:54 1
ESPradio V2 AAC
10 months ago 00:16:27 1
The BEST ESP32 project based on ChatGPT | IOT Projects | NextPCB
11 months ago 00:14:50 1
Интернет-радио microMedia - радио, часы с боем и аудио sd-плеер в одном корпусе
12 months ago 00:15:32 1
Revamping Old School Pinball with an ESP32
1 year ago 00:11:18 1
Try these 16 Brilliant ESP32 projects before 2023 ends!
1 year ago 00:21:47 1
Ping Pong LED Wall v3
1 year ago 00:15:44 1
I made a VGA card that blew my mind
1 year ago 00:06:51 2
Audio-player на ESP32 с помощью ШИМ
1 year ago 00:12:05 1
Running ChatGPT on ESP32 🔥🔥
1 year ago 00:24:01 1
Build your own Alexa with the ESP32 and TensorFlow Lite