How To Connect A Microphone To Arduino

Table of contents:

How To Connect A Microphone To Arduino
How To Connect A Microphone To Arduino

Video: How To Connect A Microphone To Arduino

Video: How To Connect A Microphone To Arduino
Video: Wireless Microphone Projects - With Arduino Project Conect Phone Mic || at Home 2024, December
Anonim

Let's connect the module with a sound sensor (microphone) to the Arduino.

Microphone module
Microphone module

It is necessary

  • - Arduino;
  • - module with electret capsule microphone CMA-4544PF-W;
  • - connecting wires.

Instructions

Step 1

The electret microphone CMA-4544PF-W, which is the basis of the module, responds to sound waves with frequencies from 20 Hz to 20 kHz. The microphone is omnidirectional, i.e. sensitive to sound coming from all directions, with a sensitivity of -44 dB. More details about the device and principle of operation of electret microphones can be found in the article, the link to which is given in the list of sources.

Electret microphone CMA-4544PF-W
Electret microphone CMA-4544PF-W

Step 2

The module contains an electret microphone that requires a 3 to 10 volt power supply. The polarity of the connection is important. Let's connect the module according to a simple scheme: pin "V" of the module - to power supply +3, 3 or +5 volts, pin "G" of the module - to GND Arduino, pin "S" - to analog port "A0" Arduino.

Arduino microphone connection diagram
Arduino microphone connection diagram

Step 3

Let's write a program for Arduino that will read the readings from the microphone and output them to the serial port in millivolts. What is it for? For example, to measure the noise level; to control the robot: go on a clap or stop. Some even manage to "train" the Arduino to detect different sounds and thus create a more intelligent control: the robot will understand the commands "Stop" and "Go" (as, for example, in the article "Voice recognition with Arduino" in the sources).

Sketch for reading the readings of an electret microphone
Sketch for reading the readings of an electret microphone

Step 4

Let's put together a kind of equalizer according to the attached diagram.

Simplest
Simplest

Step 5

Modifying the sketch a little. Let's add LEDs and their thresholds.

Equalizer is ready! Try speaking into the microphone and you will see the LEDs turn on when you change the speech volume.

Recommended: