<?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>microphone peak-to-peak reading</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58243/microphone-peak-to-peak-reading</link><description>Hi 
 I&amp;#39;m currently testing a microphone, I only want ADC reading from it to show how loud the sound is, so kinds like volume. 
 If I only using simple ADC to read the number, it&amp;#39;s always a similar reading, it doesn&amp;#39;t change with how loud the environment</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Feb 2020 15:15:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58243/microphone-peak-to-peak-reading" /><item><title>RE: microphone peak-to-peak reading</title><link>https://devzone.nordicsemi.com/thread/236619?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 15:15:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4906dc7-8d31-4cf3-ac19-50f9027a14ab</guid><dc:creator>Cindy</dc:creator><description>&lt;p&gt;I tested it with another ADC component, the code doesn&amp;#39;t work, did I use&amp;nbsp;the example right?&lt;/p&gt;
&lt;p&gt;I used saadc, and ADC output A0(p0.03). is this correct?&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cindy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: microphone peak-to-peak reading</title><link>https://devzone.nordicsemi.com/thread/236606?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 14:47:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03746cc3-e4bd-4d3a-8b0f-bf28253d803b</guid><dc:creator>Cindy</dc:creator><description>&lt;p&gt;but why when I change the sampling rate the ADC value changes, higher sampling rate with higher ADC reading. it doesn&amp;#39;t seem to make sense.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I changed the sampling rate to 3ms ( it will fail when I change it to 2ms) the ADC reading is around 120, but stable which isn&amp;#39;t really want I want to see.&lt;/p&gt;
&lt;p&gt;wondering if there&amp;#39;s anything wrong before I get into &amp;quot;analyze the data&amp;quot;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Cindy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: microphone peak-to-peak reading</title><link>https://devzone.nordicsemi.com/thread/236450?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 09:10:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a825b50f-bf25-4529-b858-b77a5f5754ad</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;My suggestion is to first follow up on:&amp;nbsp;&amp;quot;&lt;span&gt;measure the signal on an oscilloscope you can find the duration and level of the peak.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Then you can find how often you need to sample the ADC to detect the peak. I expect you need to measure every &amp;lt;1ms or similar, in which case you won&amp;#39;t have time to output all the sample data on UART. So you need to analyze the data (e.g. calculate average value first), and if the value suddenly changes by much you can output the data (e.g. peak detected).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: microphone peak-to-peak reading</title><link>https://devzone.nordicsemi.com/thread/236378?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 19:05:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b1b3173-a0d9-4160-a6ad-ec4bbe5acfa6</guid><dc:creator>Cindy</dc:creator><description>&lt;p&gt;I dont have an oscilloscope, but I changed the sampling rate&amp;nbsp;from 400ms to 20ms, I still got the same numbers regardless of the environment, but the number increased, I got confused about the situation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/sound_2D00_adc.PNG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I got results like this, even when I&amp;#39;m knocking the table, I still got some reading.&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2313.sample.PNG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;then I changed the sampling rate (let me know if I did it wrong)&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/sound_2D00_adc2.PNG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;the number changed, but not really changing.&lt;/p&gt;
&lt;p&gt;Please help.&lt;/p&gt;
&lt;p&gt;Cindy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: microphone peak-to-peak reading</title><link>https://devzone.nordicsemi.com/thread/236198?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 10:11:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f683b5c-8d5b-41ba-8f4e-a3323473fe14</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I assume if you measure the signal on an oscilloscope you can find the duration and level of the peak. This may help you find how frequently you need to sample the ADC input to detect such peak.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>