<?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>topic Re: Configuring mma8653fc for freefall detection in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Configuring-mma8653fc-for-freefall-detection/m-p/706712#M109825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to get a better understanding of the Freefall detection, please review the application note below. At chapter 6.2, you may find a Example Steps for Configuring Linear Freefall Detection.&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/sensors/doc/app_note/AN4070.pdf"&gt;Motion and Freefall Detection Using the MMA8451, 2, 3Q&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;ELE&lt;/STRONG&gt; bit denotes whether the enabled event flag will to be latched in the FF_MT_SRC register or the event flag status in the FF_MT_SRC will indicate the real-time status of the event. If ELE bit is set to a logic ‘1’, then the event flags are frozen when the EA bit gets set, and are cleared by reading the FF_MT_SRC source register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this information helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Aug 2017 20:50:27 GMT</pubDate>
    <dc:creator>david_diaz</dc:creator>
    <dc:date>2017-08-24T20:50:27Z</dc:date>
    <item>
      <title>Configuring mma8653fc for freefall detection</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Configuring-mma8653fc-for-freefall-detection/m-p/706711#M109824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 22px; color: #008000;"&gt;&lt;STRONG&gt;Motion Detection - OK, Np&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am successfully able to configure MMA8653FC for motion detection using the data sheet.&lt;/P&gt;&lt;P&gt;Parameters are as follows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;FF_MT_THS&amp;nbsp; = 0x3F&lt;/P&gt;&lt;P&gt;ELE = 1 and OAE = 1&lt;/P&gt;&lt;P&gt;ZEFE = YEFE = XEFE = 1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am trying to configure the sensor to detect freefalls and not motion&lt;/P&gt;&lt;P&gt;Works OK, without any issue&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 22px; color: #ff6600;"&gt;Freefall - Not ok &lt;/SPAN&gt;:smileysad:&lt;/P&gt;&lt;P&gt;From data sheet, we need to configure the following values for freefall&lt;/P&gt;&lt;P&gt;ELE = 0 or 1 and OAE = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FF_MT_THS -&amp;gt; Contains a threshold value&lt;/P&gt;&lt;P&gt;From its description I see that&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;The unsigned 7-bit FF_MT_THS threshold register holds the threshold for the freefall detection where the magnitude of the X and Y and Z acceleration values is lower or equal than the threshold value.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;From my understanding this means that if we have configured the threshold to +-4g, then whenever there is a acceleration lower than this threshold we will have an EA available in F_MT_SRC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, even when the device is still, since 0 &amp;lt; 4g I always receive a freefall event. Which is obviously not right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Q1 : So, I am not understanding how can I actually configure the parameters to correctly find a freefall event.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Q2: What is the difference between mode 1 and mode 2 as stated below&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;We have two modes to use for freefall. They say as follows :&lt;/P&gt;&lt;P&gt;Mode 1: Freefall detection with ELE = 0, OAE = 0&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;In this mode, the EA bit (0x16: FF_MTG_CFG, bit 7) indicates a freefall event after the debounce counter is complete.&lt;/P&gt;&lt;P&gt;Mode 2: Freefall detection with ELE = 1, OAE = 0&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;In this mode, the EA event bit indicates a freefall event after the debounce counter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand what is the difference in both these statements..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 10:43:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Configuring-mma8653fc-for-freefall-detection/m-p/706711#M109824</guid>
      <dc:creator>sandeepmantrala</dc:creator>
      <dc:date>2017-08-24T10:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring mma8653fc for freefall detection</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Configuring-mma8653fc-for-freefall-detection/m-p/706712#M109825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to get a better understanding of the Freefall detection, please review the application note below. At chapter 6.2, you may find a Example Steps for Configuring Linear Freefall Detection.&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/sensors/doc/app_note/AN4070.pdf"&gt;Motion and Freefall Detection Using the MMA8451, 2, 3Q&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;ELE&lt;/STRONG&gt; bit denotes whether the enabled event flag will to be latched in the FF_MT_SRC register or the event flag status in the FF_MT_SRC will indicate the real-time status of the event. If ELE bit is set to a logic ‘1’, then the event flags are frozen when the EA bit gets set, and are cleared by reading the FF_MT_SRC source register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this information helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 20:50:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Configuring-mma8653fc-for-freefall-detection/m-p/706712#M109825</guid>
      <dc:creator>david_diaz</dc:creator>
      <dc:date>2017-08-24T20:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring mma8653fc for freefall detection</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Configuring-mma8653fc-for-freefall-detection/m-p/706713#M109826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read that part. What was confusing to me is that I initially thought when the device is falling, the acceleration is going to increase. Hence i configured my threshold that ways. But upon printing the raw values i noticed that the acceleration is decreasing and nearing to 0 when the device is falling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I decreased the threshold and fixed the logic. Thank you&lt;/P&gt;&lt;P&gt;But when i printed the raw values, when the device is still, x y are 0 but z is about 1g and when its faling it is reducing and coming towards&amp;nbsp; 0. So, I fixed the logic that ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 00:47:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Configuring-mma8653fc-for-freefall-detection/m-p/706713#M109826</guid>
      <dc:creator>sandeepmantrala</dc:creator>
      <dc:date>2017-08-28T00:47:04Z</dc:date>
    </item>
  </channel>
</rss>

