A simple C library to iniitalize and read the data from 4 popular
accelerometer chips (ADXL345, MPU6050, BMI160 and LSM9DS1). This library uses the I2C
kernel driver to access the sensors (/dev/i2c*) and therefore needs to run with
root privilege. A sample program is provided to demonstrate its use.
The I2C addresses can vary depending on the way each chip is wired. The demo
program uses the common addresses used by breakout boards.
To build the C library, simply type 'make' in the terminal. To build the sample
app, type 'make -f make_sample'. This will build the 'test' executable to show
that the library is working.
Copyright (c) 2018 by Larry Bank
Project started 1/25/2018
bitbank@pobox.com
-
-
Notifications
You must be signed in to change notification settings - Fork 1
A C library to read the accelerometer and gyroscope values from a collection of popular sensors
License
bitbank2/accelerometers
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A C library to read the accelerometer and gyroscope values from a collection of popular sensors
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Sponsor this project
Packages 0
No packages published