sensorstudio real use cases - lightsaber (idc 2016)

23

Upload: herve-blanc

Post on 15-Apr-2017

191 views

Category:

Data & Analytics


0 download

TRANSCRIPT

Page 1: SensorStudio real use cases - Lightsaber (IDC 2016)
Page 3: SensorStudio real use cases - Lightsaber (IDC 2016)

Joke of the day

• We have built this for fun !

InvenSense FireFly ICM-30670

(Source http://starwars.wikia.com/wiki/File:Lightsaber-cutaway.jpg)

InvenSense Developers Conference 20163

Page 4: SensorStudio real use cases - Lightsaber (IDC 2016)

Seriously

• We have built this for fun !

InvenSense Developers Conference 20164

Page 5: SensorStudio real use cases - Lightsaber (IDC 2016)

Agenda

• Why

• What

• How: Hardware

• How: Software

• Demo

InvenSense Developers Conference 20165

Page 6: SensorStudio real use cases - Lightsaber (IDC 2016)

Why

• We had to test SensorStudio&FireFly programming

• We were looking for a “WOW factor” @ CES’2016(extending feature set from the existing toys)

InvenSense Developers Conference 20166

Page 7: SensorStudio real use cases - Lightsaber (IDC 2016)

What

• FireFly ICM-30670– Detects Shocks

– Detects Up/Down/Right/Left/Diagonals

– Computes Gesture’s power

• Arduino – Drives the Audio

(based on FireFly outputs)

• SensorStudio– Design/Debug/Demo

InvenSense Developers Conference 20167

Page 8: SensorStudio real use cases - Lightsaber (IDC 2016)

How: Hardware BOM

• SensorStudio ICM-30670 Dev Kit -https://www.invensense.com/products/motion-tracking/6-axis/firefly-development-kit/

• Arduino Zero - https://www.arduino.cc/en/Main/ArduinoBoardZero

• Adafruit Wave Shield - https://www.adafruit.com/products/94

• Lightsaber - https://www.amazon.com/Anakin-Change-Lightsaber-Discontinued-

manufacturer/dp/B00CFWWD7Y

InvenSense Developers Conference 20168

Page 9: SensorStudio real use cases - Lightsaber (IDC 2016)

How: Hardware Schematic

InvenSense Developers Conference 20169

Arduino Zero

Battery

Adafruit Wave Shield

SensorStudio ICM-30670 Dev Kit

SPI

Cortex

M0

FireFly ICM-30670

Page 10: SensorStudio real use cases - Lightsaber (IDC 2016)

How: Hardware Wave adaptations

• Adafruit Wave shield needed modifications

• We followed guide @ https://learn.adafruit.com/adafruit-wave-shield-

audio-shield-for-arduino/solder

InvenSense Developers Conference 201610

ICSP connector is misplaced and pinout does not

correspond to Arduino Zero

You have to glue a female connector at the right

place & wire it to the ISCP connector.

JP9.1 (A0) is wired to IC2.8 (DACA)

JP13.5 (MMC_CS) is wired to JP2.7 (D9)

Also, IC2 & JP13 are not mounted

Page 11: SensorStudio real use cases - Lightsaber (IDC 2016)

How: Hardware Hack

• Lightsaber toy came with basic motion detection

• We took this out

InvenSense Developers Conference 201611

Page 12: SensorStudio real use cases - Lightsaber (IDC 2016)

How: Mechanical hacks

• Create a flat surface

• Glue Arduino & Battery (need a lot of glue!)USB connectors need to be at the bottom

InvenSense Developers Conference 201612

Page 13: SensorStudio real use cases - Lightsaber (IDC 2016)

How: Software SensorStudio

• SensorStudio used to create algorithm (CustomSensor)

• Visualization of algorithm outputs

InvenSense Developers Conference 201613

Page 14: SensorStudio real use cases - Lightsaber (IDC 2016)

How: Software desktop run

• Lightsaber algorithm fusing Acc/Gyro/GRV

• Outputs: u8 u8 (Event Classifier, Power)

• 1 image per classification

• Power

InvenSense Developers Conference 201614

Page 15: SensorStudio real use cases - Lightsaber (IDC 2016)

How: Software - Shock Detection

• Principle : Accelerometer 2nd Derivative

InvenSense Developers Conference 201615

Page 16: SensorStudio real use cases - Lightsaber (IDC 2016)

How: Software – Swipes detection

• Principle : Gyro Norm on yaw/pitch axis > threshold

InvenSense Developers Conference 201616

Page 17: SensorStudio real use cases - Lightsaber (IDC 2016)

How: Software – Swipes direction

• Principle : 25 samples where Gyro Norm > threshold

InvenSense Developers Conference 201617

Page 18: SensorStudio real use cases - Lightsaber (IDC 2016)

How: Software – Gestures’ power

• Principle : – Gyro Norm on 25 samples during high speed motion

InvenSense Developers Conference 201618

Page 19: SensorStudio real use cases - Lightsaber (IDC 2016)

How: Software – Build/Flash FireFly

• Add the CustomSensor to FW Configuration

• Build

• Flash

• Embedded version runs

InvenSense Developers Conference 201619

Page 20: SensorStudio real use cases - Lightsaber (IDC 2016)

How: Software – Arduino init FireFly

• Load&start FireFly, get CustomSensor events

InvenSense Developers Conference 201620

Page 21: SensorStudio real use cases - Lightsaber (IDC 2016)

How: Software – Arduino ctrl Wave

• Make some noise

InvenSense Developers Conference 201621

Page 22: SensorStudio real use cases - Lightsaber (IDC 2016)

And now?

• SensorStudio 2.2 includes Lightsaber sample

• You can build your own– Purchase our Development Kits

– Download SensorStudio

• Use your creativity !

InvenSense Developers Conference 201622

Page 23: SensorStudio real use cases - Lightsaber (IDC 2016)

Thank You