<?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>ble app uart + I2C + LIS3DH Acc Output X,Y,Z  values always remain 0 even if I have moved the BEACON .</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79435/ble-app-uart-i2c-lis3dh-acc-output-x-y-z-values-always-remain-0-even-if-i-have-moved-the-beacon</link><description>values returned by ACC is always 0 !! 
 i2c_write &amp;amp;&amp;amp; i2c_read 
 
 le_nus_data_send via uart &amp;amp;&amp;amp; printf( &amp;quot;A: %.1f; %.1f; %.1f \n&amp;quot;, LIS3DH_Acc[0], LIS3DH_Acc[1], LIS3DH_Acc[2]); 
 
 shema hardware LIS3DH : 
 
 
 
 shema hardware NRF52805 &amp;amp;&amp;amp; LIS3DH : 
 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Sep 2021 07:50:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79435/ble-app-uart-i2c-lis3dh-acc-output-x-y-z-values-always-remain-0-even-if-i-have-moved-the-beacon" /><item><title>RE: ble app uart + I2C + LIS3DH Acc Output X,Y,Z  values always remain 0 even if I have moved the BEACON .</title><link>https://devzone.nordicsemi.com/thread/329734?ContentTypeID=1</link><pubDate>Thu, 16 Sep 2021 07:50:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf1db8b5-9777-47f4-a83c-292750e0340d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;My French is rather rusty, so I&amp;#39;m sorry if&amp;nbsp;something was lost in translation. I&amp;#39;d appreciate it if you would keep replies on DevZone to English.&lt;/p&gt;
&lt;p&gt;1. Check out the Startup sequence and the control registers (CTRL_REG) in the &lt;a href="https://cdn-shop.adafruit.com/datasheets/LIS3DHappnote.pdf"&gt;LIS3DH app note&lt;/a&gt;&amp;nbsp;to make sure your device is configured correctly. You could also use a multimeter to measure if there&amp;#39;s any activity on the lines between the nRF52 and the LIS3DH.&lt;/p&gt;
&lt;p&gt;2. Okay, good.&lt;/p&gt;
&lt;p&gt;3.&amp;nbsp;I think the reason that you&amp;#39;re&amp;nbsp;&lt;strong&gt;only&amp;nbsp;&lt;/strong&gt;seeing 0s from the accelerometer is that it isn&amp;#39;t configured correctly, and thus doesn&amp;#39;t actually send data to the nRF52. The only way to be certain is to check the TWI lines whether there is any activity there.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart + I2C + LIS3DH Acc Output X,Y,Z  values always remain 0 even if I have moved the BEACON .</title><link>https://devzone.nordicsemi.com/thread/329404?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 11:19:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aad66a6c-0202-4abe-96d6-1664ffca4f44</guid><dc:creator>rh.amine</dc:creator><description>&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;Salut Simon&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;You might have to write something to the sensor in order to get anything back.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;how can I validate the functioning of LIS3DH ??&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;&amp;Ecirc;tes-vous s&amp;ucirc;r de suivre le protocole de communication TWI d&amp;eacute;crit dans la fiche technique de l&amp;#39;appareil&amp;nbsp;?&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;Oui je suis s&amp;ucirc;r&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;Avez-vous un analyseur logique pour voir s&amp;#39;il y a une quelconque activit&amp;eacute; sur les lignes TWI&amp;nbsp;?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;je n&amp;#39;ai pas&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;Pouvez-vous m&amp;#39;expliquer pourquoi les trois variables suivantes renvoient toujours 0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;&lt;span style="color:#ff00ff;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;tmp_int16[&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="vertical-align: inherit;"&gt;&lt;span style="vertical-align: inherit;"&gt; 0] = (int16_t)((tmp[1]&amp;lt;&amp;lt; 8) | tmp[0]); &lt;/span&gt;&lt;span style="vertical-align:inherit;"&gt;0 &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="color:#ff00ff;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;tmp_int16&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt; [1] = (int16_t)((tmp[3]&amp;lt;&amp;lt; 8) | tmp[2]); &lt;/span&gt;&lt;span style="vertical-align:inherit;"&gt;0&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="background-color:#ffffff;color:#ff00ff;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;tmp_int16&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt; [2] = (int16_t)((tmp[5]&amp;lt;&amp;lt; 8) | tmp[4]); &lt;/span&gt;&lt;span style="vertical-align:inherit;"&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;si&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="background-color:#ffffff;color:#ff00ff;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;tmp_int16 &lt;/span&gt;&lt;/span&gt;&lt;span style="color:#ff00ff;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;[&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="vertical-align: inherit;"&gt;&lt;span style="vertical-align: inherit;"&gt; 0] &lt;/span&gt;&lt;span style="color:#000000;"&gt;&lt;span style="vertical-align:inherit;"&gt;est &lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;&lt;span style="vertical-align:inherit;"&gt;toujours&lt;/span&gt;&lt;/span&gt;&lt;span style="vertical-align:inherit;"&gt; &amp;nbsp;0&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;span style="color:#000000;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;/span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;&lt;span style="background-color:#ffffff;color:#ff00ff;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;donc&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color:#ff00ff;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;acc[0] 0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#339966;"&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;voici ma fonction&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;void LIS3DH_GetAccData(float *acc) &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;{ &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;uint8_t tmp[6] = {0}; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;int16_t tmp_int16[3] = {0}; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;&amp;eacute;tat uint8_t = 0 ; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;//v&amp;eacute;rification des donn&amp;eacute;es pr&amp;ecirc;tes ? &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;i2c_read(LIS3DH_I2C_ADDRESS ,(LIS3DH_REGISTER_STATUS_REG2), &amp;amp;status, 0x01); &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;if(status &amp;amp; LIS3DH_STATUS_REG_ZYXDA) &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;{ &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;i2c_read(LIS3DH_I2C_ADDRESS ,(LIS3DH_REGISTER_OUT_X_L | LIS3DH_READ_MULTI_BYTES), tmp, 0x06); &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;tmp_int16[0] = (int16_t)((tmp[1]&amp;lt;&amp;lt; 8) | tmp[0]); &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;tmp_int16[1] = (int16_t)((tmp[3]&amp;lt;&amp;lt; 8) | tmp[2]); &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;tmp_int16[2] = (int16_t)((tmp[5]&amp;lt;&amp;lt; 8) | tmp[4]); &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;acc[0] = (float)(tmp_int16[0]) * LIS3DH_ACC_CONVERT_8G; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;acc[1] = (float)(tmp_int16[1]) * LIS3DH_ACC_CONVERT_8G; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;acc[2] = (float)(tmp_int16[2]) * LIS3DH_ACC_CONVERT_8G;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;Meilleures salutations,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart + I2C + LIS3DH Acc Output X,Y,Z  values always remain 0 even if I have moved the BEACON .</title><link>https://devzone.nordicsemi.com/thread/329315?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 06:48:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da462986-e983-45a0-b97b-4b3246b1a28d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You might have to write something to the sensor in order to get anything back. Are you sure you&amp;#39;re following the TWI communication protocol described in the datasheet of the device? It seems to me like your nRF device is able to operate over BLE and UART as intended, and that only the TWI is problematic on your end.&lt;/p&gt;
&lt;p&gt;Do you have a logic analyzer so&amp;nbsp;you can see whether there&amp;#39;s any activity on the TWI lines at all?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart + I2C + LIS3DH Acc Output X,Y,Z  values always remain 0 even if I have moved the BEACON .</title><link>https://devzone.nordicsemi.com/thread/329160?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 09:07:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8236782a-994f-4b8e-8ec9-84f7b14ef905</guid><dc:creator>rh.amine</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Simon&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Is there a battery in the device you&amp;#39;re using powering the device?&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m sure the device is powered by a button battery.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1631523775194v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart + I2C + LIS3DH Acc Output X,Y,Z  values always remain 0 even if I have moved the BEACON .</title><link>https://devzone.nordicsemi.com/thread/329141?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 07:21:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9eb57628-d100-4a21-a604-9815423c3d26</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Is there a battery in the device you&amp;#39;re using powering the device? The J-Link will not be sufficient to power the nRF by itself, so if not it won&amp;#39;t be running properly. And are you sure the LIS3DH is powered properly, as I&amp;#39;d imagine only printing 0&amp;#39;s would point to the device not being powered.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart + I2C + LIS3DH Acc Output X,Y,Z  values always remain 0 even if I have moved the BEACON .</title><link>https://devzone.nordicsemi.com/thread/328968?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 09:26:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42dbbc8b-b1c1-43cf-b99f-7dff70868482</guid><dc:creator>rh.amine</dc:creator><description>&lt;div class="FFpbKc"&gt;
&lt;div class="ZTPlmc"&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="dePhmb"&gt;
&lt;div class="eyKpYb"&gt;
&lt;div class="J0lOec"&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;thank you so much for helping me Simon&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;em&gt;&lt;strong&gt;Is the device running normally except the incorrect TWI values?&amp;nbsp;&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;no does not work, I tested it with TWI, because in the hardware shema the LIS3DH is connected with SDA and SCL.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1631264539761v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;em&gt;&lt;strong&gt;Please note that v7.0.1 and v7.2.0 are the SoftDevice versions that have been tested with the nRF52805&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ok I will create another project which is based on SDK17.02 which contains SDv7.2.0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;em&gt;&lt;strong&gt;How are you powering the board and set it up?&amp;nbsp;&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class="FFpbKc"&gt;
&lt;div class="ZTPlmc"&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="dePhmb"&gt;
&lt;div class="eyKpYb"&gt;
&lt;div class="J0lOec"&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;&lt;strong&gt;1&lt;/strong&gt;.I am using J-link and IDE SEGGER&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1631264813549v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;div class="J0lOec"&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;&lt;span style="color:#ff0000;"&gt;&lt;em&gt;&lt;strong&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;Can you confirm what lines of code are returning/printing these zeroes?&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1631265312358v4.png" alt=" " /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;&lt;strong&gt;2.&lt;/strong&gt;I am using UART BLE to retrieve values&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1631265446923v6.png" alt=" " /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;
&lt;div class="J0lOec"&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;b&gt;3&lt;/b&gt;.BEACON has:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;-NRF52805&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;-BUZZER (works)&lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;-LED (works)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;-BUTTON (works)&lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;-LIS3DH (does not work)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;&lt;span style="color:#339966;"&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;void LIS3DH_GetAccData(float *acc)&lt;br /&gt;{&lt;br /&gt; uint8_t tmp[6] = {0};&lt;br /&gt; int16_t tmp_int16[3] = {0};&lt;br /&gt; uint8_t status = 0;&lt;br /&gt; &lt;br /&gt; //check data ready?&lt;br /&gt; i2c_read(LIS3DH_I2C_ADDRESS ,(LIS3DH_REGISTER_STATUS_REG2), &amp;amp;status, 0x01);&lt;br /&gt; if(status &amp;amp; LIS3DH_STATUS_REG_ZYXDA)&lt;br /&gt; { &lt;br /&gt; i2c_read(LIS3DH_I2C_ADDRESS ,(LIS3DH_REGISTER_OUT_X_L | LIS3DH_READ_MULTI_BYTES), tmp, 0x06);&lt;br /&gt; tmp_int16[0] = (int16_t)((tmp[1]&amp;lt;&amp;lt; 8) | tmp[0]);&lt;br /&gt; tmp_int16[1] = (int16_t)((tmp[3]&amp;lt;&amp;lt; 8) | tmp[2]);&lt;br /&gt; tmp_int16[2] = (int16_t)((tmp[5]&amp;lt;&amp;lt; 8) | tmp[4]);&lt;br /&gt;&lt;br /&gt; acc[0] = (float)(tmp_int16[0]) * LIS3DH_ACC_CONVERT_8G;&lt;br /&gt; acc[1] = (float)(tmp_int16[1]) * LIS3DH_ACC_CONVERT_8G;&lt;br /&gt; acc[2] = (float)(tmp_int16[2]) * LIS3DH_ACC_CONVERT_8G;&lt;br /&gt; }&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;&lt;span&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;&lt;span&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;you can understand me how i2c works and how to read the bits in the registers ??????????????&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;&lt;span&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;&lt;span&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;i2c_write()&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;&lt;span&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;i2c_read()&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;&lt;span style="color:#339966;"&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="J0lOec"&gt;&lt;span style="color:#339966;"&gt;&lt;strong&gt;&lt;em&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1631265832200v7.png" alt=" " /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Amine&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart + I2C + LIS3DH Acc Output X,Y,Z  values always remain 0 even if I have moved the BEACON .</title><link>https://devzone.nordicsemi.com/thread/328924?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 07:05:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eae2cd5b-1b0b-4489-88d3-37a338bddc7d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Is the device running normally except the incorrect TWI values? Please note that v7.0.1 and v7.2.0 are the SoftDevice versions that have been tested with the nRF52805. How are you powering the board and set it up? Have you checked out the&lt;a href="https://cdn-shop.adafruit.com/datasheets/LIS3DHappnote.pdf"&gt; LIS3DH application note&lt;/a&gt; here? I&amp;#39;m not able to see any issue in your code by looking at it. Can you confirm what lines of code are returning/printing these zeroes?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble app uart + I2C + LIS3DH Acc Output X,Y,Z  values always remain 0 even if I have moved the BEACON .</title><link>https://devzone.nordicsemi.com/thread/328643?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 14:16:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0e8a842-68d6-40a1-9a9d-cd3897215885</guid><dc:creator>rh.amine</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;SImon&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I answered your questions.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/79386/nrf52805-ble-app-uart-i2c-lis3dh-acc-output-x-y-z-values-from-lis3dh-0"&gt;devzone.nordicsemi.com/.../nrf52805-ble-app-uart-i2c-lis3dh-acc-output-x-y-z-values-from-lis3dh-0&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>