Mcube MC3672 Quick Start Manuals

Accelerometer driver

Advertisement

GENERAL DESCRIPTION
The MC3672 is an ultra-low power, low
noise, integrated digital output 3-axis
accelerometer with a feature set optimized
for wearables and consumer product
motion sensing. Applications include
wearable consumer products, IoT devices,
user interface control, gaming motion input,
electronic compass tilt compensation for
cell phones, game controllers, remote
controls and portable media products.
The EVA3672A is a prebuilt circuit board
with MC3672 WLCSP 3-axes sensor. The
MC3672 has internal sample rate from 14 to
1300 samples / second and measures
acceleration with a wide usage range, from
+/-2g up to +/-16g, and 6-bit to 14-bit high
precision ADC output, which is easy to fit
on top of the microcontroller, such as an
Arduino. The accelerometer communicates
via I2C and gives out motion detection or
sample acquisition conditions to trigger an
interrupt toward a MCU.
The sensor data is easily readable by
connecting DVDD to 3.3V, GND to ground,
and SCL/SDA pins to your Arduino I2C
clock and data pin respectively. Download
the MC3672 library from GitHub onto the
board, run the example sketch, and then
sensor data shortly comes out in raw data
count and SI unit accelerometer
measurements. An easy-to-use
demonstration on EVA3672A using the
Arduino platform is included in this
document.
mCube Proprietary.
© 2018 mCube Inc. All rights reserved.
MC3672 Accelerometer Driver
APS-045-0017v1.2
Quick Start Guide and Demo
MC3672 FEATURES
Range, Sampling & Power
±2,4,8,12 or 16g ranges
8, 10 or 12-bit resolution with FIFO
o 14-bit single samples
Sample rate 14 - 1300 samples/sec
Sample trigger via internal oscillator,
clock pin or software command
Sniff and Wake modes
0.4 μA Sniff current @ 6Hz
Separate or combined sniff/wake
Ultra-Low Power with 32 sample
FIFO
o 0.9 μA typical current @ 25Hz
o 1.6 μA typical current @ 50Hz
o 2.8 μA typical current @ 100Hz
o 36 μA typical current @ 1300Hz
Simple System Integration
I2C interface, up to 1 MHz
SPI Interface, up to 8 MHz
1.29 × 1.09 × 0.742 mm 8-pin
WLCSP package
Single-chip 3D silicon MEMS
Low noise to 2.3mg RMS
1 / 19

Advertisement

Table of Contents
loading

Summary of Contents for Mcube MC3672

  • Page 1 0.9 μA typical current @ 25Hz with MC3672 WLCSP 3-axes sensor. The o 1.6 μA typical current @ 50Hz MC3672 has internal sample rate from 14 to o 2.8 μA typical current @ 100Hz 1300 samples / second and measures o 36 μA typical current @ 1300Hz...
  • Page 2: Table Of Contents

    Assembly and Test ......................6 Demo ..........................8 Library Reference ......................11 Downloads ........................15 Schematics ........................16 Fabrication print ......................17 Revision History ......................18 Legal ..........................19 mCube Proprietary. APS-045-0017v1.2 2 / 19 © 2018 mCube Inc. All rights reserved.
  • Page 3: General Operation

    3V logic. A 4.7K pull-up resistor is required for this pin. Simply, add a 4.7K pull- up resistor on R5 to ensure functionality of the I2C data signal. mCube Proprietary. APS-045-0017v1.2 3 / 19 © 2018 mCube Inc. All rights reserved.
  • Page 4 Slave sends data to the master (Master Input, Slave Output). Connect SDA to the pin where the Master sends data to the peripherals (Master Output, Slave Input). mCube Proprietary. APS-045-0017v1.2 4 / 19 © 2018 mCube Inc. All rights reserved.
  • Page 5 (Not currently supported in the library for the interrupt pin, so please check the datasheet for the I2C commands and related registers). mCube Proprietary. APS-045-0017v1.2 5 / 19 © 2018 mCube Inc. All rights reserved.
  • Page 6: Assembly And Test

    Connect the SCL pin to the I2C clock SCL pin on your Arduino. • Connect the SDA pin to the I2C data SDA pin on your Arduino. The MC3672 has a default I2C address of 0x4C and it can be changed to 0x6C by tying the DOUT pin to VDD. mCube Proprietary.
  • Page 7 Connect SDO to digital I/O pin 12 as Master Input, Slave Output. • Connect SDA to digital I/O pin 11 as Master Output, Slave Input. • Connect SCS to digital I/O pin 10 as Slave Select. mCube Proprietary. APS-045-0017v1.2 7 / 19 © 2018 mCube Inc. All rights reserved.
  • Page 8: Demo

    3 DEMO 3.1 DOWNLOAD THE DRIVER FROM GITHUB To begin reading sensor data, you will need to download the MC3672 Library from the GitHub repository. Do this by visiting the GitHub repository and manually downloading or simply click this button the attached URL to download the zip file.
  • Page 9 You may need to create the library subfolder if it is your first library files. Then just restart the IDE. An excellent tutorial on Arduino library installation is located at: http://learn.adafruit.com/adafruit-all-about-arduino-libraries-install-use 3.2 LOAD THE DEMO Open File->Examples->MC3672-> MC3672demo and upload to your Arduino while it is wired to the sensor. mCube Proprietary. APS-045-0017v1.2 9 / 19...
  • Page 10 Default input pin for interrupt is pin 8 and default FIFO threshold is 3 samples. FIFO size could be set to maximum 32 samples or just enable FIFO to FIFO_FULL mode. #define INTERRUPT_PIN #define FIFO_SIZE mCube Proprietary. APS-045-0017v1.2 10 / 19 © 2018 mCube Inc. All rights reserved.
  • Page 11: Library Reference

    MC36XX_acc.SetRangeCtrl(MC36XX_RANGE_8G); 4.4 READ RANGE Read the current range with: MC36XX_acc.GetRangeCtrl(); It returns: 0 for ±2g, | 1 for ±4g, | 2 for ±8g | 3 for ±16g. mCube Proprietary. APS-045-0017v1.2 11 / 19 © 2018 mCube Inc. All rights reserved.
  • Page 12 Read the current cwake sampling rate with: MC36XX_acc.GetCWakeSampleRate (); It returns sampling rate from 14 ~ 600 Hz. 4.9 SET SNIFF SAMPLING RATE Set the accelerometer sniff mode sampling rate with: MC36XX_acc.SetSniffSampleRate (MC36XX_SNIFF_SR_DEFAULT_7Hz); mCube Proprietary. APS-045-0017v1.2 12 / 19 © 2018 mCube Inc. All rights reserved.
  • Page 13 The SNIFF block supports the logical AND or OR of the X/Y/Z SNIFF wakeup flags when generating a SNIFF wakeup interrupt. Configure sniff delta mode with: MC36XX_acc.SetSniffDeltaMode(MC36XX_DELTA_MODE_C2P); mCube Proprietary. APS-045-0017v1.2 13 / 19 © 2018 mCube Inc. All rights reserved.
  • Page 14 MC36XX have 5 interrupt modes – FIFO_THR | FIFO FULL | FIFO EMPTY | ACQ | WAKE. These modes can only be enabled separately. 4.13 READ RAW COUNT DATA Read the raw count data and SI unit measurement with: MC36XX_acc.readRawAccel(); mCube Proprietary. APS-045-0017v1.2 14 / 19 © 2018 mCube Inc. All rights reserved.
  • Page 15: Downloads

    5.1 MC3630 ACCELEROMETER DATASHEET http://www.mcubemems.com/product/mc3630-3-axis-accelerometer/ 5.2 MC3635 ACCELEROMETER DATASHEET http://www.mcubemems.com/product/mc3635-3-axis-accelerometer/ 5.3 MC3672 ACCELEROMETER DATASHEET http://www.mcubemems.com/product/mc3672-3-axis-accelerometer/ 5.4 MC36XX DRIVER AT GITHUB https://github.com/mcubemems/Accelerometer_MC36XX 5.5 ALL OTHER MCUBE DOCUMENTATION http://www.mcubemems.com/resources-support/resources/ mCube Proprietary. APS-045-0017v1.2 15 / 19 © 2018 mCube Inc. All rights reserved.
  • Page 16: Schematics

    MC3672 Accelerometer Driver Quick Start Guide and Demo 6 SCHEMATICS mCube Proprietary. APS-045-0017v1.2 16 / 19 © 2018 mCube Inc. All rights reserved.
  • Page 17: Fabrication Print

    MC3672 Accelerometer Driver Quick Start Guide and Demo 7 FABRICATION PRINT mCube Proprietary. APS-045-0017v1.2 17 / 19 © 2018 mCube Inc. All rights reserved.
  • Page 18: Revision History

    Revision Description 2016-12-08 APS-045-0017v1.0 First release. 2017-02-06 APS-045-0017v1.1 Added SPI mode interface. 2018-05-10 APS-045-0017v1.2 Added example codes for high speed SPI mode, FIFO mode, and Sniff mode. mCube Proprietary. APS-045-0017v1.2 18 / 19 © 2018 mCube Inc. All rights reserved.
  • Page 19: Legal

    M-CUBE and the M-CUBE logo are trademarks of M-CUBE, Inc., All other product or service names are the property of their respective owners. © M-CUBE, Inc. 2018. All rights reserved. mCube Proprietary. APS-045-0017v1.2 19 / 19 © 2018 mCube Inc. All rights reserved.

Table of Contents