Advertisement

GENERAL DESCRIPTION
The MC3479 is a small form factor,
integrated digital output 3-axis
accelerometer with a feature set optimized
for cell phones and IoT product motion
sensing. Applications include user interface
control, gaming motion input, electronic
compass tilt compensation for cell phones,
game controllers, remote controls and
portable media products.
The MC3479 features a dedicated motion
block which implements embedded
algorithms to support "any motion" and
shake detection, tilt/flip and tilt 35 position
detection.
The EV3479A is a prebuilt circuit board with
MC3479 LGA-12 3-axes sensor. The
MC3479 has internal sample rate from 0.5
to 1000 samples / second and measures
acceleration with a wide usage range, from
+/-2g up to +/-16g, and 16-bit high precision
ADC output, which is easy to fit on top of
the microcontroller, such as an Arduino.
The accelerometer communicates via
I2C/SPI and gives out motion detection or
sample acquisition conditions to trigger an
interrupt toward an 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 MC3479 library from GitHub onto the
board, run the example sketch, and then
mCube Proprietary.
© 2020 mCube Inc. All rights reserved.
The MC3479 Evaluation Board
APS-045-0034v1.0
Quick Start Guide and Demo
sensor data shortly comes out in raw data
count and SI unit accelerometer
measurements. An easy-to-use
demonstration on EV3479A using the
Arduino platform is depicted in this
document.
MC3479 FEATURES
Range, Sampling & Power
±2,4,8,12 or 16g range
16-bit single sample resolution
16-bit resolution with FIFO
0.5 to 1000 Hz Output Data Rate
4 μA typical Standby current
Low typical active current
Simple System Integration
I2C interface, up to 1 MHz
SPI Interface, up to 10 MHz
2×2×0.92 mm 12-pin LGA package
Single-chip 3D silicon MEMS
RoHS compliant
1 / 20

Advertisement

Table of Contents
loading

Summary of Contents for Mcube MC3479

  • Page 1 The MC3479 Evaluation Board Quick Start Guide and Demo GENERAL DESCRIPTION The MC3479 is a small form factor, sensor data shortly comes out in raw data integrated digital output 3-axis count and SI unit accelerometer accelerometer with a feature set optimized measurements.
  • Page 2: Table Of Contents

    Config Motion Feature ......................13 Config Interrupt Mode ......................13 Read Raw Count Data ....................... 14 Downloads ........................15 MC3479 Accelerometer Datasheet and Quick Start Guide ..........15 MC34X9 Driver at GitHub ....................15 All Other mCube Documentation ..................15 Schematics ........................16 Bill of Materials ......................
  • Page 3: General Operation

    By default, Arduino UNO operates at 5V, which is higher than the maximum voltage rating for the evaluation board. Please refer to an excellent tutorial on modifying Arduino UNO to output at 3.3V: https://learn.adafruit.com/arduino-tips-tricks-and-techniques/3-3v-conversion mCube Proprietary. APS-045-0034v1.0 3 / 20 © 2020 mCube Inc. All rights reserved.
  • Page 4: I2C Pins

    4.7K ohm resistors to the SDA and SCL pin respectively. It will work the same either way. NOTE: DO NOT install more than one setup pull-up resistors per I2C bus. mCube Proprietary. APS-045-0034v1.0 4 / 20 © 2020 mCube Inc. All rights reserved.
  • Page 5: Spi Pins

    I2C commands and related registers). R6: If using the sensor interrupt signal as open-drain, then install pull-up resistor ~4.7KΩ into R6 (not installed by default). mCube Proprietary. APS-045-0034v1.0 5 / 20 © 2020 mCube Inc. All rights reserved.
  • Page 6: Assembly And Test

    Connect the SDA pin to the I2C data SDA pin on your Arduino. MC3479 has a default I2C address of 0x4C and it can be changed to 0x6C by tying the SDO pin to VDD. mCube Proprietary. APS-045-0034v1.0 6 / 20 © 2020 mCube Inc. All rights reserved.
  • Page 7: Spi Interface

    Connect SDO to ICSP-1 as Master Input, Slave Output. • Connect SDA to ICSP-4 as Master Output, Slave Input. • Connect SCS to digital I/O pin 10 as Slave Chip Select. mCube Proprietary. APS-045-0034v1.0 7 / 20 © 2020 mCube Inc. All rights reserved.
  • Page 8: Demo

    EV3479A Quick Start Guide and Demo 3 DEMO 3.1 DOWNLOAD THE DRIVER FROM GITHUB To begin reading sensor data, you will need to download the MC3479 Library from the GitHub repository and simply click URL to clone or download the driver file. https://github.com/mcubemems/mCube_mc34x9_arduino_driver Download with ZIP format from link above and check the zip file consisting of MC34X9.cpp, MC34X9.h and examples directory.
  • Page 9: Load The Demo

    Setup SPI interface as 2.2 will get SPI select pin 10. /* Chip Select & Address */ uint8_t chipSelect = 0; const uint8_t SPIChipSelectPin = 10; // chipSelectPin const uint8_t I2CAddress = 0x4c; // address mCube Proprietary. APS-045-0034v1.0 9 / 20 © 2020 mCube Inc. All rights reserved.
  • Page 10 FIFO_THRE_SIZE = 30; /* FIFO Interrupt */ const bool enableFifoThrINT = false; /* For FIFO feature, enable FIFO interrupt will automatically enable FIFO feature */ bool enableFIFO = false; mCube Proprietary. APS-045-0034v1.0 10 / 20 © 2020 mCube Inc. All rights reserved.
  • Page 11 */ const bool enableTILT = false; const bool enableFLIP = false; const bool enableANYM = true; const bool enableSHAKE = false; const bool enableTILT_35 = false; mCube Proprietary. APS-045-0034v1.0 11 / 20 © 2020 mCube Inc. All rights reserved.
  • Page 12: Library Reference

    It returns: 0 for ±2g, | 1 for ±4g, | 2 for ±8g | 3 for ±16g | 4 for ±12g. 4.5 SET SAMPLING RATE Set the accelerometer sampling rate with: MC34X9_acc.SetSampleRate(MC34X9_ SR_DEFAULT_1000Hz); mCube Proprietary. APS-045-0034v1.0 12 / 20 © 2020 mCube Inc. All rights reserved.
  • Page 13: Read Sampling Rate

    Set the threshold and duration value used by the tilt35 logic for activity detection: #define s_bCfgTILT35Thr #define s_bCfgTILT35Timer MC34X9_TILT35_2p0 4.8 CONFIG INTERRUPT MODE Configure the FIFO interrupt mode with: MC34X9_acc.SetFIFOINTCtrl(false, false, enableFifoThrINT); mCube Proprietary. APS-045-0034v1.0 13 / 20 © 2020 mCube Inc. All rights reserved.
  • Page 14: Read Raw Count Data

    MC34X9 has 5 motion interrupt modes – TILT | FILP | ANYM | SHAKE | TILT35. These modes can only be enabled separately. 4.9 READ RAW COUNT DATA Read the raw count data and SI unit measurement with: MC34X9_acc.readRawAccel(); mCube Proprietary. APS-045-0034v1.0 14 / 20 © 2020 mCube Inc. All rights reserved.
  • Page 15: Downloads

    MC3479 3-Axis Accelerometer EV3479A Quick Start Guide and Demo 5 DOWNLOADS 5.1 MC3479 ACCELEROMETER DATASHEET AND QUICK START GUIDE https://mcubemems.com/product/mc3479-3-axis-accelerometer/ 5.2 MC34X9 DRIVER AT GITHUB https://github.com/mcubemems/mCube_mc34x9_arduino_driver/ 5.3 ALL OTHER MCUBE DOCUMENTATION https://mcubemems.com/resources-support/resources/ mCube Proprietary. APS-045-0034v1.0 15 / 20 © 2020 mCube Inc. All rights reserved.
  • Page 16: Schematics

    R7: Sensor’s driving current can be measured by putting an ammeter in place of R7. The physical location of the resistor is in the diagram in Section 8. DNI: Do Not Install mCube Proprietary. APS-045-0034v1.0 16 / 20 © 2020 mCube Inc. All rights reserved.
  • Page 17: Bill Of Materials

    RES-0603 Walsin WR06X000PTL MC3479 LGA-12_2.0 x 2.0 mCube MC3479 RES-0603 Walsin WR06X472JTL 4.7K RES-0603 Walsin WR06X472JTL 4.7K RES-0603 Walsin WR06X472JTL 4.7K RES-0603 Walsin WR06X472JTL RES-0603 Walsin WR06X472JTL mCube Proprietary. APS-045-0034v1.0 17 / 20 © 2020 mCube Inc. All rights reserved.
  • Page 18: Fabrication Print

    MC3479 3-Axis Accelerometer EV3479A Quick Start Guide and Demo 8 FABRICATION PRINT NOTE: All dimensions are in millimeters. mCube Proprietary. APS-045-0034v1.0 18 / 20 © 2020 mCube Inc. All rights reserved.
  • Page 19: Revision History

    MC3479 3-Axis Accelerometer EV3479A Quick Start Guide and Demo 9 REVISION HISTORY Date Revision Description 2020-02-05 APS-045-0034v1.0 First release. mCube Proprietary. APS-045-0034v1.0 19 / 20 © 2020 mCube Inc. All rights reserved.
  • Page 20: 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. 2020. All rights reserved. mCube Proprietary. APS-045-0034v1.0 20 / 20 © 2020 mCube Inc. All rights reserved.
  • Page 21 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: mCube EV3479A...

This manual is also suitable for:

Ev3479a

Table of Contents