<?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>About energy-saving point of view, and the most optimal way to proceed in</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21486/about-energy-saving-point-of-view-and-the-most-optimal-way-to-proceed-in</link><description>Hello Nordic Team, 
 I have a question about energy conservation that we want to implement and how we want to make it as optimal as possible. 
 For our application and its use, we would like our Bluetooth module to be activated only for 1 minutes (Period</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 May 2017 08:34:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21486/about-energy-saving-point-of-view-and-the-most-optimal-way-to-proceed-in" /><item><title>RE: About energy-saving point of view, and the most optimal way to proceed in</title><link>https://devzone.nordicsemi.com/thread/84310?ContentTypeID=1</link><pubDate>Fri, 05 May 2017 08:34:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eff03dd0-f79a-47b9-9e6a-aa329ffaa95c</guid><dc:creator>trdop</dc:creator><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;Indeed from what it emerges, thank you for your good preconization ! I will do that.&lt;/p&gt;
&lt;p&gt;Thanks David and Alex for your sample extract of code regarding your configuration of LIS2DH.&lt;/p&gt;
&lt;p&gt;I tried to apply it strictly, but in order to really have a relevant result with regard to a shake (for example a flick in the desk).&lt;/p&gt;
&lt;p&gt;I have to mix with a post example that I find on the forums of ST: &lt;a href="https://community.st.com/thread/37167-lis2dh-accelerometer-interrupts"&gt;community.st.com/.../37167-lis2dh-accelerometer-interrupts&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To be concise here is the result of what I program on my LIS2:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;extern LIS2DH12_Ret LIS2DH12_setToGeneratedSignalOnINT1asSoonAsShakeEventRecognisedMode() {

    LIS2DH12_Ret retVal = LIS2DH12_RET_OK;

    retVal |= writeRegister(LIS2DH_CTRL_REG1,       0x4F    /*_0x7F*/     );      // 79
    retVal |= writeRegister(LIS2DH_CTRL_REG2,       0x01    /*_0x00*/     );      // 1
    retVal |= writeRegister(LIS2DH_CTRL_REG3,       0x40    /*0x40*/      );      // 64
    retVal |= writeRegister(LIS2DH_CTRL_REG4,       0x00    /*_0x80*/     );      // 0
    retVal |= writeRegister(LIS2DH_CTRL_REG5,       0x00    /*_0x00*/     );      // 10
    retVal |= writeRegister(LIS2DH_CTRL_REG6,       0x00    /*_0x00*/     );      // 32

    retVal |= writeRegister(LIS2DH_INT1_CFG,        0xAA    /*_0x04*/     );      // 170
    retVal |= writeRegister(LIS2DH_INT1_THS,        0x02    /*_0x0F*/     );      // 2
    retVal |= writeRegister(LIS2DH_INT1_DURATION,   0x01    /*0x01*/      );      // 1

    return retVal;
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About energy-saving point of view, and the most optimal way to proceed in</title><link>https://devzone.nordicsemi.com/thread/84309?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2017 08:31:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e73f872-3574-46c7-ab50-8c9a262d2c9e</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;As you suggested, the best way is to connect INT1 output of LIS2DH12 to nRF52 input. Program LIS2DH12 so that signal will be generated on INT1 as soon as shake event recognised by LIS2DH12. Program nRF52 input to wake CPU from deep sleep on level change on that input. We did the same on our product. Works fine. To save you time here is data we program to LIS2DH12 addr&amp;lt;-value: &lt;code&gt;0x20&amp;lt;-0x4F,0x21&amp;lt;-0x01,0x22&amp;lt;-0x40,0x23&amp;lt;-0x00,0x24&amp;lt;-0x0A,0x25&amp;lt;-0x20,0x30&amp;lt;-0xAA,0x32&amp;lt;-0x02,0x33&amp;lt;-0x01&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>