Page 2 of 3

Re: Four plus channels of audio recording with I2S

Posted: Sun Jan 17, 2021 11:44 am
by mattiesvzw
@cblondon I'm also trying to make a similar setup. It would be great if you could share your code with me too.
Thanks in advance!

Re: Four plus channels of audio recording with I2S

Posted: Fri Apr 23, 2021 12:33 am
by Jahpa79
Yes, I was able to use both I2S interfaces on the ESP32, and was successful in simultaneously capturing four channels of audio. It did take some experimenting with bits to get both interfaces to work properly. I'm happy to share code if you'd like.
@cblondon, I'd like to have your code as well if you don't mind. I'm also trying to have a mic array and use a ESP32 will save me some money.

Re: Four plus channels of audio recording with I2S

Posted: Fri Apr 23, 2021 1:21 pm
by michikite
Did anyone manage to capture more than 4 audio channels using the parallel camera mode?

Re: Four plus channels of audio recording with I2S

Posted: Fri Apr 23, 2021 7:34 pm
by Xgemone
I'm happy to share code if you'd like.
Yes please share your code, I am also very interested in the solution.
I am also interested, I also want to see.

Re: Four plus channels of audio recording with I2S

Posted: Wed Jun 02, 2021 12:40 pm
by MP@L&T
I'm also interested in this code is you are happy to share it. Thanks.

Re: Four plus channels of audio recording with I2S

Posted: Thu Jul 15, 2021 1:38 pm
by DEEKSHITH D P
Yes, I was able to use both I2S interfaces on the ESP32, and was successful in simultaneously capturing four channels of audio. It did take some experimenting with bits to get both interfaces to work properly. I'm happy to share code if you'd like.
Please Share your code. It will be a grate help. I am also trying to read multiple channel ADC .

Re: Four plus channels of audio recording with I2S

Posted: Wed Aug 18, 2021 8:52 am
by ElPetro
Dear Cblondon,
I'd love too see your code, too, I'm struggling with the exact same objective of creating a 4 mics array for DOA :D
Thanks in advance!

Re: Four plus channels of audio recording with I2S

Posted: Tue Aug 24, 2021 10:59 am
by da_hon5
Hi,
I am also very interested in the code since I'm struggling a lot with sampling of multiple channels :)
Thanks in advance!

Re: Four plus channels of audio recording with I2S

Posted: Tue Jun 07, 2022 10:09 pm
by Schueler
The only way to record four (4) channels is using the two (2) peripherals and left and right of both peripherals.
This involves hardware that is able to drive only the left or right channel like a digital microphone.
Otherwise you have to build some additional hardware.

To capture four microphones, make one peripheral master, the other slave.
The slave can use the same clock (CLK) and fsk (LRCLK) pins of the master due to the io-matrix of the esp32.

Code: Select all

// SPI SOUND
#define I2SDI_1_PIN  (21)              // DIN  --> From external device(s)
#define I2SDI_2_PIN  (22)              // DIN  --> From external device(s)
#define I2SDO_PIN    (-1)              // NA
#define I2SCLK_PIN   (26)              // BCLK
#define LRCLK_PIN    (25)              // LRCLK


    master.begin( HSPI, I2SCLK_PIN, I2SDO_PIN, I2SDI_1_PIN, LRCLK_PIN );  // default SPI is HSPI
    slave.begin( VSPI, I2SCLK_PIN, I2SDO_PIN, I2SDI_2_PIN, LRCLK_PIN );  // default SPI is VSPI

Re: Four plus channels of audio recording with I2S

Posted: Fri Aug 19, 2022 8:02 pm
by filograno
I'm happy to share code if you'd like.
yes please, should be great....
I'm trying to read simultaneously from a microphone and a line in audio signal both I2S compatibles.....

Thank you in advance