<?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: mma8451 Motion Detection and RaspberryPi 2b+ in Sensors</title>
    <link>https://community.nxp.com/t5/Sensors/mma8451-Motion-Detection-and-RaspberryPi-2b/m-p/817839#M5243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tomas,&lt;/P&gt;&lt;P&gt;Yes I have already read the AN4070 note,&lt;/P&gt;&lt;P&gt;so, my problem was to how to calculate correctly the value to write into the FF_MT_THS register (0x17), and it is just "Threshold/0.063" ;&lt;/P&gt;&lt;P&gt;and how to calculate correctly the value to write into the FF_MT_COUNT register (0x18), and it is just&amp;nbsp; "DebounceTime/TimeStep".&lt;/P&gt;&lt;P&gt;Forget about them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have another problem:&lt;/P&gt;&lt;P&gt;I'm trying to doing the Aut-Calibration Procedure of the device.&lt;/P&gt;&lt;P&gt;yes, I have already read the AN4069 note :smileyhappy:&lt;/P&gt;&lt;P&gt;On page 6 of the note there is an example using a flow chart.&lt;/P&gt;&lt;P&gt;I didn't understand the 3th box:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/78711i323A4B80F1B4213A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Have I to read, (and so print?) the acceleration on X,Y, and Z using firstly the register OUT_X_MSB?&lt;/P&gt;&lt;P&gt;After that have I to read the acceleration on X,Y, and Z using the register OUT_X_LSB?&lt;/P&gt;&lt;P&gt;After that have I to read the acceleration on X,Y, and Z using the register OUT_Y_MSB? etc?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Dec 2018 15:52:26 GMT</pubDate>
    <dc:creator>luigi5hd</dc:creator>
    <dc:date>2018-12-04T15:52:26Z</dc:date>
    <item>
      <title>mma8451 Motion Detection and RaspberryPi 2b+</title>
      <link>https://community.nxp.com/t5/Sensors/mma8451-Motion-Detection-and-RaspberryPi-2b/m-p/817836#M5240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Goodmornig,&lt;/P&gt;&lt;P&gt;This is my main code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;##############################"&lt;/P&gt;&lt;P&gt;xOffset = -0.400 # m/s^2&lt;BR /&gt;yOffset =&amp;nbsp; 0.200 # m/s^2&lt;BR /&gt;zOffset =&amp;nbsp; 9.400 # m/s^2&lt;BR /&gt;while True:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while sensor.Motion():&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x, y, z = sensor.acceleration&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; time_now = datetime.datetime.now()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Calcx = -xOffset&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Calcy = -yOffset&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Calcz = -zOffset&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X = x + Calcx&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y = y + Calcy&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Z = z + Calcz&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sensor.MotionRegister()&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print('Time={0}&amp;nbsp;&amp;nbsp; X={1:0.3f} m/s^2&amp;nbsp; Y:{2:0.3f} m/s^2&amp;nbsp; Z:{3:0.3f} m/s^2'.format(time_now, X, Y, Z))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; time.sleep(0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IntSourceMFF = sensor.MotionRegister()&lt;/P&gt;&lt;P&gt;#####################"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I have setup my MMA8451 into a class like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;###################""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def Motion (self): #, IntSourceSystem,IntSourceMFF):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reg1 = self._read_u8(_MMA8451_REG_CTRL_REG1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reg1 &amp;amp;= 0xFE #clear active bit (standby)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._write_u8(_MMA8451_REG_CTRL_REG1, reg1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._write_u8(REG_FF_MT_CONFIG, 0x48) #Moto detection X axe after the debounce time (100)ms is reached&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._write_u8(REG_FF_MT_THS, 0x10)&amp;nbsp;&amp;nbsp;&amp;nbsp; #threshold 1g: es 1g/0.063g = 16 counts = 10 (hexadecimal)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._write_u8(REG_FF_MT_COUNT, 0x0A) #Debounce counter, set at 12.5ms timer for 800 output data rate&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._write_u8(_MMA8451_REG_CTRL_REG4, 0x04)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._write_u8(_MMA8451_REG_CTRL_REG5, 0x04)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # self._write_u8(_MMA8451_REG_CTRL_REG3, 0x04)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reg1 = self._read_u8(_MMA8451_REG_CTRL_REG1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._write_u8(_MMA8451_REG_CTRL_REG1, reg1 | 0x01) #activated&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print("It will work")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IntSourceSystem = self._read_u8(_MMA8451_INT_SOURCE)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((IntSourceSystem &amp;amp; 0x04) == 0x04):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print("You are into if")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return True&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print("You are into else")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return False&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def MotionRegister (self):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return self._read_u8(REG_MT_SRC)&lt;/P&gt;&lt;P&gt;##################"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something strange happens, it works properly only if I print something in my setup module (in this case "It will work").&lt;/P&gt;&lt;P&gt;Why it does it? I don't want that print.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe it is a problem with the Count register setup..I didn't well realized how to use it, I want to use a 100ms timer for 800 ODR but with 0x50 didn't works..&lt;/P&gt;&lt;P&gt;Can someone help me pls?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2026 21:50:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/mma8451-Motion-Detection-and-RaspberryPi-2b/m-p/817836#M5240</guid>
      <dc:creator>luigi5hd</dc:creator>
      <dc:date>2026-02-03T21:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: mma8451 Motion Detection and RaspberryPi 2b+</title>
      <link>https://community.nxp.com/t5/Sensors/mma8451-Motion-Detection-and-RaspberryPi-2b/m-p/817837#M5241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok I have solved the print problem; it was just a bad use of the class module; I just have the reg count problem, can someone explain it to me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2018 12:35:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/mma8451-Motion-Detection-and-RaspberryPi-2b/m-p/817837#M5241</guid>
      <dc:creator>luigi5hd</dc:creator>
      <dc:date>2018-11-29T12:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: mma8451 Motion Detection and RaspberryPi 2b+</title>
      <link>https://community.nxp.com/t5/Sensors/mma8451-Motion-Detection-and-RaspberryPi-2b/m-p/817838#M5242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luigi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I do not fully understand what you are asking, I would refer to the &lt;A href="https://www.nxp.com/docs/en/application-note/AN4070.pdf"&gt;AN4070&lt;/A&gt; where you may find useful information related to the embedded motion detection function. If you need to know anything specific, please elaborate it a bit more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2018 08:36:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/mma8451-Motion-Detection-and-RaspberryPi-2b/m-p/817838#M5242</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2018-12-04T08:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: mma8451 Motion Detection and RaspberryPi 2b+</title>
      <link>https://community.nxp.com/t5/Sensors/mma8451-Motion-Detection-and-RaspberryPi-2b/m-p/817839#M5243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tomas,&lt;/P&gt;&lt;P&gt;Yes I have already read the AN4070 note,&lt;/P&gt;&lt;P&gt;so, my problem was to how to calculate correctly the value to write into the FF_MT_THS register (0x17), and it is just "Threshold/0.063" ;&lt;/P&gt;&lt;P&gt;and how to calculate correctly the value to write into the FF_MT_COUNT register (0x18), and it is just&amp;nbsp; "DebounceTime/TimeStep".&lt;/P&gt;&lt;P&gt;Forget about them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have another problem:&lt;/P&gt;&lt;P&gt;I'm trying to doing the Aut-Calibration Procedure of the device.&lt;/P&gt;&lt;P&gt;yes, I have already read the AN4069 note :smileyhappy:&lt;/P&gt;&lt;P&gt;On page 6 of the note there is an example using a flow chart.&lt;/P&gt;&lt;P&gt;I didn't understand the 3th box:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/78711i323A4B80F1B4213A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Have I to read, (and so print?) the acceleration on X,Y, and Z using firstly the register OUT_X_MSB?&lt;/P&gt;&lt;P&gt;After that have I to read the acceleration on X,Y, and Z using the register OUT_X_LSB?&lt;/P&gt;&lt;P&gt;After that have I to read the acceleration on X,Y, and Z using the register OUT_Y_MSB? etc?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2018 15:52:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/mma8451-Motion-Detection-and-RaspberryPi-2b/m-p/817839#M5243</guid>
      <dc:creator>luigi5hd</dc:creator>
      <dc:date>2018-12-04T15:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: mma8451 Motion Detection and RaspberryPi 2b+</title>
      <link>https://community.nxp.com/t5/Sensors/mma8451-Motion-Detection-and-RaspberryPi-2b/m-p/817840#M5244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried to do as I mentioned and my Acceleration values are these:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/78840i3C8EA7FFB84A1932/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;first line X,Y,Z using OUT_X_MSB&lt;/P&gt;&lt;P&gt;second X,Y,Z using OUT_X_LSB&lt;/P&gt;&lt;P&gt;third X,Y,Z using OUT_Y_MSB&lt;/P&gt;&lt;P&gt;fourth X,Y,Z using OUT_Y_LSB&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are these the values that I need to use in the next step, for the 2's complement?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/78767iE7CF48D4CB081C73/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2018 16:08:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/mma8451-Motion-Detection-and-RaspberryPi-2b/m-p/817840#M5244</guid>
      <dc:creator>luigi5hd</dc:creator>
      <dc:date>2018-12-04T16:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: mma8451 Motion Detection and RaspberryPi 2b+</title>
      <link>https://community.nxp.com/t5/Sensors/mma8451-Motion-Detection-and-RaspberryPi-2b/m-p/817841#M5245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luigi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for my late response. I would recommend you to take a look at my simple &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-98836"&gt;example code&lt;/A&gt; for the MMA8451Q where I illustrate&amp;nbsp;offset calibration based on the AN4069.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should use something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;I2C_ReadMultiRegisters(MMA845x_I2C_ADDRESS, OUT_X_MSB_REG, 6, AccData);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;// Read data output registers 0x01-0x06&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;Xout_14_bit = ((&lt;/SPAN&gt;&lt;SPAN style="border: 0px; color: #7f0055; font-weight: bold; font-size: 13.3333px;"&gt;&lt;STRONG&gt;short&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;) (AccData[0]&amp;lt;&amp;lt;8 | AccData[1])) &amp;gt;&amp;gt; 2;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;// Compute 14-bit X-axis output value&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;Yout_14_bit = ((&lt;/SPAN&gt;&lt;SPAN style="border: 0px; color: #7f0055; font-weight: bold; font-size: 13.3333px;"&gt;&lt;STRONG&gt;short&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;) (AccData[2]&amp;lt;&amp;lt;8 | AccData[3])) &amp;gt;&amp;gt; 2;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;// Compute 14-bit Y-axis output value&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;Zout_14_bit = ((&lt;/SPAN&gt;&lt;SPAN style="border: 0px; color: #7f0055; font-weight: bold; font-size: 13.3333px;"&gt;&lt;STRONG&gt;short&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;) (AccData[4]&amp;lt;&amp;lt;8 | AccData[5])) &amp;gt;&amp;gt; 2;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;// Compute 14-bit Z-axis output value&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;Xoffset = Xout_14_bit / 8 * (-1);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;// Compute X-axis offset correction value&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;Yoffset = Yout_14_bit / 8 * (-1);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;// Compute Y-axis offset correction value&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;Zoffset = (Zout_14_bit - SENSITIVITY_2G) / 8 * (-1);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;// Compute Z-axis offset correction value&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;I2C_WriteRegister(MMA845x_I2C_ADDRESS, CTRL_REG1, 0x00);&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ffffff; border: 0px; font-weight: inherit; font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;// Standby mode to allow writing to the offset registers&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;I2C_WriteRegister(MMA845x_I2C_ADDRESS, OFF_X_REG, Xoffset);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;I2C_WriteRegister(MMA845x_I2C_ADDRESS, OFF_Y_REG, Yoffset);&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; margin: 0px 0px 0.0001pt;"&gt;&lt;SPAN style="color: black; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;I2C_WriteRegister(MMA845x_I2C_ADDRESS, OFF_Z_REG, Zoffset);&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2018 19:04:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/mma8451-Motion-Detection-and-RaspberryPi-2b/m-p/817841#M5245</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2018-12-11T19:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: mma8451 Motion Detection and RaspberryPi 2b+</title>
      <link>https://community.nxp.com/t5/Sensors/mma8451-Motion-Detection-and-RaspberryPi-2b/m-p/817842#M5246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I was just following your metal bare example but I still have some problem.&lt;/P&gt;&lt;P&gt;Firstly: I'm in 14 bit, ODR 800, 8g mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here:&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; border: none windowtext 1.0pt; padding: 0cm;"&gt;Xout_14_bit = ((&lt;/SPAN&gt;&lt;STRONG style="border: none windowtext 1.0pt; padding: 0cm; color: #7f0055; font-size: 10.0pt;"&gt;short&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; border: none windowtext 1.0pt; padding: 0cm;"&gt;) (AccData[0]&amp;lt;&amp;lt;8 | AccData[1])) &amp;gt;&amp;gt; 2;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f7f5f; border: none windowtext 1.0pt; padding: 0cm;"&gt;// Compute 14-bit X-axis output value&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; border: none windowtext 1.0pt; padding: 0cm;"&gt;Yout_14_bit = ((&lt;/SPAN&gt;&lt;STRONG style="border: none windowtext 1.0pt; padding: 0cm; color: #7f0055; font-size: 10.0pt;"&gt;short&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; border: none windowtext 1.0pt; padding: 0cm;"&gt;) (AccData[2]&amp;lt;&amp;lt;8 | AccData[3])) &amp;gt;&amp;gt; 2;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f7f5f; border: none windowtext 1.0pt; padding: 0cm;"&gt;// Compute 14-bit Y-axis output value&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; border: none windowtext 1.0pt; padding: 0cm;"&gt;Zout_14_bit = ((&lt;/SPAN&gt;&lt;STRONG style="border: none windowtext 1.0pt; padding: 0cm; color: #7f0055; font-size: 10.0pt;"&gt;short&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black; border: none windowtext 1.0pt; padding: 0cm;"&gt;) (AccData[4]&amp;lt;&amp;lt;8 | AccData[5])) &amp;gt;&amp;gt; 2;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f7f5f; border: none windowtext 1.0pt; padding: 0cm;"&gt;// Compute 14-bit Z-axis output value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are you doing with this shifting?&lt;/P&gt;&lt;P&gt;Is this equivalent to a 2's complement for XYZ no?&lt;/P&gt;&lt;P&gt;And are they approximated as integers no? ("short" operator)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I've calculated the&amp;nbsp; Offset like this:&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; border: none windowtext 1.0pt; padding: 0cm;"&gt;Xoffset = Xout_14_bit / 2 * (-1);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f7f5f; border: none windowtext 1.0pt; padding: 0cm;"&gt;// Compute X-axis offset correction value&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; border: none windowtext 1.0pt; padding: 0cm;"&gt;Yoffset = Yout_14_bit / 2 * (-1);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f7f5f; border: none windowtext 1.0pt; padding: 0cm;"&gt;// Compute Y-axis offset correction value&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; border: none windowtext 1.0pt; padding: 0cm;"&gt;Zoffset = (Zout_14_bit - 1024) / 2 * (-1);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f7f5f; border: none windowtext 1.0pt; padding: 0cm;"&gt;// Compute Z-axis offset correction value with 8g sensitivity&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It looks correct to me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that I convert them as hexadecimal (ok?) and I put them into the Offset registers:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; border: none windowtext 1.0pt; padding: 0cm;"&gt;I2C_WriteRegister(MMA845x_I2C_ADDRESS, CTRL_REG1, 0x00);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: white; border: none windowtext 1.0pt; padding: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f7f5f; border: none windowtext 1.0pt; padding: 0cm;"&gt;// Standby mode to allow writing to the offset registers&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; border: none windowtext 1.0pt; padding: 0cm;"&gt;I2C_WriteRegister(MMA845x_I2C_ADDRESS, OFF_X_REG, Xoffset);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; border: none windowtext 1.0pt; padding: 0cm;"&gt;I2C_WriteRegister(MMA845x_I2C_ADDRESS, OFF_Y_REG, Yoffset);&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; border: none windowtext 1.0pt; padding: 0cm;"&gt;I2C_WriteRegister(MMA845x_I2C_ADDRESS, OFF_Z_REG, Zoffset);&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black; border: none windowtext 1.0pt; padding: 0cm;"&gt;I2C_WriteRegister(MMA845x_I2C_ADDRESS, CTRL_REG1, 0x01);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="font-size: 10.0pt; color: #3f7f5f; border: none windowtext 1.0pt; padding: 0cm;"&gt;// Active mode &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And it doesn't work properly anyway :/&lt;/P&gt;&lt;P&gt;The y and z acceleration doesn't change enough, and&amp;nbsp; X acceleration doesn't change at all.&lt;/P&gt;&lt;P&gt;NB my stationary target is:&lt;/P&gt;&lt;P&gt;X=0g&lt;/P&gt;&lt;P&gt;Y=0g&lt;/P&gt;&lt;P&gt;Z=1g&lt;/P&gt;&lt;P&gt;Obvious my device is properly oriented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry if I'm annoying you too much, I'm a bit noob.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you and merry Christmas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2018 10:59:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/mma8451-Motion-Detection-and-RaspberryPi-2b/m-p/817842#M5246</guid>
      <dc:creator>luigi5hd</dc:creator>
      <dc:date>2018-12-21T10:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: mma8451 Motion Detection and RaspberryPi 2b+</title>
      <link>https://community.nxp.com/t5/Sensors/mma8451-Motion-Detection-and-RaspberryPi-2b/m-p/817843#M5247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Tomas,&lt;/P&gt;&lt;P&gt;Firstly best wishes!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still have the same problem with the autocalibration..&lt;/P&gt;&lt;P&gt;But I want to change my question:&lt;/P&gt;&lt;P&gt;If the device is stationary on a "flat" desktop, and the measures are&lt;/P&gt;&lt;P&gt;X= 0.201 m/s2&lt;/P&gt;&lt;P&gt;Y= 0.220 m/s2&lt;/P&gt;&lt;P&gt;Z= 9.409 m/s2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is the best way to gain:&lt;/P&gt;&lt;P&gt;X= 0 m/s2&lt;/P&gt;&lt;P&gt;Y= 0 m/s2&lt;/P&gt;&lt;P&gt;Z= 9.81 m/s2&amp;nbsp;&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm also available to use the simple method calibration, but how can I be able to delete the noise?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I forced to use the High pass filter or can I use the offset registers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you think? And can you suggest me how to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2019 10:41:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/mma8451-Motion-Detection-and-RaspberryPi-2b/m-p/817843#M5247</guid>
      <dc:creator>luigi5hd</dc:creator>
      <dc:date>2019-01-03T10:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: mma8451 Motion Detection and RaspberryPi 2b+</title>
      <link>https://community.nxp.com/t5/Sensors/mma8451-Motion-Detection-and-RaspberryPi-2b/m-p/817844#M5248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luigi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First off... Happy New Year and sorry for my late response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything you described in your post from Dec 21st is correct for 8g mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to reduce noise, our recommendation is using lowest possible ODR and High Resolution Mode as shown in the &lt;A href="https://www.nxp.com/docs/en/application-note/AN4075.pdf"&gt;AN4075&lt;/A&gt;&amp;nbsp;(page 7).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tomas&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2019 09:40:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/mma8451-Motion-Detection-and-RaspberryPi-2b/m-p/817844#M5248</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2019-01-11T09:40:30Z</dc:date>
    </item>
  </channel>
</rss>

