<?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>Sample code at ncs to test ADXL362 and ADXL372</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108928/sample-code-at-ncs-to-test-adxl362-and-adxl372</link><description>Hi 
 Customer Synzen made its own nrf9160 module which referred to Thingy91 schematics. 
 This module has all sensor chips as same as Thingy91. 
 They want to verify ADXL362 and ADXL372 g sensor at this module by nrf9160 firmware. 
 Would ncs2.5.2 have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Apr 2024 10:31:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108928/sample-code-at-ncs-to-test-adxl362-and-adxl372" /><item><title>RE: Sample code at ncs to test ADXL362 and ADXL372</title><link>https://devzone.nordicsemi.com/thread/477762?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 10:31:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da37b8be-816e-4fee-adb9-f08421252c8d</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hi Jeffrey,&lt;/p&gt;
&lt;p&gt;Sorry, my last reply was completely wrong.&lt;/p&gt;
&lt;p&gt;The way to select the measurement mode is to include CONFIG_ADXL372_MEASUREMENT_MODE=y in your prj.conf. Sorry about the misinformation.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code at ncs to test ADXL362 and ADXL372</title><link>https://devzone.nordicsemi.com/thread/477433?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 01:32:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3be78259-82be-4c5c-9631-d1a11d0ec73f</guid><dc:creator>Jeffery</dc:creator><description>&lt;p&gt;Hi Maria&lt;/p&gt;
&lt;p&gt;As below. I added&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_ADXL372_OP_MODE"&gt;CONFIG_ADXL372_OP_MODE&lt;/a&gt;&lt;span&gt;=&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_ADXL372_MEASUREMENT_MODE"&gt;CONFIG_ADXL372_MEASUREMENT_MODE&lt;/a&gt;&lt;span&gt;&amp;nbsp;in prj.conf. Then, it failed to build at VS code.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2046.png" /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Jeffery&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code at ncs to test ADXL362 and ADXL372</title><link>https://devzone.nordicsemi.com/thread/476834?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 11:08:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f46dbcd-8464-4b08-ba20-9f1f5d43f0d0</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hi Jeff,&lt;/p&gt;
&lt;p&gt;Thank you for your patience.&lt;/p&gt;
[quote user="Jeffery"]&lt;p&gt;If yes,&amp;nbsp;how to only adjust ADXL372 configurations at prj.conf ? Then, ADXL372 can run motion sensing at&lt;/p&gt;
&lt;p&gt;accel_polling sample.&lt;/p&gt;[/quote]
&lt;p&gt;You can select the measurement mode with &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_ADXL372_OP_MODE"&gt;CONFIG_ADXL372_OP_MODE&lt;/a&gt;=&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_ADXL372_MEASUREMENT_MODE"&gt;CONFIG_ADXL372_MEASUREMENT_MODE&lt;/a&gt; in prj.conf.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code at ncs to test ADXL362 and ADXL372</title><link>https://devzone.nordicsemi.com/thread/475569?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 08:48:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e661d70-36a7-4818-a8dd-5c63c211a20a</guid><dc:creator>Jeffery</dc:creator><description>&lt;p&gt;Hi Maria&lt;/p&gt;
&lt;p&gt;Thanks for your information.&lt;/p&gt;
&lt;p&gt;At ncs, it defined a lot of ADXL362 and ADXL372 configurations.&lt;/p&gt;
&lt;p&gt;So, all what developer has to do is only to adjust these definitions at prj.conf to yes or no, or given some&lt;/p&gt;
&lt;p&gt;legal value. Then, after built up the project, it mapped related value and fill to these registers.&lt;/p&gt;
&lt;p&gt;Developer didn&amp;#39;t need to implement low level SPI driver and then write registers.&lt;/p&gt;
&lt;p&gt;Is it correct?&lt;/p&gt;
&lt;p&gt;If yes,&amp;nbsp;how to only adjust ADXL372 configurations at prj.conf ? Then, ADXL372 can run motion sensing at&lt;/p&gt;
&lt;p&gt;accel_polling sample.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Jeff&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;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code at ncs to test ADXL362 and ADXL372</title><link>https://devzone.nordicsemi.com/thread/475539?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 07:38:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:755006b6-1477-4b62-b9e0-f4aa5c72010d</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hi Jeff,&lt;/p&gt;
[quote user="Jeffery"]Knocking Thingy91,&amp;nbsp;uart&amp;nbsp;can log&amp;nbsp;non-zero xyz values.[/quote]
&lt;p&gt;Great that the ADXL372 is working as intended. &lt;/p&gt;
&lt;p&gt;The high-g events are detected when the high-pass filter on the ADXL372 is enabled. See the section in the datasheet titled &lt;em&gt;Low-Pass Activity Detect Filter. &lt;/em&gt;The section contains some information about the high pass filter as well. When using the ADXL372 for movement detection, the high-pass filter should be disable. This is possible through the power control register. See &lt;em&gt;Table 67. Bit Descriptions for POWER_CTL&lt;/em&gt;. Link to the datasheet is &lt;a href="https://www.analog.com/media/en/technical-documentation/data-sheets/ADXL372.pdf"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards, &lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code at ncs to test ADXL362 and ADXL372</title><link>https://devzone.nordicsemi.com/thread/474980?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2024 03:54:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01cc23d5-2184-4419-b985-a213abe361d1</guid><dc:creator>Jeffery</dc:creator><description>&lt;p&gt;Hi Maria&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Knocking Thingy91,&amp;nbsp;uart&amp;nbsp;can log&amp;nbsp;non-zero xyz values.&lt;/p&gt;
&lt;p&gt;So, ADXL372 default is impact sensing. For motion sensing as ADXL362 did, how to make it?&lt;/p&gt;
&lt;p&gt;I cannot find this information at Analog Devices page.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Jeff&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code at ncs to test ADXL362 and ADXL372</title><link>https://devzone.nordicsemi.com/thread/474944?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2024 15:30:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84bc17f9-6698-4523-af43-21e7c4a77536</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hi Jeff,&lt;/p&gt;
[quote user="Jeffery"]At accel_polling sample, I only added overlay file for alias. So, shall I add some kinf og configurations at[/quote]
&lt;p&gt;Both ADXL372 and ADXL362 are configured in the &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/boards/arm/thingy91_nrf9160/thingy91_nrf9160_common.dts#L180-L192"&gt;Thingy:91 device tree&lt;/a&gt;, so you don&amp;#39;t have to do anything more to configure the accel_polling sample.&lt;/p&gt;
[quote user="Jeffery"]Set up alias for both. ADXL362 can output xyz data as movements. ADXL372 output xyz zero.[/quote]
&lt;p&gt;Depending on the configuration of ADXL372 it will sense motion or impacts. See &lt;a href="https://ez.analog.com/mems/f/q-a/164950/adxl372-peak-detection-questions"&gt;this post&lt;/a&gt; from Analog Devices EngineerZone where there is an example on the output from the sensor. &lt;/p&gt;
&lt;p&gt;If your ADXL372 is configured to sense impacts, it needs an impact to sense to output non-zero values.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code at ncs to test ADXL362 and ADXL372</title><link>https://devzone.nordicsemi.com/thread/474184?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2024 01:28:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d75379b1-bd8b-4787-ab0c-5879e8ba8506</guid><dc:creator>Jeffery</dc:creator><description>&lt;p&gt;Hi Maria&lt;/p&gt;
&lt;p&gt;I tried the accel_polling sample code at Thingy91 but not customer board.&lt;/p&gt;
&lt;p&gt;Set up alias for both. ADXL362 can output xyz data as movements. ADXL372 output xyz zero.&lt;/p&gt;
&lt;p&gt;At accel_polling sample, I only added overlay file for alias. So, shall I add some kinf og configurations at&lt;/p&gt;
&lt;p&gt;prj.conf to let ADXL372 work?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code at ncs to test ADXL362 and ADXL372</title><link>https://devzone.nordicsemi.com/thread/473935?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2024 15:07:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ec84ac8-1250-42bf-a118-a2549fea4929</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hi Jeff,&lt;/p&gt;
&lt;p&gt;Sorry about the delay.&lt;/p&gt;
&lt;p&gt;Susheel is away and we needed some time to get his work distributed to other engineers.&lt;/p&gt;
&lt;p&gt;A small disclaimer: I had to start from scratch with this and read up along the way, so there could be information and contexts I&amp;#39;m not aware of.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;The ADXL372 is used as the shock sensor, do you do anything to see if the output is zero regardless of any impacts on it?&lt;/p&gt;
&lt;p&gt;The other thing I can think of is to verify that the ADXL372 is connected to your board correctly according to the schematics (i.e. for the Thingy:91 &lt;a href="https://infocenter.nordicsemi.com/topic/ug_thingy91/UG/thingy91/hw_description/motion_sensors.html?cp=15_0_2_5"&gt;on the Infocenter&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code at ncs to test ADXL362 and ADXL372</title><link>https://devzone.nordicsemi.com/thread/473745?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2024 03:15:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:794d044e-8cbc-4881-8050-d9396a8e0355</guid><dc:creator>Jeffery</dc:creator><description>&lt;p&gt;How about it? Thanx&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code at ncs to test ADXL362 and ADXL372</title><link>https://devzone.nordicsemi.com/thread/473090?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2024 06:24:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4faaa129-dfff-4c44-ad6b-c4e933f3fb96</guid><dc:creator>Jeffery</dc:creator><description>&lt;p&gt;Hi Susheel&lt;/p&gt;
&lt;p&gt;Tried ncs2.5.0 accel_polling sample&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp;Board configuration &amp;quot;thingy91_nrf9160_ns&amp;quot;&lt;/p&gt;
&lt;p&gt;2. Add overlay file &amp;quot;thingy91_nrf9160_ns.overlay&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; Content=&amp;gt;&lt;/p&gt;
&lt;p&gt;/ {&lt;br /&gt; aliases {&lt;br /&gt; accel0 = &amp;amp;adxl362;&lt;br /&gt; accel1 = &amp;amp;adxl372;&lt;br /&gt; };&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;Then, build and flash the code to Thingy91.&lt;/p&gt;
&lt;p&gt;Observed the uart output. ADXL362 xyz output butADXL372 xyz kept zero.&lt;/p&gt;
&lt;p&gt;How shall I do to let ADXL372 work? Thanks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Jeff&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;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code at ncs to test ADXL362 and ADXL372</title><link>https://devzone.nordicsemi.com/thread/472375?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2024 08:54:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:029dc6e8-a117-47c5-8160-1f5bf4372726</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I am sorry about this, it looks like I got carried away and linked you old documentation.&lt;/p&gt;
&lt;p&gt;It looks like this sample was removed in upstream zephyr repo in v3.2.0 in &lt;a href="https://github.com/zephyrproject-rtos/zephyr/commit/17437f9dc5e6fa511ec0ae12c26df3fc631c75c7"&gt;this &lt;/a&gt;and &lt;a href="https://github.com/zephyrproject-rtos/zephyr/commit/5306db05afcb615bc51cde97338562818680fc5c"&gt;this&lt;/a&gt; PR. As you can see the reason is that &lt;a href="https://docs.zephyrproject.org/latest/samples/sensor/accel_polling/README.html"&gt;accel_polling&lt;/a&gt; sample shows the usage of this driver. You can find that in Zephyr/samples/sensor folder.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code at ncs to test ADXL362 and ADXL372</title><link>https://devzone.nordicsemi.com/thread/472362?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2024 08:15:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2d74621-9f7a-4227-bf9c-cffce132968e</guid><dc:creator>Jeffery</dc:creator><description>&lt;p&gt;Hi Susheel&lt;/p&gt;
&lt;p&gt;1. I tried to find ADXL362 sample at ncs2.5.0 zephyr folder as below. However, I cannot find it.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; Where can I find it?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/04820.png" /&gt;&lt;/p&gt;
&lt;p&gt;2. How about ADXL372 sample? Thanks&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Jeff&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;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code at ncs to test ADXL362 and ADXL372</title><link>https://devzone.nordicsemi.com/thread/472318?ContentTypeID=1</link><pubDate>Tue, 05 Mar 2024 18:31:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df26ed03-87cb-45e7-a4f3-96c475005bb9</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;You can simply build and flash &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.99-dev1/zephyr/samples/sensor/adxl362/README.html"&gt;ADXL362&lt;/a&gt;&amp;nbsp;sample when you chose the right board files. If your module is mostly based on Thingy91 schematics then probably you can chose thingy91 as your board and try to run this sample on your module. Give it a try and let me know if you can see some data from this accelerometer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>