/MMA8653

Arduino library for accelerometer MMA8653 used in the BBC MicroBit

Primary LanguageC++MIT LicenseMIT

MMA8653 Accelerometer

This library brings support for the NXP MMA8653 I2C accelerometer to Arduino and other similar boards.

(Like the BBC MicroBit, wich has a MMA8653 accelerometer on board).

NXP MMA8653 DATASHEET

Features:

  • Set Output Data Rates (ODR) from 1.56hz to 800hz
  • Set Range to either 2G, 4G or 8G modes
  • Select between 8bit and 10bit resolution modes
  • Set oversampling/power modes
  • Set individual axis offset values
  • Set Data Ready (DR) interrupt
  • Set Freefall/Motion Detection (FFMT) interrupt
  • Set Orientation Detection Interrupt

Installation

  1. Download the Main branch from GitHub.
  2. Unzip and modify the Folder name to "MMA8653" (Remove the '-main' suffix)
  3. Paste the modified folder on your Library folder (On your Libraries folder inside Sketchbooks or Arduino software).
  4. Restart the Arduino IDE

Documentation

Refer to the examples and comments in the source files.

Buy me a coffe!