<?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>Thingy91 low power accelerometer use</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55883/thingy91-low-power-accelerometer-use</link><description>Hi, I am trying to add a motion sensor event into my code that utilizes the low power accelerometer on board the thingy91. I wont be in sleep mode but will be in PSM or edrx mode and I need the low power accelerometer to trigger an event that will cause</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Dec 2019 18:12:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55883/thingy91-low-power-accelerometer-use" /><item><title>RE: Thingy91 low power accelerometer use</title><link>https://devzone.nordicsemi.com/thread/226761?ContentTypeID=1</link><pubDate>Mon, 23 Dec 2019 18:12:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbc6d5d1-65e2-4879-8d77-804571d54a1e</guid><dc:creator>AndrewR</dc:creator><description>&lt;p&gt;perfect that got it to work thanks. Do you understand how the motion trigger works? I find that when I run it the motion trigger fires immediately and never after the first trigger. It prints out the motion variables &lt;span style="background-color:#000000;color:#72b3cf;float:none;font-family:Menlo, Monaco, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-style:normal;font-weight:bold;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:pre;"&gt;x: -0.3, y: 0.4, z: -9.3 (m/s^2)&lt;/span&gt;v I assume the z value of -9.3 is a result of reading gravity. I&amp;#39;m not sure if that is what tripping the motion trigger but that would be my guess. Do you know how I would compensate for that or change the trigger thresholds so that -9 is the baseline there? Also how do you&amp;nbsp; reset the motion trigger so I can trigger every time there is motion not just the 1 time there is motion?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91 low power accelerometer use</title><link>https://devzone.nordicsemi.com/thread/226734?ContentTypeID=1</link><pubDate>Mon, 23 Dec 2019 13:52:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e93e45d2-3651-4de1-800f-d6919c2077ab</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I haven&amp;#39;t been able to get that to run[/quote]
&lt;p&gt;&amp;nbsp;What have you tried, and what did not work?&lt;/p&gt;
&lt;p&gt;In order to be able to build an application for the Thingy:91 you need to include ncs/nrf/cmake/boilerplate.cmake in the CMakeLists.txt&lt;/p&gt;
&lt;p&gt;After adding the following line at line 6 in ncs/zephyr/samples/sensor/adxl362/CMakeLists.txt it worked fine for me.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;include($ENV{ZEPHYR_BASE}/../nrf/cmake/boilerplate.cmake NO_POLICY_SCOPE)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Merry Christmas!&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>