Need a solution for connecting multiple microphones to PC

Discussion in 'Peripherals' started by repoman0, Oct 17, 2011.

  1. repoman0

    repoman0 Golden Member

    Joined:
    Jun 17, 2010
    Messages:
    1,014
    Likes Received:
    4
    For my electrical engineering capstone project. We're testing an ultrasound positioning system using six cheap electret microphones and a simple biasing/power circuit - the whole system will eventually be implemented on some sort of microcontroller.

    But, in the meantime, we need some way to have at least four, preferably six analog audio inputs to a PC for testing our algorithms in MATLAB. 192kHz sampling of all inputs would be best (for good ultrasound reproduction). Does anyone have a solution? We can spend up to $300ish, less is better.

    We will not be using XLR cables but regular 3.5mm jacks.

    Thanks!
     
  2. videogames101

    videogames101 Diamond Member

    Joined:
    Aug 24, 2005
    Messages:
    6,768
    Likes Received:
    1
    #2 videogames101, Oct 17, 2011
    Last edited: Oct 17, 2011
  3. repoman0

    repoman0 Golden Member

    Joined:
    Jun 17, 2010
    Messages:
    1,014
    Likes Received:
    4
    Certainly looks good - 96kHz will probably limit us to under 40kHz when the final result should be narrowband at 45kHz but looks fine for testing. Thanks, I'll update if we get it and test!
     
  4. corkyg

    corkyg Elite Member<br>Super Moderator <br>Peripherals
    Super Moderator

    Joined:
    Mar 4, 2000
    Messages:
    25,841
    Likes Received:
    4
    Sounds like a mixer board for the mikes - and one connection from it to the PC.
     
  5. Modelworks

    Modelworks Lifer

    Joined:
    Feb 22, 2007
    Messages:
    16,237
    Likes Received:
    0
    You will need to amp those electret mics for most cards to be able to accept the signal. Not many cards have 6 mic inputs, usually they are line level.

    I would put a jfet opamp like the lm358 connected to the mics then output that to line level on the sound cards. I also use this setup for input to a dsp chip for sampling so it is something you can use on the final project too.

    Circuit I use for the mics
    http://circuitsfun.blogspot.com/2011/08/simple-lm358-mic-preamplifier.html
     
  6. repoman0

    repoman0 Golden Member

    Joined:
    Jun 17, 2010
    Messages:
    1,014
    Likes Received:
    4
    Right, I realize that the power circuit I built already will need to be revised so that it can bring the little mics up to line level. The Delta 1010 linked above has exactly 6 RCA line inputs.. perfect! I'd found this earlier - http://www.epanorama.net/circuits/micamp.html - not sure if the LM358 that you linked or the BJT amp will have better quality. We'll have to try both!

    Mixer was my first thought as well but they are very expensive even for 2 inputs, and use XLR / 48V inputs which we don't want to deal with.. line in is way easier, and better transfers to DSP and microcontroller later.
     
    #6 repoman0, Oct 18, 2011
    Last edited: Oct 18, 2011
  7. vbuggy

    vbuggy Golden Member

    Joined:
    Nov 13, 2005
    Messages:
    1,612
    Likes Received:
    0
    RME Octamic II will do what you need. A reasonably priced multi-mic 192Khz ADC.

    EDIT: Oops, scratch the reco - I didn't see the $300 limit.
     
  8. Modelworks

    Modelworks Lifer

    Joined:
    Feb 22, 2007
    Messages:
    16,237
    Likes Received:
    0

    Use the LM358 or even better the same circuit as the LM358 but use a TL064 opamp . It has quad inputs and very low noise. Both are Jfet based so quality is good. Using BJT the problem you will have is the noise floor is much higher. I can connect a single mic to the opamp and change out the pot for a 1.2M resistor, giving it 100,000 gain. The mic is so sensitive that I can hear a whisper at 10 feet from the mic. Paper tearing sounds like sand paper at the same distance. Not sure you want that high a gain but opamp is the way to go.
    Price is also cheap, just 68 cents
    http://search.digikey.com/us/en/products/TL064CN/296-1773-5-ND/277419

    I feed that into a dsp chip and process it with filters to lock onto voices in the distance.
     
  9. repoman0

    repoman0 Golden Member

    Joined:
    Jun 17, 2010
    Messages:
    1,014
    Likes Received:
    4
    Awesome, I really appreciate the suggestions. Will definitely buy some of the TL064, I'm about to place an order with digikey for the parts to build a bunch of those amplifier circuits that you linked.

    We don't need a super high gain; the ultrasound noise will come from PWM power regulation of BLDC motors using switching freq above 20kHz and it seems pretty "loud" .. not that we can hear it!
     
  10. repoman0

    repoman0 Golden Member

    Joined:
    Jun 17, 2010
    Messages:
    1,014
    Likes Received:
    4
    All electronics and the Delta1010 are in, now to get to work on real time hardware access with matlab :eek: