<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>SensorsのトピックRe: How to detect the Direction and Angle using XZ-accelerometer Sensor</title>
    <link>https://community.nxp.com/t5/Sensors/How-to-detect-the-Direction-and-Angle-using-XZ-accelerometer/m-p/431448#M2065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hulandaivel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several methods to calibrate sensor offsets. The big limitation with an accelerometer is you need to do the calibration phase with quasi-static data. I mean: if you move the &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;FXTH8719xxxx , you will add an acceleration vector on both axis (Z &amp;amp; X) and this will degrade/pervert the calibration... So you have to take care of the sensor rotation by doing very smooth motion (external acceleration should be very small compared to the 1g-force)&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;About calibration algorithms:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;1. You can collect data/measurements around the circle in a buffer. When the full revolution is done, you compute the Z offset with an optimization method to minimize the standard deviation of the 1g vector on all measurements.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="data.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31831i04247435C2FAD4D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="data.PNG" alt="data.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. You can calculate the circle center with 3 points only. (Basic equations &amp;amp; resolution)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31896iBBE3C55BCA3A5487/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&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;The final angle can be calulated with the following equation:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31946iD1972B2A3FBEF06E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;-Z0 the Z bias&lt;/P&gt;&lt;P&gt;- Z current / X current&amp;nbsp; are the actual measurements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that these equations are only valid in a static model and are using the 1g gravitational force as reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Nov 2015 13:04:40 GMT</pubDate>
    <dc:creator>anthonyduhamel</dc:creator>
    <dc:date>2015-11-23T13:04:40Z</dc:date>
    <item>
      <title>How to detect the Direction and Angle using XZ-accelerometer Sensor</title>
      <link>https://community.nxp.com/t5/Sensors/How-to-detect-the-Direction-and-Angle-using-XZ-accelerometer/m-p/431447#M2064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using FXTH8719xxxx Family XZ axis Accelerometer Sensor. I need to find the direction as well how much angle turned by using X-axis ans Z Axis data. If any one can help me the possibility?&lt;/P&gt;&lt;P&gt;Each sensor Z-Axis have the different offset values, help me how to calibrate the Z-axis with the new sensor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2026 22:19:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/How-to-detect-the-Direction-and-Angle-using-XZ-accelerometer/m-p/431447#M2064</guid>
      <dc:creator>sakthivelkuland</dc:creator>
      <dc:date>2026-02-03T22:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect the Direction and Angle using XZ-accelerometer Sensor</title>
      <link>https://community.nxp.com/t5/Sensors/How-to-detect-the-Direction-and-Angle-using-XZ-accelerometer/m-p/431448#M2065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hulandaivel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several methods to calibrate sensor offsets. The big limitation with an accelerometer is you need to do the calibration phase with quasi-static data. I mean: if you move the &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;FXTH8719xxxx , you will add an acceleration vector on both axis (Z &amp;amp; X) and this will degrade/pervert the calibration... So you have to take care of the sensor rotation by doing very smooth motion (external acceleration should be very small compared to the 1g-force)&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;About calibration algorithms:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;1. You can collect data/measurements around the circle in a buffer. When the full revolution is done, you compute the Z offset with an optimization method to minimize the standard deviation of the 1g vector on all measurements.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="data.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31831i04247435C2FAD4D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="data.PNG" alt="data.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. You can calculate the circle center with 3 points only. (Basic equations &amp;amp; resolution)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31896iBBE3C55BCA3A5487/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&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;The final angle can be calulated with the following equation:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31946iD1972B2A3FBEF06E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;-Z0 the Z bias&lt;/P&gt;&lt;P&gt;- Z current / X current&amp;nbsp; are the actual measurements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that these equations are only valid in a static model and are using the 1g gravitational force as reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 13:04:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/How-to-detect-the-Direction-and-Angle-using-XZ-accelerometer/m-p/431448#M2065</guid>
      <dc:creator>anthonyduhamel</dc:creator>
      <dc:date>2015-11-23T13:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect the Direction and Angle using XZ-accelerometer Sensor</title>
      <link>https://community.nxp.com/t5/Sensors/How-to-detect-the-Direction-and-Angle-using-XZ-accelerometer/m-p/431449#M2066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Anthony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. Your points are very helpful i'm collecting z-x axis data so i will apply your method if any points to clarify i get back to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sakthivel K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 00:38:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/How-to-detect-the-Direction-and-Angle-using-XZ-accelerometer/m-p/431449#M2066</guid>
      <dc:creator>sakthivelkuland</dc:creator>
      <dc:date>2016-01-12T00:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect the Direction and Angle using XZ-accelerometer Sensor</title>
      <link>https://community.nxp.com/t5/Sensors/How-to-detect-the-Direction-and-Angle-using-XZ-accelerometer/m-p/431450#M2067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Anthony,&lt;/P&gt;&lt;P&gt;I have one points to clarify,&lt;/P&gt;&lt;P&gt;what is the values for Z0 - Z base values, How to find the Z base values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sakthivel K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 10:09:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/How-to-detect-the-Direction-and-Angle-using-XZ-accelerometer/m-p/431450#M2067</guid>
      <dc:creator>sakthivelkuland</dc:creator>
      <dc:date>2016-02-29T10:09:00Z</dc:date>
    </item>
  </channel>
</rss>

