{"product_id":"3492-adafruit-pdm-mems-microphone-breakout","title":"Adafruit PDM MEMS Microphone Breakout","description":"\u003cp\u003e An exotic new microphone has arrived in the Adafruit shop, a \u003cstrong\u003ePDM MEMS Microphone\u003c\/strong\u003e ! PDM is the 'third' kind of microphone you can integrate with electronics, apart from analog or I2S. These microphones are very commonly used in products, but are rarely seen in maker projects. Still, they have some benefits so we thought we'd offer a breakout for the shop.\u003c\/p\u003e\n\u003cp\u003e The first thing to note is that this sensor does not provide an 'analog' output like many of our electret microphone assemblies. So it's great for chips that don't have analog inputs. Secondly, the digital interface is a very simplistic \u003cstrong\u003epulse\u003c\/strong\u003e \u003cstrong\u003edensity\u003c\/strong\u003e \u003cstrong\u003emodulation\u003c\/strong\u003e output. It's digital but its \u003cem\u003enot\u003c\/em\u003e PWM and it's \u003cem\u003enot\u003c\/em\u003e I2S. You will need to make sure your chip has a PDM interface - most 32-bit processors these days do!\u003c\/p\u003e \u003cp\u003ePDM is a little like 1-bit PWM. You clock the mic with a 1 MHz - 3 MHz clock rate, and on the data line you'll get a square wave out that syncs with the clock. The data line with be 0 or 1 logic output, with the square wave creating a \u003cem\u003edensity\u003c\/em\u003e that when averaged will result in the analog value out.\u003c\/p\u003e\n\u003cp\u003e There's a few ways to manage these mics:\u003c\/p\u003e\n\u003cul\u003e\n\n\u003cli\u003e Your chip comes with a hardware peripheral and library that does all the data managing at high speed, collects samples, applies a filter and gives you an analog value (Ideal!)\u003c\/li\u003e\n\n\u003cli\u003e Your chip comes with a hardware peripheral that gives you values, then it is up to you to perform the decimation\/filtering. (We have some example code for this on the ATSAMD21 chipset)\u003c\/li\u003e\n\n\u003cli\u003e Your chip does not come with a hardware peripheral but you're pretty clever and come up with a way to make it work ( \u003ca href=\"https:\/\/curiouser.cheshireeng.com\/2015\/01\/21\/pdm-in-attiny85-source-code\/\"\u003eSee this example for the ATtiny85\u003c\/a\u003e )\u003c\/li\u003e\n\n \u003cli\u003eYou generate the high speed clock, then add an analog filter on the data line, and read the analog value (A hack, but works!)\u003c\/li\u003e\n\n\n\u003c\/ul\u003e\n\u003cp\u003e Either way you decide to go, make sure you have a handle on what support you get with your platform, as these chips are a little tricky!\u003c\/p\u003e\n\u003cp\u003e Each order comes with one fully assembled and tested microphone, and a little header to solder on for breadboard-compatibility. \u003ca href=\"http:\/\/learn.adafruit.com\/adafruit-pdm-microphone-breakout\/\"\u003eCheck out our full guide for wiring details, schematics, example code, datasheet and more!\u003c\/a\u003e \u003c\/p\u003e\n\u003cp\u003e\u003cimg class=\"video-insert\" alt=\"https:\/\/www.youtube.com\/embed\/NzmqDxaMUE4?start=670\" contenteditable=\"false\" allowfullscreen=\"true\" frameborder=\"0\" src=\"https:\/\/img.youtube.com\/vi\/NzmqDxaMUE4\/hqdefault.jpg\"\u003e\u003c\/p\u003e","brand":"Adafruit","offers":[{"title":"4-6 Days","offer_id":47700290109785,"sku":"ADA-3492\/B","price":7.25,"currency_code":"EUR","in_stock":true},{"title":"1 day","offer_id":47886488043865,"sku":"ADA-3492\/A","price":7.25,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47886647230809,"sku":"ADA-3492","price":7.25,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/3492-03.jpg?v=1705517047","url":"https:\/\/xernuqvalzi.pro\/en\/products\/3492-adafruit-pdm-mems-microphone-breakout","provider":"Robot Italy","version":"1.0","type":"link"}