<?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>Adding LIS3DH Sensor to nRF5340DK Machine Learning</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113536/adding-lis3dh-sensor-to-nrf5340dk-machine-learning</link><description>So to quickly summarize my issue, I am trying to implement the LIS3DH accelerometer. Even though it builds and flashes I am not able to send data like I can with the simulated sensor. I&amp;#39;m hoping someone can tell me if I am setting up the configuration</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Aug 2024 09:27:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113536/adding-lis3dh-sensor-to-nrf5340dk-machine-learning" /><item><title>RE: Adding LIS3DH Sensor to nRF5340DK Machine Learning</title><link>https://devzone.nordicsemi.com/thread/496785?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2024 09:27:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2645022e-8d20-4129-9ad0-fcc3d7337e05</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I went through the files you shared. In the overlay, the compatible string for your overlay was set to &amp;quot;st,lis2dh&amp;quot; for the LIS3DH sensor. However, I think it should be&lt;span style="color:rgba(0, 0, 255, 1);"&gt; compatible = &amp;quot;st,lis3dh&amp;quot;;&lt;/span&gt;. I verified this by checking the Zephyr repository.&lt;a href="https://github.com/intel/zephyr/blob/main/dts/bindings/sensor/st%2Clis3dh-i2c.yaml#L6"&gt; See this link&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;br /&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/pastedimage1722590629249v3.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Have you initialized the sensor properly in your code? I couldn&amp;#39;t find that in the shared code. Please refer to&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-6-serial-com-i2c/topic/exercise-1-6-2/"&gt; this guide for reference&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I recommend adding some logs to confirm whether the I2C communication is happening or not. This will help troubleshoot the issue more easily. Verify that the I2C pin configuration is correct and matches your hardware setup. The pinctrl settings seem fine, but ensure that the pins used in i2c1_default are indeed the correct ones for your interface.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding LIS3DH Sensor to nRF5340DK Machine Learning</title><link>https://devzone.nordicsemi.com/thread/496472?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2024 19:08:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a845f5c8-a57c-4adf-8edb-1da34ac1a87f</guid><dc:creator>mlee</dc:creator><description>&lt;p&gt;Thank you for the response! I am using SDK 2.6.1. Here are the 3 files I changed:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8154.prj.conf"&gt;devzone.nordicsemi.com/.../8154.prj.conf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5482.app.overlay"&gt;devzone.nordicsemi.com/.../5482.app.overlay&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/sensor_5F00_manager_5F00_def.h"&gt;devzone.nordicsemi.com/.../sensor_5F00_manager_5F00_def.h&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding LIS3DH Sensor to nRF5340DK Machine Learning</title><link>https://devzone.nordicsemi.com/thread/496471?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2024 19:02:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47b6a477-7986-4a09-9de0-6d80fa95ea3a</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Could you please let me know which SDK version you are using? I would also appreciate it if you could share the files instead of a screenshot, as it is much easier to go through them. You can use the insert tab to share the files. From the screenshot, your overlay file looks good but please ensure &lt;code&gt;lis3dh@18&lt;/code&gt; corresponds to the actual I2C address of your sensor.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>