Skip to content

PontusO/mc34x9_driver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino Accelerometer sensor driver for mCube Product MC34X9 series.

The MC34X9 accelerometers features a dedicated motion block that implements the latest algorithms to detect “any motion”, shake, tilt/flip, and tilt 35 position. The product is optimized for high-performance applications by supporting full 16-bit resolution at Output Data Rates (ODR) up to 1KHz. The data samples can either be read directly from the device via a SPI or I2C interface, or queued in an on-board, 32 sample FIFO (per channel). The pinout is designed to match the most popular existing industry standard pinout.

This demo has been verified on Arduino DUE board with mCube's MC34X9 evaluation board. If you want to connect a MC34X9 chip to your own Auduino board, please pay attention to the following const definition in file MC34X9_demo.ino:

  1. bSpi If you use SPI interface, please set bSpi value to zero. Or if you use I2C interface, please set bSpi value to one.
  2. SPIChipSelectPin If you use SPI interface, please set the real number you're using to connect MC34X9's pin10.
  3. I2CAddress If you use I2C interface, please set the real number you're using on MC34X9's I2C address.

MC3419 https://mcubemems.com/product/mc3419-3-axis-accelerometer/

MC3479 https://mcubemems.com/product/mc3479-3-axis-accelerometer/

This library was forked from https://github.com/mcubemems/mCube_mc34x9_arduino_driver and the code here belongs to mCube Inc. We simply made it compileable for the Arduino platform.

LICENSE: Copyright (c) 2020 mCube, Inc. All rights reserved. This source is subject to the mCube Software License. This software is protected by Copyright and the information and source code contained herein is confidential. The software including the source code may not be copied and the information contained herein may not be used or disclosed except with the written permission of mCube Inc. All other rights reserved.

About

Arduino 3-Axis Digital Accelerometer demo for mCube MC34X9 products.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%