Mcube MC3672 Quick Start Manuals page 10

Accelerometer driver
Table of Contents

Advertisement

MC3672 Accelerometer Driver
Now open the serial terminal window at 115,200 baud rate speed to begin the test.
You will see the output from the serial terminal showing the current range scale and resolution
of the sensor in the first three lines followed by two lines of output sensor data at some output
data rate which depict "raw count" data for line 1: X: 6 Y: -2 Z: 1016 with 8G range, 14bit ADC
resolution. Line 2 indicates the SI units for measuring acceleration as X: 0.06 m/s^2 Y: -0.02
m/s^2 Z: 9.73 m/s^2.
This demo also includes the example for FIFO and Sniff interrupt mode. Those could be
enable by modify the definition below. These two examples must be run separately.
#define ENABLE_FIFO_WAKEUP
#define ENABLE_SNIFF_SHAKE_WAKEUP
Default input pin for interrupt is pin 8 and default FIFO threshold is 3 samples. FIFO size could
be set to maximum 32 samples or just enable FIFO to FIFO_FULL mode.
#define INTERRUPT_PIN
#define FIFO_SIZE
mCube Proprietary.
© 2018 mCube Inc. All rights reserved.
1
0
8
3
APS-045-0017v1.2
Quick Start Guide and Demo
10 / 19

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Mcube MC3672

Table of Contents