|
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 LIS2DH MEMS digital output motion sensor from ST Microelectronics is an ultra low power high performance 3 axis accelerometer.
Hardware |
|
XDA and XCL are foreseen to control an external I2C bus, These pins are currently not used. AD0 allows to modify the MPU6050 I2C address and is also not used. |
|
> > | The connections of the MPU92/63 are similar
MPU92/63 |
!WeMos |
GPIO |
I2C |
SPI |
Vcc |
5V |
|
|
|
GND |
GND |
|
|
|
SCL |
D5 |
GPIO 18 |
SCL |
SCK |
SDA |
D7 |
GPIO 23 |
SDA |
MOSI |
AD0 |
D6 |
GPIO 19 |
Alternate module address |
MISO |
INT |
D1 |
GPIO22 |
|
|
NCS |
D0 |
|
|
CS |
FSYNC |
GND |
|
|
|
|
| The ADXL345 is connected as follows:
|
|
META FILEATTACHMENT |
attachment="lis3dh.png" attr="" comment="" date="1644829697" name="lis3dh.png" path="lis3dh.png" size="182302" user="UliRaich" version="2" |
META FILEATTACHMENT |
attachment="mpu6050.png" attr="" comment="" date="1643973693" name="mpu6050.png" path="mpu6050.png" size="163386" user="UliRaich" version="3" |
META FILEATTACHMENT |
attachment="mpu6050assembly.png" attr="" comment="" date="1643973853" name="mpu6050assembly.png" path="mpu6050assembly.png" size="249044" user="UliRaich" version="2" |
|
|
> > |
META FILEATTACHMENT |
attachment="mpu9250.png" attr="" comment="" date="1652989731" name="mpu9250.png" path="mpu9250.png" size="172394" user="UliRaich" version="1" |
|