Skip to content

Arduino library for accelerometer MMA8653 used in the BBC MicroBit

License

Notifications You must be signed in to change notification settings

lfhohmann/MMA8653

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!