<?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>Interfacing External Sound Sensor with nRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21518/interfacing-external-sound-sensor-with-nrf52832</link><description>I have made following connection between nordic device and external sound sensor: 
 
 VCC--&amp;gt; 5V 
 GND--&amp;gt; GND 
 GATE --&amp;gt; Pin 04 
 ENVELOPE --&amp;gt; A0 
 
 I would like to know how to proceed with the code in eclipse. i have a code but i am not sure how</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 May 2017 15:54:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21518/interfacing-external-sound-sensor-with-nrf52832" /><item><title>RE: Interfacing External Sound Sensor with nRF52832</title><link>https://devzone.nordicsemi.com/thread/84477?ContentTypeID=1</link><pubDate>Mon, 15 May 2017 15:54:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cbabf43-a312-450b-98aa-c393c1e6a31b</guid><dc:creator>g.joshi</dc:creator><description>&lt;p&gt;I managed to get the Digital reading using SAADC but is their i can get the analog output. Thanks in advance .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing External Sound Sensor with nRF52832</title><link>https://devzone.nordicsemi.com/thread/84475?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 09:27:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1249f2a2-ea68-42b1-8a4a-65ece0b0af66</guid><dc:creator>g.joshi</dc:creator><description>&lt;p&gt;Oh Yes, I messed up . Thanks !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing External Sound Sensor with nRF52832</title><link>https://devzone.nordicsemi.com/thread/84474?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 09:25:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c85cae79-77fb-42a4-8bb6-4781af0b1eca</guid><dc:creator>Tostikoning</dc:creator><description>&lt;p&gt;Yeah sure,&lt;/p&gt;
&lt;p&gt;this is Arduino code for interfacing with the sound sensor, but you are not using a Arduino so this code is not compatible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing External Sound Sensor with nRF52832</title><link>https://devzone.nordicsemi.com/thread/84473?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 09:22:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:855790a3-2a45-4804-a7e6-1529f215b696</guid><dc:creator>g.joshi</dc:creator><description>&lt;p&gt;static void nrf_gpio_cfg_input(GATE, NRF_GPIO_PIN_NOPULL)
static void nrf_gpio_pin_read(GATE&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    void soundISR()
    {
      int pin_val;
    
      pin_val = digitalRead(PIN_GATE_IN);
      digitalWrite(PIN_LED_OUT, pin_val);
    }
    
    void setup()
    {
      Serial.begin(9600);
    
      //  Configure LED pin as output
      pinMode(PIN_LED_OUT, OUTPUT);
    
      // configure input to interrupt
      pinMode(PIN_GATE_IN, INPUT);
      attachInterrupt(IRQ_GATE_IN, soundISR, CHANGE);
    
      // Display status
      Serial.println(&amp;quot;Initialized&amp;quot;);
    }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Does this makes sense ??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing External Sound Sensor with nRF52832</title><link>https://devzone.nordicsemi.com/thread/84470?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 08:46:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:957bd647-fd58-4543-a490-815b9630e1e1</guid><dc:creator>Tostikoning</dc:creator><description>&lt;p&gt;@g.joshi I would start with the GATE. Make pin04 act as an input, and poll this input. To give you a start: nrf_gpio_cfg_input(GATE, NRF_GPIO_PIN_NOPULL); to initialize the pin.
To read the pin you need to use: nrf_gpio_pin_read(GATE).&lt;/p&gt;
&lt;p&gt;If this works you can try to use the SAADC examples to measure the ENVELOPE pin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing External Sound Sensor with nRF52832</title><link>https://devzone.nordicsemi.com/thread/84469?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 08:43:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74472184-fdfc-43ad-a573-2946c30f3335</guid><dc:creator>g.joshi</dc:creator><description>&lt;p&gt;@Tostikoning Yes i am using this sound sensor and my nordic device is nRF52832.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing External Sound Sensor with nRF52832</title><link>https://devzone.nordicsemi.com/thread/84476?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 08:37:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8741c8d2-7490-4ee8-bcb3-52a2cf3eabb7</guid><dc:creator>Tostikoning</dc:creator><description>&lt;p&gt;I think something like this: &lt;a href="https://learn.sparkfun.com/tutorials/sound-detector-hookup-guide?"&gt;learn.sparkfun.com/.../sound-detector-hookup-guide&lt;/a&gt; Also what nordic device are you using? nvm, I see nrf2832...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing External Sound Sensor with nRF52832</title><link>https://devzone.nordicsemi.com/thread/84471?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 08:35:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db95ff08-0ecf-424e-9b71-09fad8d34c53</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@gopal30: What kind of sensor are you trying to interface?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing External Sound Sensor with nRF52832</title><link>https://devzone.nordicsemi.com/thread/84472?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 08:25:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:006c2b49-d8ff-46fe-9b32-6539481ee463</guid><dc:creator>g.joshi</dc:creator><description>&lt;p&gt;Hey Tostikoning i have already tried that example and it´s working perfectly fine.  my issue is i am not sure how to build from scratch. i am using SDK_12.2.2.0 and i don´t see any example for external sensor interfacing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing External Sound Sensor with nRF52832</title><link>https://devzone.nordicsemi.com/thread/84468?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 08:12:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3e048b0-95cc-4016-bc0e-6b527c7621d9</guid><dc:creator>Tostikoning</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;First have a look at the following tutorial:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/tutorials/7/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Maybe try something simple first, like a blinky application to make sure your toolchain is set up right.&lt;/p&gt;
&lt;p&gt;Also, you should try to give us more information about the SDK version you wish to use. If you wish to use a softdevice and other relevant things about your application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>