Accelerometer and Gyroscope Driver for the LSM6DS0 using the MSP430.
For more information, please see the full article: http://mcuhq.com/edit/28/msp430-3-axis-accelerometer-and-gyroscope-example-driver-using-the-lsm6ds0ple
This library contains a simple API to gather the gyro and accelerometer x,y,z points using SPI. The GUI Composer tool inside of Code Composer Studio is used to graphically display the data in real-time. Here is a youtube video displaying the final output:
https://www.youtube.com/watch?v=OGfDyrtRUM8
- STEVAL-MKI161V1 Adapter Board
- MSP430 launchpad
- Code Composer Studio (CCS) and the Grace and GUI Composer plugins
- USB mini cable to connect the launchpad to a computer running GUI Composer
- Connect the sensor to the launchpad
- Clone this repo and open the project inside of CCS
- Compile and flash the MSP430
- Launch the GUI Composer plugin inside of CCS
- Open the COM port and see the real-time x,y,z points being plotted
Sample usage without using Code Composer Studio:
#include "LSM6DS0.h"
accelLoad(&x_gyro); // get accelerometer results
gyroLoad(&x_gyro); // get gyro results
Please submit all issues to the github tracker. Pull requests are also encouraged. General comments can be left either inside github or at mcuhq.com