Project 7: Accelerometer - Eckstein komponente Keyestudio 4WD Mecanum Robot Car Manual

Table of Contents

Advertisement

Project 7: Accelerometer

(1)Project Description
The micro:bit board has a built-in Freescale MMA8653FC three-axis
acceleration sensor (accelerometer). Its I2C interface works on external
communication, the range can be set to ±2g, ±4g, and ±8g, and the
maximum data update rate can reach 800Hz.
When the Micro:bit is stationary or moving at a constant speed, the
accelerometer only detects the gravitational acceleration; when the
Micro:bit is slightly shaken, the acceleration detected is much smaller than
the gravitational acceleration and can be ignored. Therefore, in the process
of using Micro:bit, the main purpose is to detect the changes of the
gravitational acceleration on the x, y, and z axes when the attitude
changes.
For this project, we will introduce the detection of several special postures
by the accelerometer.
(2)Experimental Preparation:
➢ Connect micro:bit to computer with the USB cable
➢ Open online Makecode editor
142

Advertisement

Table of Contents
loading

Table of Contents