|
META TOPICPARENT |
name="TinyML" |
The Magic Wand Example
Introduction |
| The magic wand example shows how to detect gestures using an accelerometer. Different types of accelerometers are easily available: |
|
< < |
- The MPU9250 is very similar to he MPU6050 but has a magnetometer in addition. Here is its data sheet and the register map. The MPU92/66 has the necessary pins to be accessed either through I2C or SPI.
|
> > |
- The MPU9250 is very similar to he MPU6050 but has a magnetometer in addition. Here is its data sheet and the register map. The MPU9250/6500 has the necessary pins to be accessed either through I2C or SPI.
Attention: I bought an "MPU9250" board marked MPU92.65 with a chip marked MP92. This chip is either only a MPU6500 or it is faulty. It is probably a fake. I never managed to access the AK8963 magnetometer, which is part of a real MPU9250.
|
| The MPU6050 and the MPU9250 gave hardware offset registers which allow calibrating the device. When the device is horizontally mounted and stationary (not moving) we expect the values:
- 0,0,1g for the measured acceleration in x, y and z, z pointing in the direction of gravity.
- and 0,0,0 for the gyroscope
|