<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Interfacing MMA8453Q With Arduino</title>
	<atom:link href="http://www.kerrywong.com/2012/01/09/interfacing-mma8453q-with-arduino/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kerrywong.com/2012/01/09/interfacing-mma8453q-with-arduino/</link>
	<description></description>
	<lastBuildDate>Sun, 26 May 2013 01:52:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: osama</title>
		<link>http://www.kerrywong.com/2012/01/09/interfacing-mma8453q-with-arduino/comment-page-1/#comment-199617</link>
		<dc:creator>osama</dc:creator>
		<pubDate>Mon, 18 Feb 2013 08:12:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5238#comment-199617</guid>
		<description><![CDATA[can i use this sensor with a direct contact to a microcontroller without being connected to a board ??]]></description>
		<content:encoded><![CDATA[<p>can i use this sensor with a direct contact to a microcontroller without being connected to a board ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kris dee</title>
		<link>http://www.kerrywong.com/2012/01/09/interfacing-mma8453q-with-arduino/comment-page-1/#comment-198814</link>
		<dc:creator>kris dee</dc:creator>
		<pubDate>Sun, 27 Jan 2013 02:19:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5238#comment-198814</guid>
		<description><![CDATA[have you also tried working on LIS331 accelerometer? thanks!]]></description>
		<content:encoded><![CDATA[<p>have you also tried working on LIS331 accelerometer? thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: priyanka m</title>
		<link>http://www.kerrywong.com/2012/01/09/interfacing-mma8453q-with-arduino/comment-page-1/#comment-195525</link>
		<dc:creator>priyanka m</dc:creator>
		<pubDate>Wed, 07 Nov 2012 15:32:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5238#comment-195525</guid>
		<description><![CDATA[thank you sir 
surely , i will reply you with the result of accelerometer after testing. once again thank you for your guided response.]]></description>
		<content:encoded><![CDATA[<p>thank you sir<br />
surely , i will reply you with the result of accelerometer after testing. once again thank you for your guided response.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kwong</title>
		<link>http://www.kerrywong.com/2012/01/09/interfacing-mma8453q-with-arduino/comment-page-1/#comment-195511</link>
		<dc:creator>kwong</dc:creator>
		<pubDate>Tue, 06 Nov 2012 23:19:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5238#comment-195511</guid>
		<description><![CDATA[Hi Priyanka, 

I don&#039;t have MMA8451Q on hand so I couldn&#039;t validate. But by looking at the datasheet, everything seemed to be identical except for the data register layout. It appears that the 8 bit mode (low res) is identical and the high resolution mode needs only slight adjustment:

void getAccXYZ(int *x, int *y, int *z, bool isHighRes=true)
{
  byte buf[6];
 
  if (isHighRes) {
    regRead(REG_OUT_X_MSB, buf, 6);
    *x = buf[0] &lt;&lt; 6 &#124; buf[1] &gt;&gt; 2 &amp; 0x3F;
    *y = buf[2] &lt;&lt; 6 &#124; buf[3] &gt;&gt; 2 &amp; 0x3F;
    *z = buf[4] &lt;&lt; 6 &#124; buf[5] &gt;&gt; 2 &amp; 0x3F;
  } 
  else {
    regRead(REG_OUT_X_MSB, buf, 3);
    *x = buf[0] &lt;&lt; 2;
    *y = buf[1] &lt;&lt; 2;
    *z = buf[2] &lt;&lt; 2;
  }
 
  if (*x &gt; 8191) *x = *x - 16384;
  if (*y &gt; 8191) *y = *y - 16384 ;
  if (*z &gt; 8191) *z = *z - 16384;
}
 

But again, I don&#039;t have the chip to test. But feel free to update me on how it goes.]]></description>
		<content:encoded><![CDATA[<p>Hi Priyanka, </p>
<p>I don&#8217;t have MMA8451Q on hand so I couldn&#8217;t validate. But by looking at the datasheet, everything seemed to be identical except for the data register layout. It appears that the 8 bit mode (low res) is identical and the high resolution mode needs only slight adjustment:</p>
<p>void getAccXYZ(int *x, int *y, int *z, bool isHighRes=true)<br />
{<br />
  byte buf[6];</p>
<p>  if (isHighRes) {<br />
    regRead(REG_OUT_X_MSB, buf, 6);<br />
    *x = buf[0] < < 6 | buf[1] >> 2 &#038; 0x3F;<br />
    *y = buf[2] < < 6 | buf[3] >> 2 &#038; 0x3F;<br />
    *z = buf[4] < < 6 | buf[5] >> 2 &#038; 0x3F;<br />
  }<br />
  else {<br />
    regRead(REG_OUT_X_MSB, buf, 3);<br />
    *x = buf[0] < < 2;<br />
    *y = buf[1] << 2;<br />
    *z = buf[2] << 2;<br />
  }</p>
<p>  if (*x > 8191) *x = *x &#8211; 16384;<br />
  if (*y > 8191) *y = *y &#8211; 16384 ;<br />
  if (*z > 8191) *z = *z &#8211; 16384;<br />
}</p>
<p>But again, I don&#8217;t have the chip to test. But feel free to update me on how it goes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: priyanka</title>
		<link>http://www.kerrywong.com/2012/01/09/interfacing-mma8453q-with-arduino/comment-page-1/#comment-195507</link>
		<dc:creator>priyanka</dc:creator>
		<pubDate>Tue, 06 Nov 2012 18:56:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5238#comment-195507</guid>
		<description><![CDATA[sir,
thank you for such great post
im working on a project using MMA8451Q accelerometer interfacing ARM7 LPC2148, i have understood the data sheet  concepts of I2C interfacing LPC2148, but i need guidance of accelerometer interfacing using I2C bus , please help me .
thank you.]]></description>
		<content:encoded><![CDATA[<p>sir,<br />
thank you for such great post<br />
im working on a project using MMA8451Q accelerometer interfacing ARM7 LPC2148, i have understood the data sheet  concepts of I2C interfacing LPC2148, but i need guidance of accelerometer interfacing using I2C bus , please help me .<br />
thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark joseph siapno</title>
		<link>http://www.kerrywong.com/2012/01/09/interfacing-mma8453q-with-arduino/comment-page-1/#comment-194336</link>
		<dc:creator>mark joseph siapno</dc:creator>
		<pubDate>Tue, 28 Aug 2012 11:36:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5238#comment-194336</guid>
		<description><![CDATA[can i ask for a little help? i need arduino code for my MMA8451Q accelerometer using wire library..can you please help me with this?thanks]]></description>
		<content:encoded><![CDATA[<p>can i ask for a little help? i need arduino code for my MMA8451Q accelerometer using wire library..can you please help me with this?thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kwong</title>
		<link>http://www.kerrywong.com/2012/01/09/interfacing-mma8453q-with-arduino/comment-page-1/#comment-192791</link>
		<dc:creator>kwong</dc:creator>
		<pubDate>Mon, 02 Apr 2012 01:19:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5238#comment-192791</guid>
		<description><![CDATA[Thanks. Glad it helped.]]></description>
		<content:encoded><![CDATA[<p>Thanks. Glad it helped.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://www.kerrywong.com/2012/01/09/interfacing-mma8453q-with-arduino/comment-page-1/#comment-192788</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Sun, 01 Apr 2012 19:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5238#comment-192788</guid>
		<description><![CDATA[Out*of*the*box!
Kerry, you rock! this saved me SO much time and effort]]></description>
		<content:encoded><![CDATA[<p>Out*of*the*box!<br />
Kerry, you rock! this saved me SO much time and effort</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to interface a MMA8453Q Accelerometer to an ATmega328 MCU &#124; کیت برد اولین جامعه مجازی آموزشی خودت انجام بده فارسی &#124;Kitboard DIY &#124;</title>
		<link>http://www.kerrywong.com/2012/01/09/interfacing-mma8453q-with-arduino/comment-page-1/#comment-192202</link>
		<dc:creator>How to interface a MMA8453Q Accelerometer to an ATmega328 MCU &#124; کیت برد اولین جامعه مجازی آموزشی خودت انجام بده فارسی &#124;Kitboard DIY &#124;</dc:creator>
		<pubDate>Sun, 26 Feb 2012 09:09:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5238#comment-192202</guid>
		<description><![CDATA[[...] Wong from kerrywong.com shows us how to interface to a MMA8453Q cheap accelerometer using an ATmega328 MCU. There are tons of cool projects out there that are just waiting to be designed using [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Wong from kerrywong.com shows us how to interface to a MMA8453Q cheap accelerometer using an ATmega328 MCU. There are tons of cool projects out there that are just waiting to be designed using [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to interface a MMA8453Q Accelerometer to an ATmega328 MCU &#187; Geko Geek</title>
		<link>http://www.kerrywong.com/2012/01/09/interfacing-mma8453q-with-arduino/comment-page-1/#comment-192200</link>
		<dc:creator>How to interface a MMA8453Q Accelerometer to an ATmega328 MCU &#187; Geko Geek</dc:creator>
		<pubDate>Sun, 26 Feb 2012 07:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5238#comment-192200</guid>
		<description><![CDATA[[...] Wong from kerrywong.com shows us how to interface to a MMA8453Q cheap accelerometer using an ATmega328 MCU. There are tons of cool projects out there that are just waiting to be designed using [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Wong from kerrywong.com shows us how to interface to a MMA8453Q cheap accelerometer using an ATmega328 MCU. There are tons of cool projects out there that are just waiting to be designed using [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to interface a MMA8453Q Accelerometer to an ATmega328 MCU - Hacked Gadgets &#8211; DIY Tech Blog</title>
		<link>http://www.kerrywong.com/2012/01/09/interfacing-mma8453q-with-arduino/comment-page-1/#comment-192185</link>
		<dc:creator>How to interface a MMA8453Q Accelerometer to an ATmega328 MCU - Hacked Gadgets &#8211; DIY Tech Blog</dc:creator>
		<pubDate>Sat, 25 Feb 2012 18:41:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5238#comment-192185</guid>
		<description><![CDATA[[...] Wong from kerrywong.com shows us how to interface to a MMA8453Q cheap accelerometer using an ATmega328 MCU. There are tons of cool projects out there that are just waiting to be designed using [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Wong from kerrywong.com shows us how to interface to a MMA8453Q cheap accelerometer using an ATmega328 MCU. There are tons of cool projects out there that are just waiting to be designed using [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kwong</title>
		<link>http://www.kerrywong.com/2012/01/09/interfacing-mma8453q-with-arduino/comment-page-1/#comment-191951</link>
		<dc:creator>kwong</dc:creator>
		<pubDate>Mon, 06 Feb 2012 01:30:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5238#comment-191951</guid>
		<description><![CDATA[Thanks Drew, glad you found it useful!]]></description>
		<content:encoded><![CDATA[<p>Thanks Drew, glad you found it useful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drew Jaworski</title>
		<link>http://www.kerrywong.com/2012/01/09/interfacing-mma8453q-with-arduino/comment-page-1/#comment-191940</link>
		<dc:creator>Drew Jaworski</dc:creator>
		<pubDate>Sun, 05 Feb 2012 02:56:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5238#comment-191940</guid>
		<description><![CDATA[Thanks for compiling this info! It was very helpful for me; I&#039;m using the MMA8453Q as well, and your work helped save me a lot of time pouring over the datasheet. I see a lot of interesting articles in your blog and look forward to seeing more about your hobby work. :D]]></description>
		<content:encoded><![CDATA[<p>Thanks for compiling this info! It was very helpful for me; I&#8217;m using the MMA8453Q as well, and your work helped save me a lot of time pouring over the datasheet. I see a lot of interesting articles in your blog and look forward to seeing more about your hobby work. :D</p>
]]></content:encoded>
	</item>
</channel>
</rss>
