LIS3LV02DL Accelerometer With SPI

I have just got my LIS3lV02DL accelerometer to work using SPI. .

If you are interested, I have provided the code listing on my blog ( and

Hopefully, you'll find it useful.

I have added it to my products list:

Nice guide. Maybe you want to stick something in about remembering that the chip is now upside down so pins are not in their normal places. It might seem obvious but I have forgotten before :p


Hi Mowcius,

Thanks. The LIS3IV02DL link on your site doesn't seem to work though...

Well I just tried it again and it seems to be working to me...

Aha... now it works for me as well. Must be the intermittent Internet thing...

Thanks for linking it.