Skip to content

rvanee/SparkFun_LSM6DS3_Arduino_Library

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, ESP32, ESP8266, 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.
  • V 1.0.1 -- Adds SPI compatibility to the ESP32 and ESP8266 boards for this product.

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.

About

Arduino library for the LSM6DS3, extended

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%