connect microphone to pic?


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429

    Default connect microphone to pic?

    Hi,

    I want to make a sound sensitive switch with a PIC. It needs to have variable sensitivity.

    What i'm thinking is, use a PIC with a AD converter, and compare the AD reading against the currently set sensitivity variable.

    What i'm not sure about is how to connect the microphone. Connecting the mic directly to an I/O pin surely wont work. I'm assuming i'd need some kind of amplification, but I have no idea where to start.

    Does any1 have any ideas?
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    This looks like it might work.
    If you're using an electret microphone.

    http://www.alanmacek.com/usb/

    Look at the schematic near the bottom.
    <br>
    DT

  3. #3
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hi Kamikaze,

    If you want to consider another circuit, goto www.aaroncake.net/circuits and search for SOUND LEVEL METER. Where the input to the bar graph is you could feed that into a PIC analog pin and go from there.

    There are many published articles for what you want to do but I think after looking at Darrel's and mine you should be able to accomplish what you are looking to do.

    Did you get your other LCD project going? I was referring to using a serial LCD. Sparkfun has one very reasonably priced and very easy to work with.

    HTH,

    BobK

  4. #4
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Thanks Darrel and BobK. I'll have a look at both of those now, and i'm sure i'll work it out.

    I got the LCD going. In the end i opted the easy way out and went with an 18-pin PIC instead of the 8-pin i wanted to use - Mainly to minimize the physical size of the circuit.
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  5. #5
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi,

    See page 7 of this application note.

    AVR335: Digital Sound Recorder with AVR® and DataFlash®
    http://www.atmel.com/dyn/resources/p...ts/doc1456.pdf

    Best regards,

    Luciano

Similar Threads

  1. How to connect Buzzer to PIC?
    By koossa in forum Schematics
    Replies: 32
    Last Post: - 21st April 2010, 04:17
  2. Free Project - 245 LED Display
    By T.Jackson in forum Code Examples
    Replies: 221
    Last Post: - 16th August 2009, 04:59
  3. how to connect ac sensor to PIC ?
    By iugmoh in forum Schematics
    Replies: 3
    Last Post: - 1st June 2008, 18:35
  4. Microphone to PIC
    By scaenix in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 10th March 2007, 20:13
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts