<?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: MMA8452Q - Strange reading values in Sensors</title>
    <link>https://community.nxp.com/t5/Sensors/MMA8452Q-Strange-reading-values/m-p/388681#M1411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. That was my mistake.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Nov 2014 16:10:03 GMT</pubDate>
    <dc:creator>speryt</dc:creator>
    <dc:date>2014-11-11T16:10:03Z</dc:date>
    <item>
      <title>MMA8452Q - Strange reading values</title>
      <link>https://community.nxp.com/t5/Sensors/MMA8452Q-Strange-reading-values/m-p/388679#M1409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently testing MMA8452Q accelerometer in my application and during test I found totally strange values coming out. While normally all axis should be between 0 - 1 g from very beginning of measurements I have x axis value around 15g. This value is constant no matter if sensor is laying or I am moving it in any direction - all the time it is around 15g. Can someone give me advice what might be wrong? Is it something wrong with IC, or should I look somewhere else? For reference I am enclosing my readings.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338628" target="_blank"&gt;acc.csv.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2026 21:05:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MMA8452Q-Strange-reading-values/m-p/388679#M1409</guid>
      <dc:creator>speryt</dc:creator>
      <dc:date>2026-02-03T21:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: MMA8452Q - Strange reading values</title>
      <link>https://community.nxp.com/t5/Sensors/MMA8452Q-Strange-reading-values/m-p/388680#M1410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like an incorrect interpretation of negative acceleration values. How are you converting the raw data from accelerometer registers 0x01 – 0x06 to signed 12-bit values and then real values in g’s?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might find useful my &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-101192"&gt;example code&lt;/A&gt; where I illustrate this conversion:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-style: inherit; font-family: Consolas; color: #3f7f5f;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-style: inherit; font-family: Consolas; color: #3f7f5f;"&gt;// Signed 12-bit accelerometer data&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;Xout_12_bit = ((&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: #7f0055;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;short&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;) (AccelData[0]&amp;lt;&amp;lt;8 | AccelData[1])) &amp;gt;&amp;gt; 4;&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-style: inherit; font-size: 10pt; font-family: Consolas; color: #3f7f5f;"&gt;// Compute 12-bit X-axis acceleration output value&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;Yout_12_bit = ((&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: #7f0055;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;short&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;) (AccelData[2]&amp;lt;&amp;lt;8 | AccelData[3])) &amp;gt;&amp;gt; 4;&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-style: inherit; font-size: 10pt; font-family: Consolas; color: #3f7f5f;"&gt;// Compute 12-bit Y-axis acceleration output value&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;Zout_12_bit = ((&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: #7f0055;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;short&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;) (AccelData[4]&amp;lt;&amp;lt;8 | AccelData[5])) &amp;gt;&amp;gt; 4;&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-style: inherit; font-size: 10pt; font-family: Consolas; color: #3f7f5f;"&gt;// Compute 12-bit Z-axis acceleration output value&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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; &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: #3f7f5f;"&gt;// Accelerometer data converted to real values in g's&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;Xout_g = ((&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: #7f0055;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;float&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;) Xout_12_bit) / SENSITIVITY_2G;&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&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: #3f7f5f;"&gt;// Compute X-axis output value in g's&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;Yout_g = ((&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: #7f0055;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;float&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;) Yout_12_bit) / SENSITIVITY_2G;&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&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: #3f7f5f;"&gt;// Compute Y-axis output value in g's&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;Zout_g = ((&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: #7f0055;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;float&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: black;"&gt;) Zout_12_bit) / SENSITIVITY_2G;&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&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: #3f7f5f;"&gt;// Compute Z-axis output value in g's&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Consolas; color: #3f7f5f;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let me know whether or not this helps, or if you have any other questions.&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Tomas&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-family: Arial, sans-serif; color: #333333;"&gt;&lt;SPAN style="font-style: inherit; font-size: 11px; font-family: inherit; color: #3d3d3d;"&gt;&lt;EM style="font-family: inherit;"&gt;PS:&lt;SPAN class="Apple-converted-space" style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 11px; font-family: inherit; color: #3d3d3d;"&gt;If my answer helps to solve your question, please mark it as "Correct" or “Helpful”. Thank you.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Nov 2014 21:38:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MMA8452Q-Strange-reading-values/m-p/388680#M1410</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2014-11-09T21:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: MMA8452Q - Strange reading values</title>
      <link>https://community.nxp.com/t5/Sensors/MMA8452Q-Strange-reading-values/m-p/388681#M1411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. That was my mistake.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 16:10:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MMA8452Q-Strange-reading-values/m-p/388681#M1411</guid>
      <dc:creator>speryt</dc:creator>
      <dc:date>2014-11-11T16:10:03Z</dc:date>
    </item>
  </channel>
</rss>

