sensorstudio - invensense.tdk.com€¦ · •bring a “wow factor” @ idc’2016 •inspire you...

27

Upload: others

Post on 31-Jul-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670
Page 2: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

SensorStudioWith ICM-30670

Page 3: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

Joke of the day

• Wondering how we created a PingPong demo?

(Source http://joyreactor.com/post/742846 )

InvenSense Developers Conference 20163

Page 4: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

Foreword

• “And we’ve analyzed over 700 swimmers, different body types, different abilities. We hooked them up to state-of-the-art metabolic equipment. We’ve even drawn blood samples to look at lactic acid levels and we used all this body of information to create an algorithm that will give you the most accurate calorie burn information while you’re swimming. ”

InvenSense Developers Conference 20164

Source http://www.apple.com/newsroom/2016/09/apple-introduces-apple-watch-series-2.html

Source http://www.singjupost.com/apple-iphone-7-keynote-september-2016-launch-event-full-transcript/4/

Page 5: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

Agenda

• Why

• What

• How: Hardware

• How: Software

• Demo

InvenSense Developers Conference 20165

Page 6: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

Why

• Bring a “WOW factor” @ IDC’2016

• Inspire you to create great sport applications

Using SensorStudio & ICM-30670 Dev Kit

InvenSense Developers Conference 20166

Page 7: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

What

• Piezzo+ADC– Raw signals (used for ball impact)

• FireFly ICM-30670– Fusion Piezzo & IMU

– Ball impact detection

• SensorStudio– Design/Debug/Demo

InvenSense Developers Conference 20167

Page 8: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

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 ADC - https://www.adafruit.com/products/1083

• Piezzo - https://www.arrow.com/en/products/7bb-12-9/murata-manufacturing

InvenSense Developers Conference 20168

Page 9: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

How: Hardware Schematic

InvenSense Developers Conference 20169

Arduino Zero

Battery

Adafruit ADC

SPI

Cortex M0

I2CPower

SensorStudio ICM-30670 Dev Kit

FireFly ICM-30670

Page 10: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

How: Hardware DevKit adaptations

• Connect ICM-30670 DevKit to ADC – Power, I2C

• Use double sided foam strip with

adhesives on both sides

InvenSense Developers Conference 201610

Page 11: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

How: Hardware Racket adaptations

• Cut & glue the Piezzo buzzer on the racket– Conserve ability to respond to applied mechanical stress

• Connect ADC to Piezzo– Make it easy to plug in/out

InvenSense Developers Conference 201611

Page 12: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

How: Humanoid hack

• Got to pay the price, so science can advance! – Elastic band strap with velcro is your friend

• Connect– Piezzo to ADC

– Arduino zero to PC (tie the cable to your body)

InvenSense Developers Conference 201612

Page 13: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

How: Software SensorStudio

• SensorStudio used to create Piezzo/ADC driver (AuxiliarySensor)

• SensorStudio used to create algorithm (CustomSensor)

• Visualization of sensors & algorithm outputs

InvenSense Developers Conference 201613

Page 14: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

Reference: Add a driver

• Task & notify pattern to produce sensor data

InvenSense Developers Conference 201614

Page 15: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

How: Software Piezzo/ADC driver

• Configure the I2C

• Initialize ADC, set its range to 256mV

• Starts the acquisition task– notify sensor hub of the new piezo data

InvenSense Developers Conference 201615

Page 16: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

How: Software low level driver

• All come down to read/write on I2C

InvenSense Developers Conference 201616

Page 17: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

How: Software desktop run

• Ball impact detection algorithm need ADC/Piezzo driver

• Build & Flash

• Outputs: int16 (Shot)

InvenSense Developers Conference 201617

Page 18: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

Reference: Add an algorithm

• notify & subscribe pattern to consume/produce sensor data

InvenSense Developers Conference 201618

Page 19: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

How: Software ball impact detection

• Principle: Simple Piezzo threshold over time

InvenSense Developers Conference 201619

Page 20: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

How: Software helper

• Principle: Rotate gyro to hearth reference frame

InvenSense Developers Conference 201620

Page 21: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

How: Software Fore/Back hand detection

• Principle: Rotation sign around gravity vector

InvenSense Developers Conference 201621

Page 22: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

How: Software embedded run

• Build & Flash Shot Classification algorithm

• Outputs: int[3] (Stroke number, Power, Effect)

InvenSense Developers Conference 201622

Page 23: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

How: Software test

• You can observe all the algorithm ouputs

InvenSense Developers Conference 201623

Page 24: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

How: Software – Arduino init FireFly

• Load&start FireFly

InvenSense Developers Conference 201624

Page 25: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

How: Software – Arduino sensor event

• Get Ping Pong data from FireFly ICM-30670

InvenSense Developers Conference 201625

Page 26: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

And now?

• Will try to include Ping Pong in SensorStudio 2.3

• You can build your own– Purchase our Development Kits

– Download SensorStudio

• Use your creativity !

InvenSense Developers Conference 201626

Page 27: SensorStudio - invensense.tdk.com€¦ · •Bring a “WOW factor” @ IDC’2016 •Inspire you to create great sport applications ... SensorStudio ICM-30670 Dev Kit FireFly ICM-30670

Thank You