KushP1
Posts: 4
Joined: Tue Jul 11, 2017 4:01 pm

Microphone Hookup to Pi for Beginners!

Tue Jul 11, 2017 4:06 pm

So I am working with a Raspberry Pi 3 and have purchased these two mics: https://www.adafruit.com/product/1739 and https://www.adafruit.com/product/1713. I'm new to the pi, so what is the best way to connect it. Do I need to buy something else with it?

klricks
Posts: 6442
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Microphone Hookup to Pi for Beginners!

Thu Jul 13, 2017 4:23 am

KushP1 wrote:So I am working with a Raspberry Pi 3 and have purchased these two mics: https://www.adafruit.com/product/1739 and https://www.adafruit.com/product/1713. I'm new to the pi, so what is the best way to connect it. Do I need to buy something else with it?
What are you planning on using a microphone for?

The piezo element in your first link is generally used as a speaker or noise buzzer/ tone generator. However It is possible to use the piezo as a sensor to detect noises such as knocking or banging (drum pad ) etc. In either case the piezo would require external circuits. The noise sensor would need an Analog to Digital Converter (ADC) to make it work.

Your second link shows an 'electret' type microphone. To use a microphone (electrec or standard) with the RPi you need to add a sound card of some sort to the RPi.

Google has a lot if info on all the above.......
Unless specified otherwise my response is based on the latest and fully updated Raspbian Buster w/ Desktop OS.

User avatar
flatmax
Posts: 336
Joined: Thu May 26, 2016 10:36 pm

Re: Microphone Hookup to Pi for Beginners!

Thu Jul 13, 2017 8:05 am

Hi there,

You need to put your electret microphpone through an ADC (analogue to digital converter). The ADC should also be setup to power and receive the audio from the electret mic.

There are some products out there which can do this. If you purchase one of the Audioinjector boards, they have a footprint available for plugging electret microphones in and will provide power to them.

Hope that helps,
Matt
Check the Ultra 2 sound card - use our shop instead of Amazon Europe (Amazon USA is live).
Sound card for the Raspberry Pi with inbuilt microphone : www.audioinjector.net
Audio Inector Octo multitrack GPIO sound card

PiGraham
Posts: 3553
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Microphone Hookup to Pi for Beginners!

Thu Jul 13, 2017 8:26 am

KushP1 wrote:So I am working with a Raspberry Pi 3 and have purchased these two mics: https://www.adafruit.com/product/1739 and https://www.adafruit.com/product/1713. I'm new to the pi, so what is the best way to connect it. Do I need to buy something else with it?
The easiest route for a beginner is to use a USB device with a microphone. That could be a a mic, a webcam, a headset or something else. The mic part should just show up as audio input channel in Linux and you won't have to worry about pre-amps r ADCs, impedance matching or getting the right signal levels.

Adafruit do this: https://www.adafruit.com/product/3367. Most webcams have a mic.

USB soundcards will work, but watch the signal levels of some mics amd sensitivity of mic inputs on these cards. You may need an amplifier (microphone pre-amp)

Next up are I2S mics that are all digital and can connect direct to a Pi. https://www.adafruit.com/product/3421

The electret mic you linked could be used with a sound card as it has on-board amp.

KushP1
Posts: 4
Joined: Tue Jul 11, 2017 4:01 pm

Re: Microphone Hookup to Pi for Beginners!

Thu Jul 13, 2017 3:09 pm

klricks wrote:
KushP1 wrote:So I am working with a Raspberry Pi 3 and have purchased these two mics: https://www.adafruit.com/product/1739 and https://www.adafruit.com/product/1713. I'm new to the pi, so what is the best way to connect it. Do I need to buy something else with it?
What are you planning on using a microphone for?
I want to use it to log frequency data for a project I'm working on. It's not for recording.

KushP1
Posts: 4
Joined: Tue Jul 11, 2017 4:01 pm

Re: Microphone Hookup to Pi for Beginners!

Thu Jul 13, 2017 3:16 pm

flatmax wrote:Hi there,

You need to put your electret microphpone through an ADC (analogue to digital converter). The ADC should also be setup to power and receive the audio from the electret mic.

There are some products out there which can do this. If you purchase one of the Audioinjector boards, they have a footprint available for plugging electret microphones in and will provide power to them.

Hope that helps,
Matt
Do you have links for any of those?

KushP1
Posts: 4
Joined: Tue Jul 11, 2017 4:01 pm

Re: Microphone Hookup to Pi for Beginners!

Thu Jul 13, 2017 3:17 pm

PiGraham wrote:
KushP1 wrote:So I am working with a Raspberry Pi 3 and have purchased these two mics: https://www.adafruit.com/product/1739 and https://www.adafruit.com/product/1713. I'm new to the pi, so what is the best way to connect it. Do I need to buy something else with it?
The easiest route for a beginner is to use a USB device with a microphone. That could be a a mic, a webcam, a headset or something else. The mic part should just show up as audio input channel in Linux and you won't have to worry about pre-amps r ADCs, impedance matching or getting the right signal levels.

Adafruit do this: https://www.adafruit.com/product/3367. Most webcams have a mic.

USB soundcards will work, but watch the signal levels of some mics amd sensitivity of mic inputs on these cards. You may need an amplifier (microphone pre-amp)

Next up are I2S mics that are all digital and can connect direct to a Pi. https://www.adafruit.com/product/3421

The electret mic you linked could be used with a sound card as it has on-board amp.
So the I2S Mic goes directly to the GPIO pins? No other things needed?

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 11852
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Microphone Hookup to Pi for Beginners!

Thu Jul 13, 2017 5:24 pm

KushP1 wrote:
PiGraham wrote:
KushP1 wrote:So I am working with a Raspberry Pi 3 and have purchased these two mics: https://www.adafruit.com/product/1739 and https://www.adafruit.com/product/1713. I'm new to the pi, so what is the best way to connect it. Do I need to buy something else with it?
The easiest route for a beginner is to use a USB device with a microphone. That could be a a mic, a webcam, a headset or something else. The mic part should just show up as audio input channel in Linux and you won't have to worry about pre-amps r ADCs, impedance matching or getting the right signal levels.

Adafruit do this: https://www.adafruit.com/product/3367. Most webcams have a mic.

USB soundcards will work, but watch the signal levels of some mics amd sensitivity of mic inputs on these cards. You may need an amplifier (microphone pre-amp)

Next up are I2S mics that are all digital and can connect direct to a Pi. https://www.adafruit.com/product/3421

The electret mic you linked could be used with a sound card as it has on-board amp.
So the I2S Mic goes directly to the GPIO pins? No other things needed?
I read nothing in his statements that makes this likely. Its wishful thinking. At a minimum you will need a comparator (analog IC) that converts small AC variations to digital levels.
something like this would work:
Image

User avatar
rpdom
Posts: 14460
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Microphone Hookup to Pi for Beginners!

Thu Jul 13, 2017 5:42 pm

mahjongg wrote:
KushP1 wrote:
PiGraham wrote: Next up are I2S mics that are all digital and can connect direct to a Pi. https://www.adafruit.com/product/3421
So the I2S Mic goes directly to the GPIO pins? No other things needed?
I read nothing in his statements that makes this likely. Its wishful thinking. At a minimum you will need a comparator (analog IC) that converts small AC variations to digital levels.
The linked Adafruit I2S mic module can connect directly to the Pi and produces a direct digital output. Having just looked at the examples on their website it's quite a neat little thing. Two can be wired easily to make a stereo pair.

PiGraham
Posts: 3553
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Microphone Hookup to Pi for Beginners!

Fri Jul 14, 2017 11:16 am

KushP1 wrote:
PiGraham wrote:
KushP1 wrote:So I am working with a Raspberry Pi 3 and have purchased these two mics: https://www.adafruit.com/product/1739 and https://www.adafruit.com/product/1713. I'm new to the pi, so what is the best way to connect it. Do I need to buy something else with it?
The easiest route for a beginner is to use a USB device with a microphone. That could be a a mic, a webcam, a headset or something else. The mic part should just show up as audio input channel in Linux and you won't have to worry about pre-amps r ADCs, impedance matching or getting the right signal levels.

Adafruit do this: https://www.adafruit.com/product/3367. Most webcams have a mic.

USB soundcards will work, but watch the signal levels of some mics amd sensitivity of mic inputs on these cards. You may need an amplifier (microphone pre-amp)

Next up are I2S mics that are all digital and can connect direct to a Pi. https://www.adafruit.com/product/3421

The electret mic you linked could be used with a sound card as it has on-board amp.
So the I2S Mic goes directly to the GPIO pins? No other things needed?
Yes, it has a digital interface that talks direct to I2S on the GPIO pins. See Adafruit info. I haven't used one myself so I can't do much more than point you in a possible direction. As I said, I suggest USB webcam as the easiest way to start. Nothing else required, no tricky wiring or drivers. Should be plug and play.

dfclark
Posts: 5
Joined: Thu May 05, 2016 6:40 pm

Re: Microphone Hookup to Pi for Beginners!

Sun Apr 21, 2019 8:59 pm

The example on the Adafruit site for building support in the Raspbian kernel for the I2S device doesn't work, the kernel build fails and so far Adafruit hasn't provided any updated tutorial or guidance.

olddumbandnew
Posts: 16
Joined: Mon Apr 08, 2019 2:47 pm

Re: Microphone Hookup to Pi for Beginners!

Sun Apr 28, 2019 11:39 am

I'm about to do a similar thing (hook up my homemade shotgun mic). I've found this that should mean I can adjust the levels (although my mic is pre-amped it still needs a post pre-amp kick)

https://www.currys.co.uk/gbuk/computing ... lsrc=aw.ds

Return to “HATs and other add-ons”