background image

MC3635 3-Axis Accelerometer 

 

EV3635B Quick Start Guide and Demo 

mCube Proprietary. 

APS-045-0018v1.2

 

12 / 20

 

©  2020 mCube Inc. All rights reserved. 

 

 

4  LIBRARY REFERENCE 

4.1  CREATE MCUBE_MC36XX OBJECT 

You can create the MCUBE_MC36XX object with: 

MC36XX MC36XX_acc = MC36XX();                                                         

4.2  INITIALIZE AND CONFIGURE SENSOR 

Initialize and configure the sensor with: 

MC36XX_acc.start(); 

Wake up sensor with your own configuration, it will follow the factory default setting: 

MC36XX_acc.wake(); 

Stop sensor to change setting: 

MC36XX_acc.stop(); 

Set sensor as sniff mode: 

MC36XX_acc.sniff (); 

4.3  SET RANGE 

Set the accelerometer max range to ±2g, ±4g, ±8g or ±16g with: 

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. 

4.5  SET RESOLUTION 

 Set the accelerometer resolution to 6, 7, 8, 10, 12 or 14 bit.  

MC36XX_acc.SetResolutionCtrl(MC36XX_RESOLUTION_14BIT);                                  

When the FIFO is enabled, the output of the FIFO is mapped to registers 0x02 to 0x07, 

and the data has a maximum resolution of 12-bits

.

  

 

Summary of Contents for MC3635

Page 1: ...tion 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 c...

Page 2: ...Load the Demo 10 4 Library Reference 12 4 1 Create mCube_MC36XX Object 12 4 2 Initialize and Configure Sensor 12 4 3 Set Range 12 4 4 Read Range 12 4 5 Set Resolution 12 4 6 Read Resolution 13 4 7 Se...

Page 3: ...C3635 Evaluation Board Quick Start Guide and Demo mCube Proprietary APS 045 0018v1 2 3 20 2020 mCube Inc All rights reserved 7 Bill of Materials 17 8 Fabrication Print 18 9 Revision History 19 10 Lega...

Page 4: ...n 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 be...

Page 5: ...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 6: ...o the 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...

Page 7: ...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 8: ...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 9: ...r Accelerometer_MC36XX and check that the Accelerometer_MC3635 folder contains MC36XX cpp and MC36XX h If you need the sensor running on SPI please configure the bus as SPI in the MC36XX h shown as be...

Page 10: ...Cube Proprietary APS 045 0018v1 2 10 20 2020 mCube Inc All rights reserved 3 2 LOAD THE DEMO Open up File Examples MC36XX MC36XX_demo and upload to your Arduino wired up to the sensor Now open the ser...

Page 11: ...18 Y 24 Z 1015 with 8G range 14bit ADC resolution Line 2 indicates the SI units for measuring acceleration as X 0 17 m s 2 Y 0 23 m s 2 Z 9 72 m s 2 This demo also includes the example for FIFO and Sn...

Page 12: ...factory default setting MC36XX_acc wake Stop sensor to change setting MC36XX_acc stop Set sensor as sniff mode MC36XX_acc sniff 4 3 SET RANGE Set the accelerometer max range to 2g 4g 8g or 16g with MC...

Page 13: ...SET SNIFF SAMPLING RATE Set the accelerometer sniff mode sampling rate with MC36XX_acc SetSniffSampleRate MC36XX_SNIFF_SR_DEFAULT_7Hz 4 10 READ SNIFF SAMPLING RATE Read the current sniff sampling rat...

Page 14: ...ags when generating a SNIFF wakeup interrupt Configure sniff delta mode with MC36XX_acc SetSniffDeltaMode MC36XX_DELTA_MODE_C2P C2P mode The current sample and the immediate previous sample are subtra...

Page 15: ...Inc All rights reserved 5 DOWNLOADS 5 1 MC3635 ACCELEROMETER DATASHEET AND QUICK START GUIDE https mcubemems com product mc3635 3 axis accelerometer 5 2 MC36XX 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 no...

Page 17: ...R1 100K RES 0603 1 100 Walsin WR06X104JTL Yes TOP 4 R2 10K RES 0603 1 0 Walsin WR06X102JTL No TOP 5 R3 10K RES 0603 1 100 Walsin WR06X103JTL Yes TOP 6 R4 4 7K RES 0603 1 0 Walsin WR06X472JTL No TOP 7...

Page 18: ...MC3635 3 Axis Accelerometer EV3635B Quick Start Guide and Demo mCube Proprietary APS 045 0018v1 2 18 20 2020 mCube Inc All rights reserved 8 FABRICATION PRINT NOTE All dimensions are in millimeters...

Page 19: ...eserved 9 REVISION HISTORY Date Revision Description 2016 08 APS 045 0018v1 0 First release 2018 11 APS 045 0018v1 1 Added SPI interface Revised schematics and BOM 2020 02 05 APS 045 0018v1 2 Revised...

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...

Reviews: