<?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"
	>
<channel>
	<title>Comments on: Arduino and the LIS3LV02DQ  Triple Axis Accelerometer</title>
	<atom:link href="http://www.nearfuturelaboratory.com/2006/09/22/arduino-and-the-lis3lv02dq-triple-axis-accelerometer/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nearfuturelaboratory.com/2006/09/22/arduino-and-the-lis3lv02dq-triple-axis-accelerometer/</link>
	<description>Creating Implications</description>
	<pubDate>Thu, 07 Aug 2008 23:40:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: YourITronics</title>
		<link>http://www.nearfuturelaboratory.com/2006/09/22/arduino-and-the-lis3lv02dq-triple-axis-accelerometer/#comment-17229</link>
		<dc:creator>YourITronics</dc:creator>
		<pubDate>Sat, 19 Jul 2008 18:39:35 +0000</pubDate>
		<guid isPermaLink="false">#comment-17229</guid>
		<description>&lt;strong&gt;LIS3LV02DQ Triple Axis Accelerometer...&lt;/strong&gt;


The project it&#8217;s based on a nice little 3-axis accelerometer from STMicroelectronics with a SPI bus, which makes it handy for interfacing in microcontroller style applications.  This device could be interfaced with an AVR, but the author chose ...</description>
		<content:encoded><![CDATA[<p><strong>LIS3LV02DQ Triple Axis Accelerometer&#8230;</strong></p>
<p>The project it&#8217;s based on a nice little 3-axis accelerometer from STMicroelectronics with a SPI bus, which makes it handy for interfacing in microcontroller style applications.  This device could be interfaced with an AVR, but the author chose &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Kraemer</title>
		<link>http://www.nearfuturelaboratory.com/2006/09/22/arduino-and-the-lis3lv02dq-triple-axis-accelerometer/#comment-16961</link>
		<dc:creator>Jim Kraemer</dc:creator>
		<pubDate>Mon, 14 Jul 2008 02:37:15 +0000</pubDate>
		<guid isPermaLink="false">#comment-16961</guid>
		<description>I was trying to use your code to quickly implement the LIS3LV02DQ on my Arduino.  I see that you had overcome a number of problems and documented them in your program.  When I went to try to down load your program by double tapping:

     Here’s the full source code for interfacing to the LIS3LV02DQ using an Arduino

At the URL: (bad old URL)

It came up as not found.  Can you please fix the link?

Jim Kraemer</description>
		<content:encoded><![CDATA[<p>I was trying to use your code to quickly implement the LIS3LV02DQ on my Arduino.  I see that you had overcome a number of problems and documented them in your program.  When I went to try to down load your program by double tapping:</p>
<p>     Here’s the full source code for interfacing to the LIS3LV02DQ using an Arduino</p>
<p>At the URL: (bad old URL)</p>
<p>It came up as not found.  Can you please fix the link?</p>
<p>Jim Kraemer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pablo Limon</title>
		<link>http://www.nearfuturelaboratory.com/2006/09/22/arduino-and-the-lis3lv02dq-triple-axis-accelerometer/#comment-14916</link>
		<dc:creator>Pablo Limon</dc:creator>
		<pubDate>Wed, 07 May 2008 18:25:57 +0000</pubDate>
		<guid isPermaLink="false">#comment-14916</guid>
		<description>Thanks for your answer Julian. I have been using a Logic Analizer to find out the problem, but have not been able to do so. Its the same for the C8051, you need to set all clock parameters. Now I have them set to the correct settings according to the Acc datasheet. I have not been able to find the problem. I still get 3A always after reading WHO AM I. I'll keep trying. When I find the answer (which I MUST do in a few days, my "life" depends on that! :) ) I will post the problem.
Thanks again</description>
		<content:encoded><![CDATA[<p>Thanks for your answer Julian. I have been using a Logic Analizer to find out the problem, but have not been able to do so. Its the same for the C8051, you need to set all clock parameters. Now I have them set to the correct settings according to the Acc datasheet. I have not been able to find the problem. I still get 3A always after reading WHO AM I. I&#8217;ll keep trying. When I find the answer (which I MUST do in a few days, my &#8220;life&#8221; depends on that! <img src='http://www.nearfuturelaboratory.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ) I will post the problem.<br />
Thanks again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lynchie30 Blog &#187; Article &#187; Sem-wii Good Day!</title>
		<link>http://www.nearfuturelaboratory.com/2006/09/22/arduino-and-the-lis3lv02dq-triple-axis-accelerometer/#comment-14693</link>
		<dc:creator>Lynchie30 Blog &#187; Article &#187; Sem-wii Good Day!</dc:creator>
		<pubDate>Mon, 28 Apr 2008 20:57:37 +0000</pubDate>
		<guid isPermaLink="false">#comment-14693</guid>
		<description>[...] be honest I haven&#8217;t a clue what it does. Neither does Luke. If anyone can help with the Parallax RFID reader tutorial then please [...]</description>
		<content:encoded><![CDATA[<p>[...] be honest I haven&#8217;t a clue what it does. Neither does Luke. If anyone can help with the Parallax RFID reader tutorial then please [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julian</title>
		<link>http://www.nearfuturelaboratory.com/2006/09/22/arduino-and-the-lis3lv02dq-triple-axis-accelerometer/#comment-14659</link>
		<dc:creator>Julian</dc:creator>
		<pubDate>Sun, 27 Apr 2008 19:58:08 +0000</pubDate>
		<guid isPermaLink="false">#comment-14659</guid>
		<description>Tough to say. The communications is almost certainly not working properly, assuming that the accelerometer and the microcontroller are working okay. I'd double check the connections between your microcontroller (I'm not familiar with this one) and the accelerometer and make certain that the right things are connected together. MOSI/MISO and whatever you're using for chip enable are connected properly to the accelerometer.

Without knowing anything about the C8051, it's hard to help out. I'd check the developer's forums and so forth for that particular microcontroller. First, do everything I could to solve the problem yourself — double-check connections, study-up on the SPI protocol, read the documentation for the microcontroller, borrow a friend's logic analyzer or oscilloscope and check the signals. I've always found that watching the data move on a scope can reveal lots. It may be the bit ordering, or the data mode of the SPI protocol needs to be set properly on the C8051 to match that of the accelerometer.

Since SPI uses a clock to signal data transfers, there are variosu "modes" that the clock can be set to. For example, the phase and polarity of the clock can be set to determine the conditions under which data is sent/read. Is the signal on the data line sampled  when the clock signal goes from "high" to "low" or when it goes from "low" to "high"? This is usually referred to as the clock phase. Then, there's the clock polarity to consider, too.

For the Atmega microcontrollers, this needs to be configured in order for the protocol to communicate properly. It requires reading the specifications for the chip that you're communicating with — the accelerometer or whatever — and finding out how its expecting to communicate. And then, you need to read the specifications for your microcontroller and set whatever register bits or what-have-you to determine how to get it to do data transfers accordingly.</description>
		<content:encoded><![CDATA[<p>Tough to say. The communications is almost certainly not working properly, assuming that the accelerometer and the microcontroller are working okay. I&#8217;d double check the connections between your microcontroller (I&#8217;m not familiar with this one) and the accelerometer and make certain that the right things are connected together. MOSI/MISO and whatever you&#8217;re using for chip enable are connected properly to the accelerometer.</p>
<p>Without knowing anything about the C8051, it&#8217;s hard to help out. I&#8217;d check the developer&#8217;s forums and so forth for that particular microcontroller. First, do everything I could to solve the problem yourself — double-check connections, study-up on the SPI protocol, read the documentation for the microcontroller, borrow a friend&#8217;s logic analyzer or oscilloscope and check the signals. I&#8217;ve always found that watching the data move on a scope can reveal lots. It may be the bit ordering, or the data mode of the SPI protocol needs to be set properly on the C8051 to match that of the accelerometer.</p>
<p>Since SPI uses a clock to signal data transfers, there are variosu &#8220;modes&#8221; that the clock can be set to. For example, the phase and polarity of the clock can be set to determine the conditions under which data is sent/read. Is the signal on the data line sampled  when the clock signal goes from &#8220;high&#8221; to &#8220;low&#8221; or when it goes from &#8220;low&#8221; to &#8220;high&#8221;? This is usually referred to as the clock phase. Then, there&#8217;s the clock polarity to consider, too.</p>
<p>For the Atmega microcontrollers, this needs to be configured in order for the protocol to communicate properly. It requires reading the specifications for the chip that you&#8217;re communicating with — the accelerometer or whatever — and finding out how its expecting to communicate. And then, you need to read the specifications for your microcontroller and set whatever register bits or what-have-you to determine how to get it to do data transfers accordingly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pablo Limon</title>
		<link>http://www.nearfuturelaboratory.com/2006/09/22/arduino-and-the-lis3lv02dq-triple-axis-accelerometer/#comment-14630</link>
		<dc:creator>Pablo Limon</dc:creator>
		<pubDate>Sun, 27 Apr 2008 01:43:40 +0000</pubDate>
		<guid isPermaLink="false">#comment-14630</guid>
		<description>Hello, Im trying to read the uAccelerometer using SPI Bus and a C8051 from Silicon Labs that has an SPI controller onboard. 

I sent the command to read WHO AM I register (0x0F). The first time I read it I get 0xFF as answer. If I read it again, I get 0xA3. After that, any read from any reg, I get 0xA3, no mater what I read...  Any ideas?</description>
		<content:encoded><![CDATA[<p>Hello, Im trying to read the uAccelerometer using SPI Bus and a C8051 from Silicon Labs that has an SPI controller onboard. </p>
<p>I sent the command to read WHO AM I register (0&#215;0F). The first time I read it I get 0xFF as answer. If I read it again, I get 0xA3. After that, any read from any reg, I get 0xA3, no mater what I read&#8230;  Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mik</title>
		<link>http://www.nearfuturelaboratory.com/2006/09/22/arduino-and-the-lis3lv02dq-triple-axis-accelerometer/#comment-13638</link>
		<dc:creator>Mik</dc:creator>
		<pubDate>Mon, 24 Mar 2008 16:12:20 +0000</pubDate>
		<guid isPermaLink="false">#comment-13638</guid>
		<description>Folks like Matthias and myself grappling with LIS3LVxxx interrupts might find this (somewhat old) document of help:

http://www.st.com/stonline/products/literature/an/10807.pdf

Cheers,
//Mik</description>
		<content:encoded><![CDATA[<p>Folks like Matthias and myself grappling with LIS3LVxxx interrupts might find this (somewhat old) document of help:</p>
<p><a href="http://www.st.com/stonline/products/literature/an/10807.pdf" onclick="javascript:pageTracker._trackPageview('/outbound/comments/http://www.st.com/stonline/products/literature/an/10807.pdf');" rel="nofollow">http://www.st.com/stonline/products/literature/an/10807.pdf</a></p>
<p>Cheers,<br />
//Mik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julian</title>
		<link>http://www.nearfuturelaboratory.com/2006/09/22/arduino-and-the-lis3lv02dq-triple-axis-accelerometer/#comment-13600</link>
		<dc:creator>Julian</dc:creator>
		<pubDate>Mon, 24 Mar 2008 02:58:18 +0000</pubDate>
		<guid isPermaLink="false">#comment-13600</guid>
		<description>Matthias

I've never actually used the interrupt feature of the LIS3LVO2DQ — sorry. Let me know how it goes, though.

Julian</description>
		<content:encoded><![CDATA[<p>Matthias</p>
<p>I&#8217;ve never actually used the interrupt feature of the LIS3LVO2DQ — sorry. Let me know how it goes, though.</p>
<p>Julian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaanus</title>
		<link>http://www.nearfuturelaboratory.com/2006/09/22/arduino-and-the-lis3lv02dq-triple-axis-accelerometer/#comment-13511</link>
		<dc:creator>Jaanus</dc:creator>
		<pubDate>Sat, 22 Mar 2008 01:47:51 +0000</pubDate>
		<guid isPermaLink="false">#comment-13511</guid>
		<description>Thanks for these instructions! Makes it easy to work with Arduino and this chip. I tried to run it but didn't work until I realized that you shouldn't be too creative with wiring ;) apparently the SPI clock generator is hardwired to PIN 13 in the chip and you just can't change it in code and expect it to work. Had to refer to the Atmel chip datasheet to figure that out... but all is well that ends well, so good stuff.</description>
		<content:encoded><![CDATA[<p>Thanks for these instructions! Makes it easy to work with Arduino and this chip. I tried to run it but didn&#8217;t work until I realized that you shouldn&#8217;t be too creative with wiring <img src='http://www.nearfuturelaboratory.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> apparently the SPI clock generator is hardwired to PIN 13 in the chip and you just can&#8217;t change it in code and expect it to work. Had to refer to the Atmel chip datasheet to figure that out&#8230; but all is well that ends well, so good stuff.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Troy</title>
		<link>http://www.nearfuturelaboratory.com/2006/09/22/arduino-and-the-lis3lv02dq-triple-axis-accelerometer/#comment-12874</link>
		<dc:creator>Troy</dc:creator>
		<pubDate>Tue, 26 Feb 2008 20:36:54 +0000</pubDate>
		<guid isPermaLink="false">#comment-12874</guid>
		<description>Got the new arduino 10000 and life is better,  the NG and Lis just don't get along very well</description>
		<content:encoded><![CDATA[<p>Got the new arduino 10000 and life is better,  the NG and Lis just don&#8217;t get along very well</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias Bartel</title>
		<link>http://www.nearfuturelaboratory.com/2006/09/22/arduino-and-the-lis3lv02dq-triple-axis-accelerometer/#comment-12763</link>
		<dc:creator>Matthias Bartel</dc:creator>
		<pubDate>Fri, 22 Feb 2008 10:07:27 +0000</pubDate>
		<guid isPermaLink="false">#comment-12763</guid>
		<description>Hello Julian,

I'm currently trying to develop an application which works with the LIS3L. I'm not using Audrino but a NXP LPC2129 .
In the first step I was polling the registers with your loop() method. If I move around the chip the values received change so it obviously works. Now I wanted to get the same thing done using interrupts generated by LIS3L. But no interrupts are generated. Did you also try to work with interrupts? If so, could you provide me with the steps for setting up the LIS3L interrupt suff?
If I configure LIS3L to send the DRDY-Signal to the RDY/INT pad the ISR is called continuously. When switching vom DRDY to IEN (in CTRL_REG2) the ISR won't be called anymore. Is it correct that the interrupt signal is triggered by Direction Detection or FreeFall/WakeUp generator?

Thank you,
regards,
Matthias</description>
		<content:encoded><![CDATA[<p>Hello Julian,</p>
<p>I&#8217;m currently trying to develop an application which works with the LIS3L. I&#8217;m not using Audrino but a NXP LPC2129 .<br />
In the first step I was polling the registers with your loop() method. If I move around the chip the values received change so it obviously works. Now I wanted to get the same thing done using interrupts generated by LIS3L. But no interrupts are generated. Did you also try to work with interrupts? If so, could you provide me with the steps for setting up the LIS3L interrupt suff?<br />
If I configure LIS3L to send the DRDY-Signal to the RDY/INT pad the ISR is called continuously. When switching vom DRDY to IEN (in CTRL_REG2) the ISR won&#8217;t be called anymore. Is it correct that the interrupt signal is triggered by Direction Detection or FreeFall/WakeUp generator?</p>
<p>Thank you,<br />
regards,<br />
Matthias</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Middleton</title>
		<link>http://www.nearfuturelaboratory.com/2006/09/22/arduino-and-the-lis3lv02dq-triple-axis-accelerometer/#comment-12725</link>
		<dc:creator>Matt Middleton</dc:creator>
		<pubDate>Wed, 20 Feb 2008 00:08:46 +0000</pubDate>
		<guid isPermaLink="false">#comment-12725</guid>
		<description>Did you ever get multiple devices to work on the SPI bus along with the accelerometer?  Technically, when the chipselect for the accelerometer is disabled, it goes into I2C mode.  The clock and data lines for the SPI bus are still connected, however, and I did not know if this caused any data transfer problems of malfunction of the accelerometer since it would be receiving the SPI bus data.  I had planned on putting a high impedance buffer that only connected the SPI bus to the accelerometer when then chipselect was enabled, but I was curious if, based on your hands on experience, I need to do this.  

Thanks,

Matt</description>
		<content:encoded><![CDATA[<p>Did you ever get multiple devices to work on the SPI bus along with the accelerometer?  Technically, when the chipselect for the accelerometer is disabled, it goes into I2C mode.  The clock and data lines for the SPI bus are still connected, however, and I did not know if this caused any data transfer problems of malfunction of the accelerometer since it would be receiving the SPI bus data.  I had planned on putting a high impedance buffer that only connected the SPI bus to the accelerometer when then chipselect was enabled, but I was curious if, based on your hands on experience, I need to do this.  </p>
<p>Thanks,</p>
<p>Matt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Troy</title>
		<link>http://www.nearfuturelaboratory.com/2006/09/22/arduino-and-the-lis3lv02dq-triple-axis-accelerometer/#comment-12666</link>
		<dc:creator>Troy</dc:creator>
		<pubDate>Sun, 17 Feb 2008 10:57:29 +0000</pubDate>
		<guid isPermaLink="false">#comment-12666</guid>
		<description>Hey NFL,

You all Rawk!  
Been banging my head about this for a few weeks
Getting a WHO AM I [FF] 
any ideas?

Thanks,
Troy</description>
		<content:encoded><![CDATA[<p>Hey NFL,</p>
<p>You all Rawk!<br />
Been banging my head about this for a few weeks<br />
Getting a WHO AM I [FF]<br />
any ideas?</p>
<p>Thanks,<br />
Troy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julian</title>
		<link>http://www.nearfuturelaboratory.com/2006/09/22/arduino-and-the-lis3lv02dq-triple-axis-accelerometer/#comment-12358</link>
		<dc:creator>Julian</dc:creator>
		<pubDate>Mon, 11 Feb 2008 17:17:34 +0000</pubDate>
		<guid isPermaLink="false">#comment-12358</guid>
		<description>Thanks Chuck for catching that! I made the change as you suggested.

.julian.</description>
		<content:encoded><![CDATA[<p>Thanks Chuck for catching that! I made the change as you suggested.</p>
<p>.julian.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chuck Wolber</title>
		<link>http://www.nearfuturelaboratory.com/2006/09/22/arduino-and-the-lis3lv02dq-triple-axis-accelerometer/#comment-12072</link>
		<dc:creator>Chuck Wolber</dc:creator>
		<pubDate>Thu, 07 Feb 2008 07:39:58 +0000</pubDate>
		<guid isPermaLink="false">#comment-12072</guid>
		<description>The code for this works great, except that the fourth line of the code does not match the wiring. Either change the CS line of the LIS3LV02DQ to digital pin 8 on the Arduino, *OR* change the 4th line of the source code to:

#define SLAVESELECT 10

..Chuck..</description>
		<content:encoded><![CDATA[<p>The code for this works great, except that the fourth line of the code does not match the wiring. Either change the CS line of the LIS3LV02DQ to digital pin 8 on the Arduino, *OR* change the 4th line of the source code to:</p>
<p>#define SLAVESELECT 10</p>
<p>..Chuck..</p>
]]></content:encoded>
	</item>
</channel>
</rss>
