<?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>lsm6dsm tilt detection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118050/lsm6dsm-tilt-detection</link><description>Hi I am using lsm6dsm sensor with nrf5340, could you please provide me an example code for that for tilt detection functionality Thanks Sumant</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Jan 2025 14:56:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118050/lsm6dsm-tilt-detection" /><item><title>RE: lsm6dsm tilt detection</title><link>https://devzone.nordicsemi.com/thread/518675?ContentTypeID=1</link><pubDate>Thu, 16 Jan 2025 14:56:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84cd78b3-bce9-47af-a3e5-105286f56afc</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello, the LSM6DSM does not seem to be supported other than&amp;nbsp;&lt;b&gt;LSM6DSL&lt;/b&gt; in nRF Connect SDK v2.8.0.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please reach out to the Zephyr Community on DIscord for more information on Zephyr drivers.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lsm6dsm tilt detection</title><link>https://devzone.nordicsemi.com/thread/518491?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2025 16:54:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07b9706f-6c79-463c-bc93-cb16b64b0193</guid><dc:creator>rbmarcus</dc:creator><description>&lt;p&gt;I can&amp;#39;t speak for the LSM6DSM but most of the STM IMU drivers I&amp;#39;ve seen on Zephyr don&amp;#39;t have direct support for the &amp;quot;extra&amp;quot; functionality (MLC, pedometer, built-in activity detection, sensor fusion, FIFO, etc.) aside from sensor hub. You would probably need to add that support in manually, or use a generic I2C/SPI interface for a custom driver. ST provides a &lt;a href="https://github.com/STMicroelectronics/STMems_Standard_C_drivers"&gt;platform-agnostic C driver repository&lt;/a&gt; with example code for everything you may want to configure on your IMU. The repo is also baked into Zephyr, and the LSM drivers all seem to call the functions within the linked repo. For context, in Zephyr they&amp;#39;re under zephyr/drivers/sensor/st/stmemsc.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>