Mcube EV3672A Manuale utente

The MC3672 Evaluation Board Quick Start Guide and Demo
mCube Proprietary. APS-045-0017v1.51 / 21
© 2020 mCube Inc. All rights reserved.
GENERAL DESCRIPTION
The MC3672 is an ultra-low power, low-
noise, integrated digital output 3-axis
accelerometer with a feature set optimized
for wearables and consumer product
motion sensing. Applications include
wearable consumer products, IoT devices,
user interface control, gaming motion input,
electronic compass tilt compensation for
cell phones, game controllers, remote
controls and portable media products.
The EV3672A/B is a prebuilt circuit board
with MC3672 WLCSP 3-axes sensor. The
MC3672 has internal sample rate from 14 to
1300 samples / second and measures
acceleration with a wide usage range, from
+/-2g up to +/-16g, and 6-bit to 14-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 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
clock and data pin respectively. Download
the MC3672 library from GitHub onto the
board, run the example sketch, and then
sensor data shortly comes out in raw data
count and SI unit accelerometer
measurements. An easy-to-use
demonstration on EV3672A/B using the
Arduino platform is included in this
document.
MC3672 FEATURES
Range, Sampling & Power
•±2, 4, 8, 12 or 16g ranges
•8, 10 or 12-bit resolution with FIFO
o14-bit single samples
•Sample rate 14 - 1300 samples/sec
•Sample trigger via internal
oscillator, clock pin or software
command
•Sniff and Wake modes
•0.4 μA Sniff current @ 6Hz
•Separate or combined sniff/wake
•Ultra-Low Power with 32 sample
FIFO
o0.9 μA typical current @ 25Hz
o1.6 μA typical current @ 50Hz
o2.8 μA typical current @ 100Hz
o36 μA typical current @ 1300Hz
Simple System Integration
•I2C interface, up to 1 MHz
•SPI Interface, up to 8 MHz
•1.29 × 1.09 × 0.742 mm 8-pin
WLCSP package
•Single-chip 3D silicon MEMS
•Low noise to 2.3mg RMS

The MC3672 Evaluation Board Quick Start Guide and Demo
mCube Proprietary. APS-045-0017v1.52 / 21
© 2020 mCube Inc. All rights reserved.
TABLE OF CONTENTS
1General Operation ........................................................................................................... 4
1.1 Pinouts................................................................................................................................. 4
1.2 Power Pins........................................................................................................................... 4
1.3 I2C Pins............................................................................................................................... 5
1.4 SPI Pins............................................................................................................................... 6
1.5 Interrupt Pins........................................................................................................................ 6
2Assembly and Test.......................................................................................................... 7
2.1 I2C Interface ........................................................................................................................ 7
2.2 SPI Interface........................................................................................................................ 8
3Demo............................................................................................................................... 9
3.1 Download the Driver from GitHub......................................................................................... 9
3.2 Load the Demo .................................................................................................................. 10
4Library 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 Set CWake Sampling Rate................................................................................................. 13
4.8 Read CWake Sampling Rate.............................................................................................. 13
4.9 Set Sniff Sampling Rate..................................................................................................... 13
4.10 Read Sniff Sampling Rate.................................................................................................. 13
4.11 Config Sniff Mode............................................................................................................... 13
4.12 Config Interrupt Mode ........................................................................................................ 14
4.13 Read Raw Count Data ....................................................................................................... 14
5Downloads..................................................................................................................... 15
5.1 MC3672 Accelerometer Datasheet and Quick Start Guide................................................. 15
5.2 MC36XX Driver at GitHub .................................................................................................. 15
5.3 All Other mCube Documentation........................................................................................ 15
6Schematics.................................................................................................................... 16

The MC3672 Evaluation Board Quick Start Guide and Demo
mCube Proprietary. APS-045-0017v1.53 / 21
© 2020 mCube Inc. All rights reserved.
7Bill of Materials .............................................................................................................. 18
8Fabrication Print............................................................................................................. 19
9Revision History............................................................................................................. 20
10 Legal.............................................................................................................................. 21

MC3672 3-Axis Accelerometer EV3672A/B Quick Start Guide and Demo
mCube Proprietary. APS-045-0017v1.54 / 21
© 2020 mCube Inc. All rights reserved.
1 GENERAL OPERATION
1.1 PINOUTS
1.2 POWER PINS
•DVDD –3.3V Power Supply Input
•GND –Ground Pin for Power and Logic
•R7: The current drawn the sensor can be measured by putting an ammeter in
place of R7.
•In the following demonstration, 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 made for it to output at 3.3V. (WARNING: attempting to
power the part at 5V is likely to damage it.)
By default, Arduino UNO operates at 5V, which is higher than the maximum
voltage rating for the evaluation board. Please refer to an excellent tutorial on
modifying Arduino UNO to output at 3.3V:
https://learn.adafruit.com/arduino-tips-tricks-and-techniques/3-3v-conversion

MC3672 3-Axis Accelerometer EV3672A/B Quick Start Guide and Demo
mCube Proprietary. APS-045-0017v1.55 / 21
© 2020 mCube Inc. All rights reserved.
1.3 I2C PINS
•Connect the SCL (I2C clock pin) to your microcontroller’s I2C clock line.
•Connect the SDA (I2C data pin) to your 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
installed by factory default. In addition, besides soldering resisters on R4/R5, you can add
axial lead 4.7K ohm resistors to the SDA and SCL pin respectively. It will work the same
either way.
NOTE: DO NOT install more than one setup pull-up resistors per I2C bus.

MC3672 3-Axis Accelerometer EV3672A/B Quick Start Guide and Demo
mCube Proprietary. APS-045-0017v1.56 / 21
© 2020 mCube Inc. All rights reserved.
1.4 SPI PINS
With an SPI connection, there is always one master device (usually a microcontroller)
which controls the peripheral devices. Typically, there are four wires commonly connected
to all the devices:
Connect the SCS (Slave Chip Select) to the pin on the device that the master can use to
enable and disable SPI cycles.
Connect the SCL (Serial Clock) to 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 where the Master sends data to the peripherals (Master Output,
Slave Input).
1.5 INTERRUPT PINS
INT - HW interrupt signal pin. This pin will be triggered by the device when data is ready
to read, or a motion event is detected by the accelerometer. (Not currently supported in
the library for the interrupt pin, so please check the datasheet for the I2C commands and
related registers).
R6: If using the sensor interrupt signal as open-drain, then install pull-up resistor ~4.7KΩ
into R6 (not installed by default).

MC3672 3-Axis Accelerometer EV3672A/B Quick Start Guide and Demo
mCube Proprietary. APS-045-0017v1.57 / 21
© 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 EV3672A/B 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 MC3672 has a default I2C address of 0x4C and it can be changed to 0x6C by tying
the SDO pin to VDD.

MC3672 3-Axis Accelerometer EV3672A/B Quick Start Guide and Demo
mCube Proprietary. APS-045-0017v1.58 / 21
© 2020 mCube Inc. All rights reserved.
2.2 SPI INTERFACE
The EV3672A/B evaluation board can be easily wired to any microcontroller. This example
shows a typical Arduino DUE platform. Please refer to 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 exceeds the maximum rating of 3.6V is likely to damage it.)
•Connect GND to common power/data ground.
•Connect SCL to ICSP-3 as Serial Clock.
•Connect SDO to ICSP-1 as Master Input, Slave Output.
•Connect SDA to ICSP-4 as Master Output, Slave Input.
•Connect SCS to digital I/O pin 10 as Slave Chip Select.

MC3672 3-Axis Accelerometer EV3672A/B Quick Start Guide and Demo
mCube Proprietary. APS-045-0017v1.59 / 21
© 2020 mCube Inc. All rights reserved.
3 DEMO
3.1 DOWNLOAD THE DRIVER FROM GITHUB
To begin reading sensor data, you will need to download the MC3672 Library from the
GitHub repository. Do this by visiting the GitHub repository and manually downloading or
simply click this button the attached URL to download the zip file.
https://github.com/mcubemems/Accelerometer_MC36XX
Rename the uncompressed folder Accelerometer_MC36XX and check that the
Accelerometer_MC36XX folder consisting of 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 below. Otherwise, the default is I2C bus.
//#define MC36XX_CFG_BUS_I2C
#define MC36XX_CFG_BUS_SPI
SPI could support 8MHz speed if high speed mode is enabled as below.
#define SPI_HS
Place the Accelerometer_MC36XX library folder to your
Arduino_sketch_folder/libraries/ folder.
You may need to create the library subfolder if it is your first library files. Then just restart
the IDE.
An excellent tutorial on Arduino library installation is located at:
http://learn.adafruit.com/adafruit-all-about-arduino-libraries-install-use

MC3672 3-Axis Accelerometer EV3672A/B Quick Start Guide and Demo
mCube Proprietary. APS-045-0017v1.510 / 21
© 2020 mCube Inc. All rights reserved.
3.2 LOAD THE DEMO
Open File->Examples->MC36XX-> MC36XX_demo and upload to your Arduino while it is
wired to the sensor.
Now open the serial terminal window at 115,200 baud rate speed to begin the test.
Questo manuale è adatto per i seguenti modelli
1
Indice
Altri manuali Mcube Scheda madre
Manuali Scheda madre popolari di altre marche

Telit Wireless Solutions
Telit Wireless Solutions SL869-3DR Manuale utente

Gigabyte
Gigabyte GA-9IVDT Manuale utente

Texas Instruments
Texas Instruments ADS8372EVM Manuale utente

Commell
Commell MS-C73 Manuale utente

IBT Technologies
IBT Technologies MB860 Manuale utente

Nvidia
Nvidia TEGRA DG-04927-001_V01 Manuale utente













