<?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>monitoring environment ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53137/monitoring-environment</link><description>Hi 
 I have searched a LOT but I can not find if Nordic can record audio with high enough fidelity to a SD card (I have seen in the SDK how to attach a SD card ). 
 
 I want to be able to record fogs/owls etc (the audio environment) at 48kHz sample rate</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Oct 2019 13:28:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53137/monitoring-environment" /><item><title>RE: monitoring environment ?</title><link>https://devzone.nordicsemi.com/thread/214866?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 13:28:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3633c534-c2f6-43e2-bb5a-7126bac05d47</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;HI John&amp;nbsp;&lt;/p&gt;
[quote user=""]I want to be able to record fogs/owls etc&amp;nbsp; (the audio environment)&amp;nbsp; at&amp;nbsp;&lt;span&gt;&lt;strong&gt;48kHz sample rate is this possible&lt;/strong&gt; ?&amp;nbsp;&lt;/span&gt;[/quote]
&lt;p&gt;We have two audio intput interfaces, PDM and I2S on the nRF52 series. Do you want to use a PDM microphone or do you have a dedicated ADC with an I2S interface? How large is each sample?&lt;br /&gt;&lt;br /&gt;PDM only allows for a 16kHz output, see&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/pdm.html?cp=3_1_0_42#concept_tyv_452_yr"&gt;PDM — Pulse density modulation interface&lt;/a&gt;. The I2S peripheral supports a LRCLK of upto 48kHz with &lt;span&gt;8, 16 and 24-bit sample width&lt;/span&gt;, see&amp;nbsp;&lt;a title="  I2S timing specification  " href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/i2s.html?cp=3_1_0_43_10_0#unique_1249998257"&gt;I2S timing specification&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Or do you mean writing the data to the SD card? We do have a&amp;nbsp;&lt;a title="SD Card Example" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/app_sdcard_example.html?cp=5_1_4_6_34"&gt;SD Card Example&lt;/a&gt;&amp;nbsp;which uses the SPI peripheral which supports a clock frequency up to 8Mhz.&lt;/p&gt;
[quote user=""]what is the &lt;strong&gt;maximum&amp;nbsp;sample rate of the ADC&lt;/strong&gt; ?[/quote]
&lt;p&gt;&amp;nbsp;The maximum sample rate of the SAADC is 200kHz, see&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/15381/how-to-implement-max-sampling-with-saadc"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/15381/how-to-implement-max-sampling-with-saadc&lt;/a&gt;.&lt;/p&gt;
[quote user=""]Would it be possible to apply a Goertzel filter for real-time classification algorithms.&amp;nbsp;I would like to&amp;nbsp;filter specific terms of a fast Fourier transform on temporarily buffered audio samples without the computational expense of a complete transform. The outcome of each algorithm could then be used to trigger recordings to a microSD card. Has anyone completed anything like this ?[/quote]
&lt;p&gt;We do have a&amp;nbsp;&lt;a title="FPU FFT Example" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/fpu_fft_example.html?cp=5_1_4_6_11"&gt;FPU FFT Example&lt;/a&gt;&amp;nbsp;in our SDK, I suggest that you take a look at that.&amp;nbsp; Triggering writes to a SD card should not be an issue by using Software interrupts, i.e. the Event Generator Unit(EGU) peripheral.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>