Skip to content
Accelerometer and Gyroscope Driver for the LSM6DS0 using the MSP430
C Batchfile Makefile
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.settings
src
targetConfigs
.ccsproject
.cproject
.gitignore
.project
LICENSE
LSM6DS0.c
LSM6DS0.h
LSM6DS0_Platform.h
README.md
Serial_Cmd_Monitor.c
Serial_Cmd_Monitor.h
TargetConfiguration.ccxml
lnk_msp430g2553.cmd
logo.png
main.c
main.cfg
makefile.defs
schematic.jpg
uart.c
uart.h

README.md

LSM6DS0-driver-for-MSP430

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

Introduction

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

Required Tools

  1. STEVAL-MKI161V1 Adapter Board
  2. MSP430 launchpad
  3. Code Composer Studio (CCS) and the Grace and GUI Composer plugins
  4. USB mini cable to connect the launchpad to a computer running GUI Composer

Setup

  1. Connect the sensor to the launchpad

  1. Clone this repo and open the project inside of CCS
  2. Compile and flash the MSP430
  3. Launch the GUI Composer plugin inside of CCS
  4. 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

Issues

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

You can’t perform that action at this time.