<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>After I read mic PDM data, how do I convert it to DB？</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78617/after-i-read-mic-pdm-data-how-do-i-convert-it-to-db</link><description>Hi， 
 I am doing a micphone &amp;quot; sph0641lm4h-1 &amp;quot;, and I use api of nrf_drv_pdm .c, 
 when I read mic data from sph0641lm4h-1 , they are just sets of 16 bit data, the following figure: 
 
 
 
 pdm_buffer[0], pdm_buffer[1], pdm_buffer[2], pdm_buffer[3], pdm_buffer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Aug 2021 00:53:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78617/after-i-read-mic-pdm-data-how-do-i-convert-it-to-db" /><item><title>RE: After I read mic PDM data, how do I convert it to DB？</title><link>https://devzone.nordicsemi.com/thread/325201?ContentTypeID=1</link><pubDate>Tue, 17 Aug 2021 00:53:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16003df8-2853-4a2c-92ac-69465c177c55</guid><dc:creator>Tomlee</dc:creator><description>&lt;p&gt;Hi&amp;nbsp; yvind,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; Thanks for your reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; Do you mean using &amp;quot;&lt;strong style="color:#11171a;font-style:normal;font-weight:bold;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;amplitude = 20 * log10(abs(sample) / 32767) dBFS&lt;/strong&gt;&amp;quot;&amp;nbsp; ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; but I don&amp;#39;t understand what the parameter &amp;quot;sample&amp;quot; is ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; is it pdm_buffer[1]?&amp;nbsp; or&amp;nbsp; is it the average of all pdm_buffers?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After I read mic PDM data, how do I convert it to DB？</title><link>https://devzone.nordicsemi.com/thread/325094?ContentTypeID=1</link><pubDate>Mon, 16 Aug 2021 11:49:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd5932fa-33a0-4138-b4f4-983e3e1cab70</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;A quick google search gave me this result&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/28248/get-amplitude-db-from-pdm"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/28248/get-amplitude-db-from-pdm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Let me know how that works for you.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>