{"id":16721,"date":"2016-09-16T10:00:07","date_gmt":"2016-09-16T17:00:07","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=16721"},"modified":"2016-09-19T13:30:07","modified_gmt":"2016-09-19T20:30:07","slug":"pmod-mic3-a-very-short-introduction","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/pmod-mic3-a-very-short-introduction\/","title":{"rendered":"Pmod MIC3: A Very Short Introduction"},"content":{"rendered":"<p>The <a href=\"https:\/\/digilent.com\/shop\/pmodmic3-mems-microphone-with-adjustable-gain\/\">Pmod MIC3 <\/a>is a useful tool for those wanting external control over their circuit. For example, it can be used to program a light that turns off with a simple hand clap or speech commands.<\/p>\n<p>The <a href=\"https:\/\/digilent.com\/shop\/pmodmic3-mems-microphone-with-adjustable-gain\/\">MIC3 <\/a>uses what is called a MEMS-type microphone. MEMS stands for Micro Electronic Mechanical Systems &#8211; and in this case, its basically a really small capacitor. When something makes noise, that sound is fed into a sort of pressure sensor in the MEMS <a href=\"https:\/\/en.wikipedia.org\/wiki\/Transducer\">transducer<\/a>. The sound pushes the sensor down, is released, and the sensor moves back.<\/p>\n<p>The transducer is hooked to an analog to digital converter. It converts the movement of the sensor to a digital signal and thus can be read by many more platforms than if it was strictly an analog signal.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-16728 aligncenter\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/09\/Capture-2.png\" alt=\"capture\" width=\"308\" height=\"412\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>To explore these capabilities,\u00a0I built a clap on\/clap off circuit using the <a href=\"https:\/\/digilent.com\/shop\/pmodmic3-mems-microphone-with-adjustable-gain\/\">Pmod MIC3 <\/a>and the <a href=\"https:\/\/digilent.com\/shop\/labview-physical-computing-kit-for-raspberry-pi-2\/\">Raspberry Pi 2<\/a>. You can check out my full <a href=\"http:\/\/www.instructables.com\/id\/Simple-Clap-OnOff-Circuit-Using-LabVIEW-Raspberry-\/\">Instructable here!<\/a><\/p>\n<p>For my project I used\u00a0the hardware below:<\/p>\n<ul>\n<li><a href=\"https:\/\/digilent.com\/shop\/pmodmic3-mems-microphone-with-adjustable-gain\/\" rel=\"nofollow\">Pmod MIC3<\/a><\/li>\n<li><a href=\"https:\/\/digilent.com\/shop\/labview-physical-computing-kit-for-raspberry-pi-2\/\" rel=\"nofollow\">Raspberry Pi 2<\/a><\/li>\n<li><a href=\"https:\/\/digilent.com\/shop\/wi-pi-usb-wifi-module\/\" rel=\"nofollow\">Wi-Pi<\/a><\/li>\n<li>Breadboard<\/li>\n<li>LED<\/li>\n<li><a href=\"https:\/\/digilent.com\/shop\/labview-home-bundle\/\" rel=\"nofollow\">LabVIEW 2014<\/a><\/li>\n<li><a href=\"https:\/\/www.labviewmakerhub.com\/doku.php?id=libraries:linx:start\" rel=\"nofollow\">LINX 3.0<\/a><\/li>\n<\/ul>\n<p>I also\u00a0used <a href=\"https:\/\/digilent.com\/shop\/labview-home-bundle\/\" rel=\"nofollow\">LabVIEW 2014<\/a> to target the\u00a0<a href=\"https:\/\/digilent.com\/shop\/labview-physical-computing-kit-for-raspberry-pi-2\/\" rel=\"nofollow\">Raspberry Pi 2<\/a>\u00a0using\u00a0<a href=\"https:\/\/www.labviewmakerhub.com\/doku.php?id=libraries:linx:start\" rel=\"nofollow\">LINX 3.0<\/a>. I wired up my circuit with a single LED for demonstration purposes.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-16799 aligncenter\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/09\/F2375B3IT0LR35N.MEDIUM-600x458.jpg\" alt=\"f2375b3it0lr35n-medium\" width=\"600\" height=\"458\" data-wp-pid=\"16799\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/09\/F2375B3IT0LR35N.MEDIUM-600x458.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/09\/F2375B3IT0LR35N.MEDIUM.jpg 620w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Once that was complete, I finished the code in LabVIEW. The <a href=\"https:\/\/digilent.com\/shop\/pmodmic3-mems-microphone-with-adjustable-gain\/\" rel=\"nofollow\">Pmod MIC3<\/a> converts sound into voltage. That voltage is read out on the front panel and the LED turns on when the <a href=\"https:\/\/digilent.com\/shop\/pmodmic3-mems-microphone-with-adjustable-gain\/\" rel=\"nofollow\">Pmod<\/a>\u00a0hears\u00a0a clap.<\/p>\n<figure id=\"attachment_16800\" aria-describedby=\"caption-attachment-16800\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-16800 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/09\/F4CEIUMIT0LR3ND.MEDIUM-600x116.jpg\" alt=\"f4ceiumit0lr3nd-medium\" width=\"600\" height=\"116\" data-wp-pid=\"16800\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/09\/F4CEIUMIT0LR3ND.MEDIUM-600x116.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/09\/F4CEIUMIT0LR3ND.MEDIUM.jpg 620w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><figcaption id=\"caption-attachment-16800\" class=\"wp-caption-text\">Snapshot of the LabVIEW code.<\/figcaption><\/figure>\n<p>The set of controls on the front diagram are the important part. The D\/O Channel is what pin you have the LED plugged into and CS Channel is the <a href=\"https:\/\/digilent.com\/shop\/pmodmic3-mems-microphone-with-adjustable-gain\/\" rel=\"nofollow\">Pmod <\/a>CS pin number. The delay is how long the <a href=\"https:\/\/digilent.com\/shop\/pmodmic3-mems-microphone-with-adjustable-gain\/\" rel=\"nofollow\">Pmod <\/a>waits until it&#8217;s ready to listen again. Our threshold value is how high of a voltage you want the <a href=\"https:\/\/digilent.com\/shop\/pmodmic3-mems-microphone-with-adjustable-gain\/\" rel=\"nofollow\">Pmod <\/a>to recognize as a clap.<\/p>\n<p>The Pmod\u00a0<a href=\"https:\/\/digilent.com\/shop\/pmodmic3-mems-microphone-with-adjustable-gain\/\">MIC3 <\/a>also has adjustable gain. \u00a0To put it simply, gain is how much audio the microphone takes in. It can be considered a type of volume control (however volume almost always refers to output sound), while gain controls input sound.<\/p>\n<p>I was able to program\u00a0the <a href=\"https:\/\/digilent.com\/shop\/pmodmic3-mems-microphone-with-adjustable-gain\/\">MIC3 <\/a>in <a href=\"https:\/\/digilent.com\/shop\/labview-home-bundle\/\">LabVIEW 2014<\/a>\u00a0because of our handy-dandy <a href=\"https:\/\/www.labviewmakerhub.com\/doku.php?id=libraries:linx:start\">LINX 3.0<\/a> add-on and there are even already pre-loaded <a href=\"https:\/\/digilent.com\/shop\/pmodmic3-mems-microphone-with-adjustable-gain\/\">MIC3 <\/a>VI&#8217;s in the LINX <a href=\"https:\/\/digilent.com\/shop\/labview-home-bundle\/\">LabVIEW<\/a> library.<\/p>\n<p>By the end of my project, I had a better understanding of how best to utilize the\u00a0Pmod\u00a0<a href=\"https:\/\/digilent.com\/shop\/pmodmic3-mems-microphone-with-adjustable-gain\/\">MIC3<\/a>, as well as a nifty way to turn my lights off without having to walk across the room. And like\u00a0I mentioned at the beginning, the <a href=\"https:\/\/digilent.com\/shop\/pmodmic3-mems-microphone-with-adjustable-gain\/\">MIC3 <\/a>can be used for a great deal of projects. Check out <a href=\"https:\/\/digilent.com\/shop\/\">our website<\/a> to find the <a href=\"https:\/\/digilent.com\/shop\/pmodmic3-mems-microphone-with-adjustable-gain\/\">Pmod MIC3\u00a0<\/a>and make sure to let us know what <em>you<\/em> use <a href=\"https:\/\/digilent.com\/shop\/pmod-peripheral-modules\/\">Pmods <\/a>to build!<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-16721 jlk' data-task='like' data-post_id='16721' data-nonce='5286a1c13f' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-16721 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-16721 jlk' data-task='unlike' data-post_id='16721' data-nonce='5286a1c13f' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-16721 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-16721 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Ella explains how she used the Pmod MIC3 to create a smart-home style project.<\/p>\n","protected":false},"author":41,"featured_media":16799,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1561],"tags":[],"ppma_author":[4492],"class_list":["post-16721","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-applications"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/09\/F2375B3IT0LR35N.MEDIUM.jpg","jetpack_sharing_enabled":true,"authors":[{"term_id":4492,"user_id":41,"is_guest":0,"slug":"erickerson","display_name":"Ella Rickerson","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/6fe955cc73725d3ad87e297d094c41be82c3845c2a4488842c1a74a78ca36b60?s=96&d=mm&r=g","1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":"","9":"","10":""}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/16721","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=16721"}],"version-history":[{"count":0,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/16721\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/16799"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=16721"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=16721"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=16721"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=16721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}