Library Reference; Create Mcube_Mc3635 Object; Initialize And Configure Sensor; Set Range - Mcube MC3635 Quick Start Manual And Demo

3-axis accelerometer
Hide thumbs Also See for MC3635:
Table of Contents

Advertisement

MC3635 3-Axis Accelerometer

4 LIBRARY REFERENCE

4.1 CREATE MCUBE_MC3635 OBJECT

You can create the MCUBE_MC3635 object with:
MC3635 mc3635_acc = MC3635();

4.2 INITIALIZE AND CONFIGURE SENSOR

Initialize and configure the sensor with:
Mc3635_acc.start();

4.3 SET RANGE

Set the accelerometer max range to ±2g, ±4g, ±8g or ±16g with:
mc3635_acc.SetRangeCtrl(MC3635_RANGE_2G);
mc3635_acc.SetRangeCtrl(MC3635_RANGE_4G);
mc3635_acc.SetRangeCtrl(MC3635_RANGE_8G);
mc3635_acc.SetRangeCtrl(MC3635_RANGE_16G);

4.4 READ RANGE

Read the current range with:
mc3635_acc.GetRangeCtrl();
Returns: 0 for ±2g, | 1 for ±4g, | 2 for ±8g | 3 for ±16g.

4.5 READ RESOLUTION

Read the current resolution with:
mc3635_acc.GetResolutionCtrl();
Returns: 0 for 6-bit | 1 for 7-bit | 2 for 8-bit | 3 for 10-bit | 4 for 12-bit | 5 for 14-bit

4.6 READ RAW COUNT DATA

Read the raw count data and SI unit measurement with:
mc3635_acc.readRawAccel();
mCube Proprietary.
© 2018 mCube Inc. All rights reserved.
EV3635A Quick Start Guide and Demo
APS-045-0017v1.1
10 / 17

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents