MC3419 3-Axis Accelerometer
EV3419A Quick Start Guide and Demo
mCube Proprietary.
APS-045-0033v1.0
2 / 20
© 2020 mCube Inc. All rights reserved.
TABLE OF CONTENTS
1
General Operation ........................................................................................................... 3
1.1
Pinouts ................................................................................................................................. 3
1.2
Power Pins ........................................................................................................................... 3
1.3
I2C Pins ............................................................................................................................... 4
1.4
SPI Pins ............................................................................................................................... 5
1.5
Interrupt Pins ........................................................................................................................ 5
2
Assembly and Test .......................................................................................................... 6
2.1
I2C Interface ........................................................................................................................ 6
2.2
SPI Interface ........................................................................................................................ 7
3
Demo ............................................................................................................................... 8
3.1
Download the Driver from GitHub ......................................................................................... 8
3.2
Load the Demo .................................................................................................................... 9
4
Library Reference .......................................................................................................... 12
4.1
Create MCUBE_MC34X9 Object ....................................................................................... 12
4.2
Initialize and Configure Sensor ........................................................................................... 12
4.3
Set Range .......................................................................................................................... 12
4.4
Read Range ....................................................................................................................... 12
4.5
Set Sampling Rate ............................................................................................................. 12
4.6
Read Sampling Rate .......................................................................................................... 13
4.7
Config Motion Feature ........................................................................................................ 13
4.8
Config Interrupt Mode ........................................................................................................ 13
4.9
Read Raw Count Data ....................................................................................................... 14
5
Downloads ..................................................................................................................... 15
5.1
MC3419 Accelerometer Datasheet and Quick Start Guide ................................................. 15
5.2
MC34X9 Driver at GitHub ................................................................................................... 15
5.3
All Other mCube Documentation ........................................................................................ 15
6
Schematics .................................................................................................................... 16
7
Bill of Materials .............................................................................................................. 17
8
Fabrication Print ............................................................................................................. 18
9
Revision History ............................................................................................................. 19
10
Legal .............................................................................................................................. 20
Page 1: ...rom 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...
Page 2: ...Driver from GitHub 8 3 2 Load the Demo 9 4 Library Reference 12 4 1 Create MCUBE_MC34X9 Object 12 4 2 Initialize and Configure Sensor 12 4 3 Set Range 12 4 4 Read Range 12 4 5 Set Sampling Rate 12 4...
Page 3: ...ion an Arduino DUE is used to illustrate on how to test the evaluation board with a microcontroller Please be advised that if an Arduino UNO is used instead hardware modification on Arduino UNO MUST b...
Page 4: ...our microcontroller s I2C data line R4 R5 If using I2C and I2C pull up resistors are needed for your application then install 4 7K resistors into R4 SCL clock pin and R5 SDA data pin which are not ins...
Page 5: ...e pin where the clock pulses synchronize data transmission generated by the master Connect SDO to the pin where the Slave sends data to the master Master Input Slave Output Connect SDA to the pin wher...
Page 6: ...e shows a typical Arduino DUE platform For other microcontrollers be sure it has I2C with repeated start support then port the code Please refer to the illustration below to connect the related pins C...
Page 7: ...the illustration below for connecting the related pins and then port the code to get the raw X Y Z sensor data Connect DVDD to the power supply 3 3V WARNING attempting to power the part at a voltage...
Page 8: ...Hub 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 consisti...
Page 9: ...nsor If you need the sensor running on SPI please configure the bus as SPI in the MC34X9_demo ino shown as below Otherwise the default is I2C bus bSpi I2C SPI bus selection SPI 0 I2C 1 const uint8_t b...
Page 10: ...data at some output data rate which depict raw count data for line 1 X 174 Y 21 Z 4074 with 8G range 16bit ADC resolution Line 2 indicates the SI units for measuring acceleration as X 0 42 m s 2 Y 0...
Page 11: ...enabled by the configurations below Enable individual motion mode will also enable corresponding interrupt These modes can only be enabled separately Motion control Enabling motion feature below also...
Page 12: ...MC34X9_acc start bSpi chipSelect Wake up sensor with your own configuration it will follow the factory default setting MC34X9_acc wake Stop sensor to change setting MC34X9_acc stop 4 3 SET RANGE Set...
Page 13: ...bCfgFTThr 100 define s_bCfgFTDebounce 50 Set the threshold and debounce value used by the any motion logic for activity detection define s_bCfgANYMThr 200 define s_bCfgANYMDebounce 100 Set the thresho...
Page 14: ...rved Configure the motion interrupt mode with MC34X9_acc SetINTCtrl enableTILT enableFLIP enableANYM enableSHAKE enableTILT_35 MC34X9 has 5 motion interrupt modes TILT FILP ANYM SHAKE TILT35 These mod...
Page 15: ...Inc All rights reserved 5 DOWNLOADS 5 1 MC3419 ACCELEROMETER DATASHEET AND QUICK START GUIDE https mcubemems com product mc3419 3 axis accelerometer 5 2 MC34X9 DRIVER AT GITHUB https github com mcube...
Page 16: ...0x4C Factory default 100K DNI1 10K SPI or I2C 0x6C 100K 10K DNI R4 R5 Install 4 7K as the I2C pull ups if using I2C mode and there is no I2C pull ups installed DNI by default Note It is recommended n...
Page 17: ...A Yes 3 R1 100K RES 0603 Walsin WR06X103JTL Yes 4 R3 10K RES 0603 Walsin WR06X102JTL Yes 5 R7 0R RES 0603 Walsin WR06X000PTL Yes 6 U1 MC3419 LGA 12_2 0 x 2 0 mCube MC3419 Yes 7 R2 10K RES 0603 Walsin...
Page 18: ...MC3419 3 Axis Accelerometer EV3419A Quick Start Guide and Demo mCube Proprietary APS 045 0033v1 0 18 20 2020 mCube Inc All rights reserved 8 FABRICATION PRINT NOTE All dimensions are in millimeters...
Page 19: ...Accelerometer EV3419A Quick Start Guide and Demo mCube Proprietary APS 045 0033v1 0 19 20 2020 mCube Inc All rights reserved 9 REVISION HISTORY Date Revision Description 2020 02 05 APS 045 0033v1 0 F...
Page 20: ...third party regarding infringement of any intellectual property rights including the patent copyright trademark or trade secret rights of any third party relating to any combination machine or process...