<?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>Acceleration measurement - ADXL372 ADXL362 - curious peak values</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94946/acceleration-measurement---adxl372-adxl362---curious-peak-values</link><description>Hello, 
 we have two Thingy:91 and we have a program based on mqtt_simple. We capture acceleration values with the ADXL362 and the ADXL372 and send peak values as well as average values over longer periods of time via MQTT to our server. Basically this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Apr 2023 09:58:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94946/acceleration-measurement---adxl372-adxl362---curious-peak-values" /><item><title>RE: Acceleration measurement - ADXL372 ADXL362 - curious peak values</title><link>https://devzone.nordicsemi.com/thread/419372?ContentTypeID=1</link><pubDate>Thu, 06 Apr 2023 09:58:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4516f73-2b53-4af1-bdeb-8d7b83d6a553</guid><dc:creator>peng.cheng</dc:creator><description>&lt;p&gt;Hi &lt;span&gt;J&amp;uuml;rgen,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for your response!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am working on the ADXL372, but fail to get steady acceleration values.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As I posted here:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/97479/thingy91-adxl372-accel_polling-example-not-giving-proper-data"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/97479/thingy91-adxl372-accel_polling-example-not-giving-proper-data&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The values are jumpy, and sometimes&amp;nbsp;there are&amp;nbsp;really big ones, that points me here.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BR,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Peng&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Acceleration measurement - ADXL372 ADXL362 - curious peak values</title><link>https://devzone.nordicsemi.com/thread/419370?ContentTypeID=1</link><pubDate>Thu, 06 Apr 2023 09:48:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae1d6ed2-3db7-4f7d-9be8-290194403135</guid><dc:creator>grj</dc:creator><description>&lt;p&gt;Hi Peng,&lt;br /&gt;&lt;br /&gt;sorry but not really.&lt;br /&gt;Unfortunately, it did not work reproducibly either.&lt;br /&gt;The problem has come back with the next compile. &lt;br /&gt;&lt;br /&gt;I think however that I possibly come the problem slowly on the trace. &lt;br /&gt;&lt;br /&gt;In my while loop in which the acceleration data is recorded, I have built in a sleep function at the end to reduce the sampling frequency:&lt;/p&gt;
&lt;p&gt;k_sleep(K_MSEC(5));&lt;br /&gt;&lt;br /&gt;Without this sleep function the sampling frequency is too high but the peak values do not occur. &lt;br /&gt;As soon as I insert this sleep function again, the peak values occur again.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I think that the ADXL372 is sometimes not ready to output values after the sleep function.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;br /&gt;J&amp;uuml;rgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Acceleration measurement - ADXL372 ADXL362 - curious peak values</title><link>https://devzone.nordicsemi.com/thread/419357?ContentTypeID=1</link><pubDate>Thu, 06 Apr 2023 07:38:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06016626-5d8f-4a26-b2a4-e85c95dd4795</guid><dc:creator>peng.cheng</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/grj"&gt;grj&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;It is a bit confusing for me, seems the issue disappears after you set it to &amp;quot;use global thread&amp;quot; and then back to the original setting &amp;quot;no trigger&amp;quot;. But could you explain why this solves the issue? Thanks!&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Peng&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Acceleration measurement - ADXL372 ADXL362 - curious peak values</title><link>https://devzone.nordicsemi.com/thread/412191?ContentTypeID=1</link><pubDate>Mon, 27 Feb 2023 09:09:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:085516c8-1e49-4352-a92e-392c8b428aff</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Jürgen,&lt;/p&gt;
&lt;p&gt;Thank you for the update, and sorry for the delay. Great to hear that you found a solution!&lt;/p&gt;
&lt;p&gt;Best 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: Acceleration measurement - ADXL372 ADXL362 - curious peak values</title><link>https://devzone.nordicsemi.com/thread/411738?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 16:11:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0f65a04-9faf-4fb0-8488-a3bcc0fcbf6f</guid><dc:creator>grj</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;H&amp;aring;kon,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I was able to fix the error. It was probably the trigger and the FIFO as you mentioned.&lt;/p&gt;
&lt;p&gt;I changed the trigger mode for the ADXL372 to &amp;quot;Use global thread&amp;quot;. After compiling I set it back to &amp;quot;No trigger&amp;quot;.&lt;/p&gt;
&lt;p&gt;And since then these Peak values are gone.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks a lot for your help!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;J&amp;uuml;rgen&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Acceleration measurement - ADXL372 ADXL362 - curious peak values</title><link>https://devzone.nordicsemi.com/thread/411069?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2023 10:42:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a5ca638-11f7-4f09-8cb2-5d955e12a225</guid><dc:creator>grj</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;H&amp;aring;kon,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;what else I found out, the high peak values are not normally distributed. Here is a simple spectrum that I have created. X is the number of readings and Y is the acceleration in m/s&amp;sup2;. &lt;br /&gt;That are the peak values I have recieved over the last weeks with both thingys I have.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;img style="max-height:437px;max-width:1804px;" alt=" " height="437" src="https://devzone.nordicsemi.com/resized-image/__size/3608x874/__key/communityserver-discussions-components-files/4/2023_5F00_02_5F00_21_5F00_11_5F00_31_5F00_06_5F00_test_5F00_InfluxDB.jpg" width="1804" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As a scatter it looks like this:&lt;/p&gt;
&lt;p&gt;&lt;img height="456" src="https://devzone.nordicsemi.com/resized-image/__size/3208x912/__key/communityserver-discussions-components-files/4/pastedimage1676975927337v1.png" width="1604" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Values wich are under 196.2 m/s&amp;sup2; are not sent by the thingy.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards J&amp;uuml;rgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Acceleration measurement - ADXL372 ADXL362 - curious peak values</title><link>https://devzone.nordicsemi.com/thread/410259?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2023 09:01:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d991f91-732d-492e-b300-6808b4a265e7</guid><dc:creator>grj</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;H&amp;aring;kon,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;thank you for all the explanation and help.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I use both accelerometers in measurement mode and not with activity detection. &lt;br /&gt;We don&amp;#39;t want to trigger something at certain events but we want continuous measured values to see which accelerations occur at which time.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s why I didn&amp;#39;t set a trigger.&lt;/p&gt;
&lt;p&gt;So FIFO and Activity time don&amp;#39;t play a role in my code or am I wrong?&lt;br /&gt;The peak values are always only one measurment.&amp;nbsp;&lt;br /&gt;The time between each measurment is aboout approx.: 5 ms&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;When the high values with the ADXL372 occuring, there are no conspicuities or trends visible in the values of the ADXL362.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;J&amp;uuml;rgen&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Acceleration measurement - ADXL372 ADXL362 - curious peak values</title><link>https://devzone.nordicsemi.com/thread/407538?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2023 13:11:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb732ac4-2efb-4aaf-99a8-677d8f029405</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;H Jürgen&lt;/p&gt;
[quote user="grj"]since the wrong value is already output by &amp;quot; sensor_value_to_double&amp;quot;, the error is more likely to be found in the .config (e.g. a wrong filter) than in the code isn&amp;#39;t it?[/quote]
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt; There is probably no mistake in &lt;code&gt;sensor_value_to_double&lt;/code&gt; as it is a frequently used function. I spoke to one of our engineers who has experience with the two sensors again. He didn&amp;#39;t see that kind of noise in his application, but he used the sensor in a different way that could have masked the issue.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;He mentions that it is possible that the sensor needs to be filtered.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;span style="font-family:sans-serif;left:53.94%;top:77.15%;" dir="ltr"&gt;Further he suggests, as a next step, to compare the outputs of both sensors. Although more noisy, the ADXL372 should show the same general trends like the ADXL362. In a steady state, we are talking about about 1G downwards (most likely the z axis). He also looked into the driver again and found no obvious bit shifting issues there.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;I had a look here and there in the datasheet for ADXL372 and noticed the following about Trigger Mode:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;span style="font-family:sans-serif;left:53.94%;top:65.88%;" dir="ltr"&gt;In &lt;span&gt;triggered&lt;/span&gt; mode, the FIFO operates as in stream mode until an&lt;/span&gt; &lt;span style="font-family:sans-serif;left:53.94%;top:67.4%;" dir="ltr"&gt;activity detection event, after which it saves the samples surround&lt;/span&gt;&lt;span style="font-family:sans-serif;left:53.94%;top:68.91%;" dir="ltr"&gt;ing that event. The operation is similar to a one-time run trigger&lt;/span&gt; &lt;span style="font-family:sans-serif;left:53.94%;top:70.43%;" dir="ltr"&gt;on an oscilloscope. The number of samples to be saved after the&lt;/span&gt; &lt;span style="font-family:sans-serif;left:53.94%;top:71.94%;" dir="ltr"&gt;activity event is specified in FIFO_SAMPLES (Register 0x39[7:0],&lt;/span&gt; &lt;span style="font-family:sans-serif;left:53.94%;top:73.46%;" dir="ltr"&gt;along with Bit 0 in the FIFO_CTL register, Register 0x3A). For&lt;/span&gt; &lt;span style="font-family:sans-serif;left:53.94%;top:74.97%;" dir="ltr"&gt;example if the FIFO_SAMPLE is set to 12, there are 500 samples&lt;/span&gt; &lt;span style="font-family:sans-serif;left:53.94%;top:76.49%;" dir="ltr"&gt;before the trigger and 12 after the trigger. &lt;span style="text-decoration:underline;"&gt;The trigger can be reset&lt;/span&gt;&lt;/span&gt;&lt;span style="text-decoration:underline;"&gt; &lt;span style="font-family:sans-serif;left:53.94%;top:78%;" dir="ltr"&gt;by clearing the activity interrupt and reading all 512 locations of&lt;/span&gt; &lt;span style="font-family:sans-serif;left:53.94%;top:79.52%;" dir="ltr"&gt;the FIFO. If this is not complete, future FIFO data reads may&lt;/span&gt; &lt;/span&gt;&lt;span style="font-family:sans-serif;left:53.94%;top:81.03%;" dir="ltr"&gt;&lt;span style="text-decoration:underline;"&gt;contain invalid data.&lt;/span&gt; Place the FIFO into &lt;span&gt;triggered&lt;/span&gt; mode by setting&lt;/span&gt; &lt;span style="font-family:sans-serif;left:53.94%;top:82.55%;" dir="ltr"&gt;the FIFO_MODE bits in the FIFO_CTL register (Register 0x3A) to &lt;/span&gt;&lt;span style="font-family:sans-serif;left:53.94%;top:84.06%;" dir="ltr"&gt;0b10.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;You could try to check the code to verify that the activity interrupt is cleared and that all 512 samples are read?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;I also noticed regarding the activity timer: &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;span style="font-family:sans-serif;left:53.94%;top:49.65%;" dir="ltr"&gt;Activity Timer&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:sans-serif;left:53.94%;top:52.07%;" dir="ltr"&gt;Ideally, the intent of activity detection is to wake up a system only&lt;/span&gt; &lt;span style="font-family:sans-serif;left:53.94%;top:53.59%;" dir="ltr"&gt;when motion is intentional, ignoring noise or small, unintentional&lt;/span&gt; &lt;span style="font-family:sans-serif;left:53.94%;top:55.1%;" dir="ltr"&gt;movements. In addition to being sensitive to low&lt;/span&gt;&lt;span style="font-family:sans-serif;left:82.56%;top:55.1%;" dir="ltr"&gt; &lt;/span&gt;&lt;span style="font-family:sans-serif;left:82.94%;top:55.1%;" dir="ltr"&gt;g&lt;/span&gt;&lt;span style="font-family:sans-serif;left:83.69%;top:55.1%;" dir="ltr"&gt; &lt;/span&gt;&lt;span style="font-family:sans-serif;left:84.06%;top:55.1%;" dir="ltr"&gt;events, the&lt;/span&gt; &lt;span style="font-family:sans-serif;left:53.94%;top:56.62%;" dir="ltr"&gt;ADXL372&lt;/span&gt;&lt;span style="font-family:sans-serif;left:59.71%;top:56.62%;" dir="ltr"&gt; &lt;/span&gt;&lt;span style="font-family:sans-serif;left:60.08%;top:56.62%;" dir="ltr"&gt;activity detection algorithm is robust in filtering out unde&lt;/span&gt;&lt;span style="font-family:sans-serif;left:53.94%;top:58.13%;" dir="ltr"&gt;sired &lt;span&gt;trigger&lt;/span&gt;s.&lt;/span&gt; &lt;span style="font-family:sans-serif;left:53.94%;top:60.48%;" dir="ltr"&gt;The&lt;/span&gt;&lt;span style="font-family:sans-serif;left:56.26%;top:60.48%;" dir="ltr"&gt; &lt;/span&gt;&lt;span style="font-family:sans-serif;left:56.63%;top:60.48%;" dir="ltr"&gt;ADXL372&lt;/span&gt;&lt;span style="font-family:sans-serif;left:62.4%;top:60.48%;" dir="ltr"&gt; &lt;/span&gt;&lt;span style="font-family:sans-serif;left:62.78%;top:60.48%;" dir="ltr"&gt;activity detection functionality includes &lt;span style="text-decoration:underline;"&gt;a timer to&lt;/span&gt;&lt;/span&gt;&lt;span style="text-decoration:underline;"&gt; &lt;span style="font-family:sans-serif;left:53.94%;top:61.99%;" dir="ltr"&gt;filter out unwanted motion and ensure that only sustained motion&lt;/span&gt; &lt;/span&gt;&lt;span style="font-family:sans-serif;left:53.94%;top:63.51%;" dir="ltr"&gt;&lt;span style="text-decoration:underline;"&gt;is recognized as activity&lt;/span&gt;. The timer period depends on the ODR&lt;/span&gt; &lt;span style="font-family:sans-serif;left:53.94%;top:65.02%;" dir="ltr"&gt;selected. At 3200 Hz and below, it is ~6.6 ms; at 6400 Hz, it is&lt;/span&gt; &lt;span style="font-family:sans-serif;left:53.94%;top:66.54%;" dir="ltr"&gt;~3.3 ms. For activity detection to &lt;span&gt;trigger&lt;/span&gt;, above threshold activity&lt;/span&gt; &lt;span style="font-family:sans-serif;left:53.94%;top:68.05%;" dir="ltr"&gt;must be sustained for a time equal to the number of activity timer&lt;/span&gt; &lt;span style="font-family:sans-serif;left:53.94%;top:69.57%;" dir="ltr"&gt;periods specified in the activity time register. For example, a setting&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:sans-serif;left:53.94%;top:71.09%;" dir="ltr"&gt;of 10 in this register means that above threshold activity must be&lt;/span&gt; &lt;span style="font-family:sans-serif;left:53.94%;top:72.6%;" dir="ltr"&gt;sustained for 66 ms at 3200 Hz ODR. A register value of zero&lt;/span&gt; &lt;span style="font-family:sans-serif;left:53.94%;top:74.12%;" dir="ltr"&gt;results in single sample activity detection. The maximum allowable&lt;/span&gt; &lt;span style="font-family:sans-serif;left:53.94%;top:75.63%;" dir="ltr"&gt;activity time is ~1.68 sec (or 841.5 ms at 6400 Hz ODR). Note that&lt;/span&gt; &lt;span style="font-family:sans-serif;left:53.94%;top:77.15%;" dir="ltr"&gt;the activity timer is operational in measurement mode only.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;span style="font-family:sans-serif;left:53.94%;top:77.15%;" dir="ltr"&gt;Are you using any activity timer? What is the duration of the spikes you are seeing? &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;span style="font-family:sans-serif;left:53.94%;top:77.15%;" dir="ltr"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;span style="font-family:sans-serif;left:53.94%;top:77.15%;" dir="ltr"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Acceleration measurement - ADXL372 ADXL362 - curious peak values</title><link>https://devzone.nordicsemi.com/thread/406704?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 14:45:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe31bc65-3fa7-4980-9a81-50a46ac47a31</guid><dc:creator>grj</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello H&amp;aring;kon,&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;since the wrong value is already output by &amp;quot; sensor_value_to_double&amp;quot;, the error is more likely to be found in the .config (e.g. a wrong filter) than in the code isn&amp;#39;t it?&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Have you made any long term measurements with the ADXL372? Have&amp;nbsp;you observed such values before or am I alone with this problem?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;J&amp;uuml;rgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Acceleration measurement - ADXL372 ADXL362 - curious peak values</title><link>https://devzone.nordicsemi.com/thread/406699?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 14:31:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fa8c725-27ba-4a77-a10b-ac4775b59760</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Jürgen,&lt;/p&gt;
&lt;p&gt;Sorry, I am not sure if I understand the question correctly. Perhaps you could rephrase it?&lt;/p&gt;
&lt;p&gt;Best 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: Acceleration measurement - ADXL372 ADXL362 - curious peak values</title><link>https://devzone.nordicsemi.com/thread/406382?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2023 07:27:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae4c7e89-a587-4e42-b714-0ef4a9216fee</guid><dc:creator>grj</dc:creator><description>&lt;p&gt;Hi &lt;span&gt;H&amp;aring;kon&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;I think I now have the values you meant:&lt;/p&gt;
&lt;p&gt;I have set a breakpoint in a line if (werthx &amp;gt; 200).&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;werthx = 516,806&lt;/p&gt;
&lt;p&gt;&amp;amp;accel2&amp;nbsp;&lt;br /&gt;val1 = 516&lt;br /&gt;val2 = 805712&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1674631573022v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Does this mean that it is more likely due to the config?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;J&amp;uuml;rgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Acceleration measurement - ADXL372 ADXL362 - curious peak values</title><link>https://devzone.nordicsemi.com/thread/405705?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2023 14:19:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12edaaba-17f2-4966-ad9f-d80540745c3b</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Jürgen, sorry for the delay.&lt;/p&gt;
&lt;p&gt;Could you try to debug add a breakpoint at line 13? For example, if &lt;code&gt;werthx&lt;/code&gt; is larger than 10g, print out what was fed into &lt;code&gt;sensor_value_to_double&lt;/code&gt; and compare it to &lt;code&gt;werthx&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;It would also be interesting to see the raw sensor data directly as they come from the sensor. This way we might learn more about whether there is something wrong with the driver or whether the sensor needs to be set up differently (filtering etc.).&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Acceleration measurement - ADXL372 ADXL362 - curious peak values</title><link>https://devzone.nordicsemi.com/thread/404583?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 14:10:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e697cb96-22ba-4cc0-bc67-8fc651ea69d1</guid><dc:creator>grj</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;H&amp;aring;kon,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;both sensors are in measuring mode. I read out both of them, and if there is a Value higher than 8g I take the value from the ADXL372 otherwise I take the value from the ADXL362.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;With this Values I calculate rms and also send Peak values.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;But the high peak values are direct from&amp;nbsp;&amp;quot;sensor_value_to_double&amp;quot; from the ADXL372.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;                    if (IS_ENABLED(CONFIG_ADXL372_TRIGGER)) {
                            if (IS_ENABLED(CONFIG_ADXL372_PEAK_DETECT_MODE)) {
                                    printf(&amp;quot;Waiting for a threshold event\n&amp;quot;);
                            }
                            k_sem_take(&amp;amp;sem, K_FOREVER);
                    } else {
                            if (sensor_sample_fetch(dev2)) {
                                    printf(&amp;quot;sensor_sample_fetch failed\n&amp;quot;);
                            }
                    }

                    sensor_channel_get(dev2, SENSOR_CHAN_ACCEL_XYZ, accel2);
                    double werthx = sensor_value_to_double(&amp;amp;accel2[0]);
                    double werthy = sensor_value_to_double(&amp;amp;accel2[1]);
                    double werthz = sensor_value_to_double(&amp;amp;accel2[2]);
&lt;/pre&gt;&lt;br /&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;What would be the disadvantage of the ADXL372 when in measuring mode?&lt;br /&gt;&lt;br /&gt;Thanks for the hint with the&lt;span&gt;&amp;nbsp;zephyr&amp;#39;s&amp;nbsp;&lt;/span&gt;accel polling. I will give it a try.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;J&amp;uuml;rgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Acceleration measurement - ADXL372 ADXL362 - curious peak values</title><link>https://devzone.nordicsemi.com/thread/403661?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2023 22:39:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f224dcca-d581-4d93-b8eb-6c5810685479</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Jürgen, sorry for the delay. Here are some of the comments and questions that came up when trying to understand this issue:&lt;/p&gt;
&lt;p&gt;Which one of the two motion sensors are we seeing average and peak values from?&lt;/p&gt;
&lt;p&gt;Are you using activity detection by manually reading the status register? Are you using the power saving features like instant-on-mode or wakeup-mode? These can be configured in .dts.&lt;/p&gt;
&lt;p&gt;ADXL372 is mostly useful for peak detection. It is recommended to use the hardware feature for peak detection along with the trigger. ADXL362 is better suited for measuring subtle movements and average.&lt;/p&gt;
&lt;p&gt;Another thing to try is zephyr&amp;#39;s accel_polling sample to see if you are able to reproduce the readings. There can always be those easy-to-miss integer-conversion errors in application code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Acceleration measurement - ADXL372 ADXL362 - curious peak values</title><link>https://devzone.nordicsemi.com/thread/402060?ContentTypeID=1</link><pubDate>Fri, 23 Dec 2022 10:27:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3742a68-57f4-431c-b2b8-94833abab5bc</guid><dc:creator>grj</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;H&amp;aring;kon,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for helping me with this issue. &lt;br /&gt;Would it help if I set the sampling frequency of the 372 higher?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yes, I am using the zephyr driver.&lt;br /&gt;&lt;/span&gt;&lt;span&gt;I found the status flag, but doesn&amp;#39;t that mean that only a value is output when the status is ready?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:126px;max-width:215px;" height="126" src="https://devzone.nordicsemi.com/resized-image/__size/430x252/__key/communityserver-discussions-components-files/4/pastedimage1671791107275v1.png" width="215" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regarding the temperature sensor, I will measure the consumption. Unfortunately, I won&amp;#39;t have the opportunity to measure until next year.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you and best regards&lt;br /&gt;&lt;/span&gt;&lt;span&gt;J&amp;uuml;rgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Acceleration measurement - ADXL372 ADXL362 - curious peak values</title><link>https://devzone.nordicsemi.com/thread/401962?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2022 14:18:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2fba871-ad66-497c-b88a-e3304c6a0750</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hello Jürgen,&lt;/p&gt;
&lt;p&gt;It might be that you are reading peak values before they are ready. There is a flag in the STATUS register which is automatically checked if you are using the Zephyr driver.&lt;/p&gt;
&lt;p&gt;I have also received a longer reply form our team with suggestions regarding what this could be. I will provide you with an update later today.&lt;/p&gt;
&lt;p&gt;Regarding the temperature, I agree with Achim that this could be due to increased current consumption. It is a good approach to measure the current, for example with PPK2, and compare with the temperature readings.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Acceleration measurement - ADXL372 ADXL362 - curious peak values</title><link>https://devzone.nordicsemi.com/thread/401475?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2022 10:31:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3342240f-2149-4486-916f-5a44789039da</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hello Jürgen,&lt;/p&gt;
&lt;p&gt;Just letting you know I am working on finding out what this might be and will get back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Acceleration measurement - ADXL372 ADXL362 - curious peak values</title><link>https://devzone.nordicsemi.com/thread/401295?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 13:56:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b02e3944-d993-407d-ad74-cdb5bafea9ae</guid><dc:creator>grj</dc:creator><description>&lt;p&gt;Hello Achim,&lt;/p&gt;
[quote userid="5203" url="~/f/nordic-q-a/94946/acceleration-measurement---adxl372-adxl362---curious-peak-values/401131"]Does &amp;quot;identical&amp;quot; include the same time? Maybe you live in a earthquake region? Or close to a street with heavy vehicles? Or is it just the signal pattern, but at different times?[/quote]
&lt;p&gt;Thank you for your input. It is definitely not real accelerations (from earthquake or other accelerations) as these peak values are up to 2000 m/s&amp;sup2; (the entire measuring range of the ADXL372)&lt;br /&gt;It&amp;#39;s more of a noise and it occurs on both Thingys but not at the same time.&lt;/p&gt;
[quote userid="5203" url="~/f/nordic-q-a/94946/acceleration-measurement---adxl372-adxl362---curious-peak-values/401131"]I see CONFIG_MQTT_RECONNECT_DELAY_S or CONFIG_LTE_CONNECT_RETRY_DELAY_S. Which one did you test?[/quote]
&lt;p&gt;Sorry, an error has slipped in. The higher temperatures occur in the interval of CONFIG_LTE_CONNECT_RETRY_DELAY_S.&lt;br /&gt;I do not charge the lipo during these tests. But the hint with the current measurement I will try.&lt;br /&gt;I will also look at the temperature compensation of the Asset tracker v2. Thank you very much.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards J&amp;uuml;rgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Acceleration measurement - ADXL372 ADXL362 - curious peak values</title><link>https://devzone.nordicsemi.com/thread/401131?ContentTypeID=1</link><pubDate>Sat, 17 Dec 2022 09:05:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3aca0840-02ec-4487-818c-a205993ad834</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt; The problem is identical for both Thingys.&lt;/p&gt;
&lt;p&gt;Does &amp;quot;identical&amp;quot; include the same time? Maybe you live in a earthquake region? Or close to a street with heavy vehicles? Or is it just the signal pattern, but at different times?&lt;/p&gt;
&lt;p&gt;&amp;gt; LTE_RECONNECT_DELAY_S&lt;/p&gt;
&lt;p&gt;I see CONFIG_MQTT_RECONNECT_DELAY_S or CONFIG_LTE_CONNECT_RETRY_DELAY_S. Which one did you test?&lt;/p&gt;
&lt;p&gt;I would use a PPK2 to measure the power consumption. Maybe the culprit is just a higher power consumption, if the device is &amp;quot;connected&amp;quot; for longer or &amp;quot;disconnected&amp;quot; for shorter.&lt;/p&gt;
&lt;p&gt;In my experience, the &amp;quot;heater&amp;quot; in a Thingy:91 is mainly the modem, it has the highest current consumption depending on its activation state.&lt;/p&gt;
&lt;p&gt;The other &amp;quot;heater&amp;quot; is the LiPo when getting charged. But that&amp;#39;s more about 10&amp;deg; than 1&amp;deg;.&lt;/p&gt;
&lt;p&gt;The asset tracker v2 offers a&lt;/p&gt;
&lt;p&gt;config EXTERNAL_SENSORS_BSEC_TEMPERATURE_OFFSET&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;int &amp;quot;BSEC temperature offset in degree celsius * 100&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;default 120 if BOARD_THINGY91_NRF9160_NS&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;default 100&lt;/p&gt;
&lt;p&gt;to compensate the self heating when using protocols with higher power consumption.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>