Page 1 of 1

Arduino and the LIS3LV02DQ over SPI

Posted: Sun Sep 24, 2006 8:19 am
by jbleecker
I put together a simple tutorial on interfacing between the Arduino and the LIS3LV02DQ triple axis accelerometer. Thought it might be useful to some folks.

http://www.nearfuturelaboratory.com/200 ... elerometer

Julian

proablem with LIS3LV02DQ's and

Posted: Sun Jan 21, 2007 12:00 pm
by electroinge
hi i read ur help page about connecting the LIS3LV02DQ's to the Arduino useing SPI but i cant get it working the final code pin's out and in are different to the orginal pin's set up showen in the picture ,and i cant figure out what is what with the dule names for some of the LIS3LV02DQ's lines . could u please correct the code using the names printed on the LIS3LV02DQ's
board and what pin they connect to .

Posted: Mon Apr 13, 2009 11:54 pm
by Boomii
I hook it up, and read the WHO AM I, but could not get the right x,y,z acceleration data. when there's no move, the output are not Zero. Why?

Re: Arduino and the LIS3LV02DQ over SPI

Posted: Tue Sep 01, 2009 12:39 pm
by ernekin_sw
jbleecker wrote:I put together a simple tutorial on interfacing between the Arduino and the LIS3LV02DQ triple axis accelerometer. Thought it might be useful to some folks.

http://research.techkwondo.com/blog/julian/259

Julian
Link is broken :(

Re: Arduino and the LIS3LV02DQ over SPI

Posted: Tue Sep 01, 2009 3:38 pm
by FartingMonkey92
ernekin_sw wrote:"Link is broken"
It is nearly 3 years old...

Posted: Thu Jan 28, 2010 8:35 am
by drvortex
hi all

in all my research on the LIS3LV02DQ for twi/i2c no one mentions that the default for the LIS3LV02DQ was 4 wire. so you have to change this.

there are 3 registers that have a 8 preferences each. you control the on/off by sending this Wire.send(B11010010); the comments list the presences for CTRL_REG2 in order

Wire.begin(); // join i2c bus (address optional for master)
Wire.beginTransmission(0x1D);
Wire.send(0x21); // // CTRL_REG2 (21h)
Wire.send(B11010010);

// B11010010 corresponds to the seetings for below
//FS bit is used to select Full Scale value. default = 1
//BDU bit is used to inhibit output registers update default = 1
//BLE bit is used to select Big Endian or Little Endiandefault = 0
//BOOT bit is used to refresh the content of internal registers default = 1
//IEN bit is used to switch the value present on data-ready pad default = 0
//DRDY bit is used to enable Data-Ready (RDY/INT) default = 0
//SPI 4/3 wire SIM is ‘0’ (default value) the 4-wire SIM is ‘1’ the 3-wire TWI (I2C)
//DAS bit permits to decide between 12 bit right justified and 16 bit default = 0

Sorry for the dead link

Posted: Sat Jan 30, 2010 12:58 pm
by jbleecker
I've updated..that old one was from a few years ago and I didn't realize it wasn't being redirected.

http://www.nearfuturelaboratory.com/200 ... elerometer