Skip to content

Arduino device driver for LIS2DH accelerometer

License

Notifications You must be signed in to change notification settings

keithngroover/LIS2DH

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LIS2DH

Arduino device driver for communicating with LIS2DH accelerometer over I2C

LIS2DH datasheet (PDF)

====================== Status

Library was uncomplete and no working. Not updated since 2014. I'm updating it to make it a fully working library for LIS2DH. Actually the library is supporting most of the register configuration in raw mode and user friendly mode.

  • Motion / Acceleration / Force feature tested and working
  • Tilt feature tested and working
  • 6D position feature tested and working Have fun with It !

The functions related to Clicks detection are not fully documented due to the really poor quality of the ST Datasheet. I don't think I already had such uncompleted and badly written document. So any help on these feature is welcome.

www.disk91.com

====================== Installation

Requires the Arduino Libraries Wire.h for I2C and SPI.h depending on how you wish to interface with the chip.

warning SPI not supported yet!

Download the repo as a zip file and install throught the Arduino IDE and select:

Sketch -> Import Library -> Add Library

Make sure that if you are installing updates that you remove any pre-existing libraries called "LIS2DH".

====================== Wiring Diagram

LIS2DH wiring diagram

I2C lines: SDA and SCL

About

Arduino device driver for LIS2DH accelerometer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%