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 ADXL345 is a tree axis digital accelerometer by Analog Devices
    adxl345.png
  • The MPU6050 is a six axis device (Gyro and Accelerometer) from Ivensense. It is described by it datasheet and the register description.
    mpu6050.png
  • The LIS2dH MEMS digital output motion sensor from ST Microelectronics is an ultra low power high performance 3 axis accelerometer.
I mounted the accelerometer onto a WeMos D1 prototype board. With the triple base and the CPU this makes up for a stable assemble that can easily be moved with cable contact problems.

mpu6050assembly.png

Providing a training data set

In order to provide a training data set we must be able to record gestures. Therefore a driver for the accelerometer is needed as well as a program that recognizes movement and writes the accelerometer data on a file.

-- Uli Raich - 2022-02-02

Comments

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng adxl345.png r1 manage 173.4 K 2022-02-04 - 11:08 UliRaich  
PNGpng lis3dh.png r1 manage 178.3 K 2022-02-04 - 11:08 UliRaich  
PNGpng mpu6050.png r3 r2 r1 manage 159.6 K 2022-02-04 - 11:21 UliRaich  
PNGpng mpu6050assembly.png r2 r1 manage 243.2 K 2022-02-04 - 11:24 UliRaich  
Edit | Attach | Watch | Print version | History: r12 | r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r3 - 2022-02-04 - UliRaich
 
  • Edit
  • Attach
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