Skip to content
/ LSM6DS3 Public

Highly configurable python module for LSM6DS3 IMU by STMicroelectronics

Notifications You must be signed in to change notification settings

wrh2/LSM6DS3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LSM6DS3 Python Module

Highly configurable LSM6DS3 module for Python, tested with Raspberry Pi, example included.

Materials Used

Documentation

Dependencies

py-smbus

Features

  • Initialize module with specified output axes (X, Y, Z, XY, XZ, YZ, XYZ)
    • For disabled axes, output will be None
  • Supports 2g, 4g, 8g, 16g scales for Accelerometer
  • Supports 250dps, 500dps, 1000dps, 2000dps scales for Gyroscope
  • Configurable interrupt pins for accelerometer and gyroscope
  • Interrupts can be disabled/enabled during use

Example

An example that uses the raspberry-pi with GPIO interrupts and callback functions is included in the examples folder

Tests

A unit test framework for the module using python's unittest module is included in the tests folder. It covers the different output axis configurations and scaling factors for the accelerometer and gyroscope.

TODO

  • Embedded functions
  • Configurable logic level for interrupt pins
  • Interrupt configuration for embedded functions

About

Highly configurable python module for LSM6DS3 IMU by STMicroelectronics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages