Flyverse
Posts: 3
Joined: Mon Dec 07, 2015 10:04 pm

Running multiple microphones in "parallel"

Mon Dec 07, 2015 10:12 pm

Hey guys.

For a project of mine I need to be able to connect and listen to multiple microphones simultaneously. Connecting each microphone and simply listening it is probably really easy (Haven't done it yet, so I can't really judge, but I guess that it will be easy). The problem is that precision is crucial in my project: I somehow need to let the RPi listen to only one microphone in one thread, with all of those threads running in "parallel".

More precise explanation on why I want to do so:
After each Microphone input I receive, which hopefully is every few milliseconds or less, I need to perform some mathematical operations (Autocorrelation and such). I can't allow myself to let those operations put the other microphones input on hold, so I need to let them run in parallel.

Do some of you guys happen to know what layer of hardware I should use to connect the microphones with the RPi in order to achieve what I want to do?


Thanks!

Kind regards,
Flyverse

sprinkmeier
Posts: 410
Joined: Mon Feb 04, 2013 10:48 am
Contact: Website

Re: Running multiple microphones in "parallel"

Tue Dec 08, 2015 9:52 am

Using a normal audio API will most likely give you a fair degree of buffering.
pro: no problems with 'pausing' one mic while reading the other one
con: calibrating the amount of buffering is going to be ... challenging.

If you really want sample-by-sample accuracy get a multi-channel ADC.

jb63
Posts: 152
Joined: Mon May 11, 2015 6:41 pm
Location: Chicago, USA
Contact: Website

Re: Running multiple microphones in "parallel"

Tue Dec 08, 2015 12:04 pm

Sounds like an interesting project. Are you after some sort of array processing / beamforming ?

Flyverse
Posts: 3
Joined: Mon Dec 07, 2015 10:04 pm

Re: Running multiple microphones in "parallel"

Wed Dec 09, 2015 8:59 am

@sprinkmeier
Thanks, I'll check that out :)

@jb63 Yep, exactly that!

Flyverse
Posts: 3
Joined: Mon Dec 07, 2015 10:04 pm

Re: Running multiple microphones in "parallel"

Sat Jan 09, 2016 2:17 pm

Anyone here who could help me please =S?

sprinkmeier
Posts: 410
Joined: Mon Feb 04, 2013 10:48 am
Contact: Website

Re: Running multiple microphones in "parallel"

Sat Jan 09, 2016 9:34 pm

Flyverse wrote:@sprinkmeier
Thanks, I'll check that out :)
What have you found out?
Have you selected a chip?
Flyverse wrote: @jb63 Yep, exactly that!
How many channels are you beamforming?
time-domain or frequency-domain?
what bandwidth (based on your original "After each Microphone input I receive, which hopefully is every few milliseconds or less," it's only a few hundred Hz)?

fstakem
Posts: 1
Joined: Tue May 21, 2013 7:59 pm

Re: Running multiple microphones in "parallel"

Sat Sep 24, 2016 1:40 pm

Anyone else know of a good solution? I am trying to do the same sort of thing.

Return to “HATs and other add-ons”