Difference: MagicWandOld (11 vs. 12)

Revision 122022-06-25 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="TinyML"

The Magic Wand Example

Introduction

Line: 6 to 6
 The magic wand example shows how to detect gestures using an accelerometer. Different types of accelerometers are easily available:
Changed:
<
<
  • 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.
    mpu9250.png
>
>
  • 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.
    mpu9250.png
 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
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback