<?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/Arduino Shield example for the nrf9160?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42438/microphone-arduino-shield-example-for-the-nrf9160</link><description>I&amp;#39;d like to build a prototype using the nrf9160DK that samples audio from a microphone and plays it back. Given that the dev board has Arduino compatible headers, I&amp;#39;m assuming the easiest thing to do is get a shield like this one ? 
 If so, I&amp;#39;m looking</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Jan 2020 15:02:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42438/microphone-arduino-shield-example-for-the-nrf9160" /><item><title>RE: Microphone/Arduino Shield example for the nrf9160?</title><link>https://devzone.nordicsemi.com/thread/231454?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 15:02:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39ca40ed-e381-4413-a28c-23454f158dcc</guid><dc:creator>lanwer</dc:creator><description>&lt;p&gt;Hi, I would be very grateful if you could share your code with me. That&amp;#39;s exactely what I am looking for.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Microphone/Arduino Shield example for the nrf9160?</title><link>https://devzone.nordicsemi.com/thread/169160?ContentTypeID=1</link><pubDate>Sat, 02 Feb 2019 17:58:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04eed872-0220-44f6-a809-323c8e3b7ce4</guid><dc:creator>SCombellack</dc:creator><description>&lt;p&gt;Yes, fabulous.&amp;nbsp; I have tried it and it appears to work great; using the sequence options to get the SAADC peripheral to take readings on a timer, then return when the appropriate number of readings have been taken.&amp;nbsp; Great!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Microphone/Arduino Shield example for the nrf9160?</title><link>https://devzone.nordicsemi.com/thread/168866?ContentTypeID=1</link><pubDate>Thu, 31 Jan 2019 12:29:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4da99ca8-cde8-4f92-99be-898344021d2d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Always happy to help &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Let me know if there&amp;#39;s any issues that should come up!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Microphone/Arduino Shield example for the nrf9160?</title><link>https://devzone.nordicsemi.com/thread/168737?ContentTypeID=1</link><pubDate>Wed, 30 Jan 2019 14:36:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86d2a012-b557-43be-b7aa-aa106ebfb424</guid><dc:creator>scottjenson</dc:creator><description>&lt;p&gt;Thanks Hakon, we&amp;#39;ll check this out! Much appreciated&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Microphone/Arduino Shield example for the nrf9160?</title><link>https://devzone.nordicsemi.com/thread/168644?ContentTypeID=1</link><pubDate>Wed, 30 Jan 2019 09:47:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a90204fb-0103-45e0-99b2-88f1f4f0a609</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think this is the one you&amp;#39;re looking for?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/master/include/adc.h#L188"&gt;https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/master/include/adc.h#L188&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The ADC API in zephyr might not satisfy your requirements, and if that is the case, I&amp;#39;d recommend that you include nrf_saadc.h directly and communicate with that API to override or expose the deeper level functions as a workaround for now. We are looking into exposing all the functionality of our drivers/peripherals in the ncs code base, but it takes a bit of time until we know how to&amp;nbsp;approaching this in the best possible way.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Microphone/Arduino Shield example for the nrf9160?</title><link>https://devzone.nordicsemi.com/thread/168576?ContentTypeID=1</link><pubDate>Tue, 29 Jan 2019 22:09:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cc7334f-89e3-489c-aeaf-cde39bf4fded</guid><dc:creator>SCombellack</dc:creator><description>&lt;p&gt;Love the sample!&amp;nbsp; Is it possible to see a sample that uses more of the SAADC facility of the nRF91?&amp;nbsp; If possible I&amp;#39;d like to see an example that uses the task feature to take a sample on a timer event and then easyDMA to publish the result to RAM.&amp;nbsp; It could be that the sample code is already doing some of that, but it&amp;#39;s hidden in the enums or something.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Microphone/Arduino Shield example for the nrf9160?</title><link>https://devzone.nordicsemi.com/thread/165708?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 11:41:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:653de976-43d9-41a1-9912-d49fd057c46e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You could use the PDM peripheral as well, as there&amp;#39;s many digital microphones that use this bus as well.&lt;/p&gt;
&lt;p&gt;In order to use the SAADC peripheral to perform ad conversions in nrf connect sdk, there&amp;#39;s a process that needs to be performed first:&lt;/p&gt;
&lt;p&gt;1. Add the SAADC peripheral to the non-secure region:&lt;/p&gt;
&lt;p&gt;After this line:&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/samples/nrf9160/secure_boot/src/main.c#L336"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/samples/nrf9160/secure_boot/src/main.c#L336&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;you&amp;nbsp;must&amp;nbsp;append:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;	secure_boot_config_peripheral(
		NRFX_PERIPHERAL_ID_GET(NRF_SAADC_S), 0);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then build and flash this onto the device.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2a. Adding the SAADC to the project requires a nrf9160_pca10090.overlay file to hold:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;&amp;amp;adc {

&amp;#160; &amp;#160; status = &amp;quot;ok&amp;quot;;

};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;2b. Then you need to add the ADC driver itself to the project in &amp;quot;prj.conf&amp;quot;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_ADC=y
CONFIG_ADC_0=y
CONFIG_ADC_NRFX_SAADC=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now, you can add the functions needed for using the ADC in your example. I made an example here to show what&amp;#39;s needed:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/adc/src/main.c"&gt;https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/adc/src/main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Microphone/Arduino Shield example for the nrf9160?</title><link>https://devzone.nordicsemi.com/thread/165261?ContentTypeID=1</link><pubDate>Fri, 11 Jan 2019 21:37:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a854f26-071d-448b-bd7e-156184188912</guid><dc:creator>scottjenson</dc:creator><description>&lt;p&gt;Actually, doing further research indicates that that previous shield was a bit over kill. A much simpler microphone (there are many) just produces an analog out that can go into one of the Arduino pins. If I use that approach, I just need the nrf9160 code example to read the analog pin. It&amp;#39;ll be my job to stash it away.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>