Arduino library for the LSM6DS3
Switch branches/tags
Nothing to show
Clone or download
Latest commit c5dca76 Aug 6, 2015

README.md

SparkFun LSM6DS3 Arduino Library

LSM6DS3 Breakout

LSM6DS3 Breakout (SEN-13339)

This is an arduino IDE library to control the LSM6DS3. It can be configured to use I2C or SPI with 2 instances per I2C channel or any number of SPI instances. The top-level driver, class LSM6DS3, contains an inner driver LSM6DS3Core, a settings struct, and float-based math functions for conversion from raw to meaningful numbers.

This has been tested with Arduino Uno and Teensy 3.1 architectures.

Repository Contents

  • /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
  • /extras - Contains class diagrams for the driver. Ignored by IDE.
  • /src - Source files for the library (.cpp, .h).
  • keywords.txt - Keywords from this library that will be highlighted in the Arduino IDE.
  • library.properties - General library properties for the Arduino package manager.

Example Briefs

  • FifoExample - Demonstrates using the built-in buffer to burst-collect data - Good demonstration of settings
  • InterruptFreeFall - Embedded function demonstrating free-fall detection
  • InterruptHWTapConfig - Embedded function demonstrating tap and double-tap detection
  • LowLevelExample - Demonstrates using only the core driver without math and settings overhead
  • MemoryPagingExample - Demonstrates switching between memory pages
  • MinimalistExample - The easiest configuration
  • MultiI2C - Using two LSM6DS3s over I2C
  • MultiSPI - Using two LSM6DS3s over SPI
  • Pedometer - Embedded function demonstrating step-counting feature

Documentation

Products that use this Library

Version History

  • V 1.0.0 -- Initial commit of Arduino 1.6-compatible library.

License Information

This product is open source!

Please review the LICENSE.md file for license information.

If you have any questions or concerns on licensing, please contact techsupport@sparkfun.com.

Distributed as-is; no warranty is given.

  • Your friends at SparkFun.