Masiar
Posts: 23
Joined: Wed Feb 06, 2013 9:32 am

How to read noise value from microphone amplifier

Wed Apr 13, 2016 9:43 am

Hello,

It may seem stupid, but I can't really find a solution on the internet. I have this microphone: https://www.adafruit.com/products/1063 and I wire it to my Pi1 correctly (3.3v to VCC, GND to GND, OUT to a GPIO pin, say 18). For some reason I can't read the value of the GPIO pin. I tried with nodejs ( rpi-gpio and pi-gpio), and with python (just the rpio command line interface). The nodejs scripts give an error, while within the rpio CLI I see I receive a value ("on") but I can't read it.

Does anybody have a simple script of whatever kind that lets me read the value of the microphone, say every second? I just have 4 microphones here and I want to check if they work! That's it.

Thanks!

drgeoff
Posts: 10832
Joined: Wed Jan 25, 2012 6:39 pm

Re: How to read noise value from microphone amplifier

Wed Apr 13, 2016 10:48 am

That microphone has an analogue output. You cannot read that with a RPi which has no analogue inputs.

You can use a USB sound card which has a line input. If you just want to test the mics wire on a lead with 3.5 mm plug and plug into the LINE socket on most PCs and laptops.
Quis custodiet ipsos custodes?

Masiar
Posts: 23
Joined: Wed Feb 06, 2013 9:32 am

Re: How to read noise value from microphone amplifier

Wed Apr 13, 2016 11:38 am

Thanks for the kind reply. I have a MCP3008 8-channel 10 bit ADC converter and wired it like the following link explains https://learn.adafruit.com/reading-a-an ... -a-mcp3008 , it seems to me I now am able to read analog inputs. Am I right?

In the provided link they wire it with a potentiometer, which is not useful in my case. Would it be sufficient to connect the "OUT" pin of the microphone to the MCP3008 (like they did with the potentiometer)? And if that is the case, which pin - given such configuration - should I use to read the data of the microphone?

Thanks!

Return to “Beginners”