Mcube EV3479A Скачать руководство пользователя страница 6

MC3479 3-Axis Accelerometer 

 

EV3479A Quick Start Guide and Demo 

mCube Proprietary. 

APS-045-0034v1.0

 

6 / 20 

©  2020 mCube Inc. All rights reserved. 

 

 

2  ASSEMBLY AND TEST 

Please note that the SPI and I2C interfaces cannot both be active at the same time as 
the clock (SCK) and data (SDA) are shared between the two protocols. 

2.1  I2C INTERFACE 

 

The EV3479A evaluation board can be easily wired to any microcontroller. This example 
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.

 

 

Connect 

DVDD 

to the power supply, 

3.3V

. (WARNING: attempting to power the part at 

a voltage exceeds the maximum rating of 3.6V is likely to damage it.) 

 

Connect 

GND 

to common power/data ground. 

 

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 

MC3479 

has a default I2C address of 0x4C and it can be changed to 0x6C by tying 

th

e SDO 

pin to VDD. 

Содержание EV3479A

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 15: ...Inc All rights reserved 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 mcube...

Страница 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...

Страница 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 MC3479 LGA 12_2 0 x 2 0 mCube MC3479 Yes 7 R2 10K RES 0603 Walsin...

Страница 18: ...MC3479 3 Axis Accelerometer EV3479A Quick Start Guide and Demo mCube Proprietary APS 045 0034v1 0 18 20 2020 mCube Inc All rights reserved 8 FABRICATION PRINT NOTE All dimensions are in millimeters...

Страница 19: ...Accelerometer EV3479A Quick Start Guide and Demo mCube Proprietary APS 045 0034v1 0 19 20 2020 mCube Inc All rights reserved 9 REVISION HISTORY Date Revision Description 2020 02 05 APS 045 0034v1 0 F...

Страница 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...

Страница 21: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information mCube EV3479A...

Отзывы: