Four plus channels of audio recording with I2S

mattiesvzw
Posts: 1
Joined: Sun Jan 17, 2021 11:36 am

Re: Four plus channels of audio recording with I2S

Postby mattiesvzw » Sun Jan 17, 2021 11:44 am

@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!

Jahpa79
Posts: 1
Joined: Thu Apr 22, 2021 10:49 pm

Re: Four plus channels of audio recording with I2S

Postby Jahpa79 » Fri Apr 23, 2021 12:33 am

cblondon wrote:
Thu Jan 07, 2021 9:29 am
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.

michikite
Posts: 16
Joined: Thu Oct 22, 2020 1:35 am

Re: Four plus channels of audio recording with I2S

Postby michikite » Fri Apr 23, 2021 1:21 pm

Did anyone manage to capture more than 4 audio channels using the parallel camera mode?

Xgemone
Posts: 1
Joined: Fri Apr 23, 2021 7:16 pm

Re: Four plus channels of audio recording with I2S

Postby Xgemone » Fri Apr 23, 2021 7:34 pm

JoeCool wrote:
Thu Jan 14, 2021 9:12 pm
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.
Tea better than coffee! ;)

MP@L&T
Posts: 8
Joined: Wed Feb 17, 2021 11:34 am

Re: Four plus channels of audio recording with I2S

Postby MP@L&T » Wed Jun 02, 2021 12:40 pm

I'm also interested in this code is you are happy to share it. Thanks.

DEEKSHITH D P
Posts: 1
Joined: Thu Jul 15, 2021 1:28 pm

Re: Four plus channels of audio recording with I2S

Postby DEEKSHITH D P » Thu Jul 15, 2021 1:38 pm

cblondon wrote:
Thu Jan 07, 2021 9:29 am
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 .

ElPetro
Posts: 1
Joined: Wed Aug 18, 2021 8:46 am

Re: Four plus channels of audio recording with I2S

Postby ElPetro » Wed Aug 18, 2021 8:52 am

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!

da_hon5
Posts: 2
Joined: Tue Aug 24, 2021 10:17 am

Re: Four plus channels of audio recording with I2S

Postby da_hon5 » Tue Aug 24, 2021 10:59 am

Hi,
I am also very interested in the code since I'm struggling a lot with sampling of multiple channels :)
Thanks in advance!

Schueler
Posts: 1
Joined: Tue Jun 07, 2022 9:49 pm

Re: Four plus channels of audio recording with I2S

Postby Schueler » Tue Jun 07, 2022 10:09 pm

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

filograno
Posts: 1
Joined: Fri Aug 19, 2022 7:54 pm

Re: Four plus channels of audio recording with I2S

Postby filograno » Fri Aug 19, 2022 8:02 pm

cblondon wrote:
Thu Jan 07, 2021 9:29 am
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

Who is online

Users browsing this forum: No registered users and 86 guests