• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomepcDuinoArduino-ish ProgramUse Breakout Board for ADMP401 MEMS Microphone on ...
Previous Next

Use Breakout Board for ADMP401 MEMS Microphone on pcduino

Posted by: admin , March 6, 2014

[vc_row][vc_column width=”1/1″][vc_tour][vc_tab title=”Module introduce” tab_id=”1393984144-1-5″][vc_column_text]ADMP_1__06828.1381889001.1280.1280

This tiny breakout board features the ADMP401 MEMs microphone. One of the key advantages to this breakout and microphone is the bottom ported input. This means the microphone’s input can fit flush against the enclosure of your project. Plus you will not have to deal with trying to solder the microphone’s wacky footprint. Wootness!

The amplifier on the breakout has a gain of 67 and more than meets the bandwidth requirements of the mic. The amplifier’s AUD output will float at one half Vcc when no sound is being picked up. The amplifier produces a peak-to-peak output of about 200mV when the microphone is held at arms length and is being talked into at normal conversational volume levels. So the AUD output can easily be connected to the ADC of a micro.[/vc_column_text][/vc_tab][vc_tab title=”Wiring Diagram” tab_id=”1393984144-2-40″][vc_column_text]QQ图片20140304205156
VCC   —> pcduino 3.3V

GND   —>pcduino  GND

Out signa  —>pcduino A2
[/vc_column_text][/vc_tab][vc_tab title=”Test code” tab_id=”1394041787742-2-1″][vc_column_text]

#include <core.h>
int adc_id = 2;
int delay_us = 100000;
int HistoryValue = 0;

char buffer[100];

void setup()
{
  memset(buffer,0,sizeof(buffer));
}

void loop()
{

    int value = analogRead(adc_id); // get adc value

    value = ((float)value/4096)*sizeof(buffer);

    if(((HistoryValue>=value) && ((HistoryValue - value) > 2)) || ((HistoryValue<value) && ((value - HistoryValue) > 2)))
    {
      memset(buffer,'*',value);
      buffer[value] = 0;
      printf("%sn",buffer);
    }

    HistoryValue = value; 
}

[/vc_column_text][/vc_tab][vc_tab title=”Test result” tab_id=”1394041865964-3-2″][vc_column_text]

You will see the change of the result when your hand slip past the module

QQ图片20140304203240

The screen will  output waveform figure which is just like spectrum but it  is just backwards when the sound change .

[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]

Tags: Arduino-ish Program

Share!
Tweet

admin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors