E0-245: ASP. Lecture 16+17: Physical Sensors. Dipanjan Gope



Similar documents
Android Sensors. CPRE 388 Fall 2015 Iowa State University

Android Sensors. XI Jornadas SLCENT de Actualización Informática y Electrónica

Using the Android Sensor API

Sensors & Motion Sensors in Android platform. Minh H Dang CS286 Spring 2013

CS 403X Mobile and Ubiquitous Computing Lecture 6: Maps, Sensors, Widget Catalog and Presentations Emmanuel Agu

ANDROID APPS DEVELOPMENT FOR MOBILE AND TABLET DEVICE (LEVEL II)

Android Sensor Programming. Weihong Yu

! Sensors in Android devices. ! Motion sensors. ! Accelerometer. ! Gyroscope. ! Supports various sensor related tasks

Sensors. Marco Ronchetti Università degli Studi di Trento

jsug.at University of Technology Vienna October 25 th 2010 Android Sensors by Stefan Varga, Michal Kostic touchqode.com

Location and Sensors

Mobile applications can benefit from being location-aware This mean to allow application to determine and manipulate location For example:

Using Sensors on the Android Platform. Andreas Terzis Android N00b

Sensor Fusion Mobile Platform Challenges and Future Directions Jim Steele VP of Engineering, Sensor Platforms, Inc.

Module 1: Sensor Data Acquisition and Processing in Android

Developing Sensor Applications on Intel Atom Processor-Based Android* Phones and Tablets

Android Programming Lecture 18: Menus Sensors 11/11/2011

Android Sensors. Mobile Applica1ons Jay Urbain, Ph.D. Credits:

SENSORS ON ANDROID PHONES. Indian Institute of Technology Kanpur Commonwealth of Learning Vancouver

Fitness Motion Recognition

Sensors CS 4720 Web & Mobile Systems

Sensors and Cellphones

Programming Mobile Applications with Android

Android Concepts and Programming TUTORIAL 1

Android. Mobile Computing Design and Implementation. Application Components, Sensors. Peter Börjesson

Objective. Android Sensors. Sensor Manager Sensor Types Examples. Page 2

ELET4133: Embedded Systems. Topic 15 Sensors

Motion Sensing with mcube igyro Delivering New Experiences for Motion Gaming and Augmented Reality for Android Mobile Devices

Android. Learning Android Marko Gargenta. Tuesday, March 11, 14

Indoor Positioning using Sensor-fusion in Android Devices

Effective Use of Android Sensors Based on Visualization of Sensor Information

International Journal of Advanced Research in Computer Science and Software Engineering

( Modified from Original Source at )

Obsoleted chapter from The Busy Coder's Guide to Advanced Android Development

Designing An Android Sensor Subsystem Pitfalls and Considerations

App Development for Smart Devices. Lec #5: Android Sensors

Android. Lecture 1. Learning Android Marko Gargenta. Friday, March 22, 13

Robot Sensors. Outline. The Robot Structure. Robots and Sensors. Henrik I Christensen

Kathy Au Billy Yi Fan Zhou Department of Electrical and Computer Engineering University of Toronto { kathy.au, billy.zhou }@utoronto.

Pedometer Project 1 Mr. Michaud /

Charith Pereral, Arkady Zaslavsky, Peter Christen, Ali Salehi and Dimitrios Georgakopoulos (IEEE 2012) Presented By- Anusha Sekar

Modern Market Sensors in Smartphones: State-of-the-art How to make smartphones even more smarter? Conclusions

CSE476 Mobile Application Development. Yard. Doç. Dr. Tacha Serif Department of Computer Engineering Yeditepe University

Tracking devices. Important features. 6 Degrees of freedom. Mechanical devices. Types. Virtual Reality Technology and Programming

How to Convert 3-Axis Directions and Swap X-Y Axis of Accelerometer Data within Android Driver by: Gang Chen Field Applications Engineer

Smartphone-based sensor networks and some statistical challenges: the Earthquake Network Android application

ECE 455/555 Embedded System Design. Android Programming. Wei Gao. Fall

MPC 4. Machinery Protection Card Type MPC 4 FEATURES. Continuous on-line Machinery Protection Card

AN APPLYING OF ACCELEROMETER IN ANDROID PLATFORM FOR CONTROLLING WEIGHT

Human Performance Applications for MEMS and Sensors

PRODUCT DATASHEET. J1939 Vehicle Inertia Monitor. Advanced Vehicle Inertial Measurement and Vibration Monitoring Device. fleet-genius.

An Evaluation Study of Driver Profiling Fuzzy Algorithms using Smartphones

Android Development Tutorial. Nikhil Yadav CSE40816/ Pervasive Health Fall 2011

類 比 與 MEMS 感 測 器 啟 動 智 慧 新 生 活 The Smart-World Started with ST (Analog, MEMS and Sensors)

Android Framework. How to use and extend it

Android app development course

Mobile Fragmentation. FIA Aalborg, 10 May 2011 Philippe COUSIN WP2 Leader, ETSI Thanks to Cuihtlauac ALVARADO WP1 Leader, ORANGE

Using the Adafruit Unified Sensor Driver. Created by Kevin Townsend

STMicroelectronics is pleased to present the. SENSational. Attend a FREE One-Day Technical Seminar Near YOU!

}w!"#$%&'()+,-./012345<ya

Expert Android Apps Development

Graduate presentation for CSCI By Janakiram Vantipalli ( Janakiram.vantipalli@colorado.edu )

HP TouchPad Sensor Setup for Android

Lab 1 (Reading Sensors & The Android API) Week 3

Introduction to Android Programming. Khuong Vu, Graduate student Computer Science department

MEPTEC. Ecosystem for MCU, Sensors and MEMS for IoT Tony Massimini Chief of Technology Semico Research Corp. May 20, 2015

Investigating sensors support in a tablet

HUMAN COMPUTER INTERACTION FOR 3D MODEL VISUALIZATION USING SENSOR FUSION

Android Sensors This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. CC-BY Google

Research in Nanotechnologies and Sensing

A MOTION ACTIVITY MONITOR MONITOR POHYBOVÉ AKTIVITY

A DECISION TREE BASED PEDOMETER AND ITS IMPLEMENTATION ON THE ANDROID PLATFORM

The 8 th International Scientific Conference elearning and software for Education Bucharest, April 26-27, / X

Use It Free: Instantly Knowing Your Phone Attitude

AP Series Autopilot System. AP-202 Data Sheet. March,2015. Chengdu Jouav Automation Tech Co.,L.t.d

Tilt switches N3 / N4... MEMS technology, one or two axis. Use. Options. + long lifetime and highly reliability due to mechanism-free MEMS technology

THERMAL ANEMOMETRY ELECTRONICS, SOFTWARE AND ACCESSORIES

Internal Services. CSE 5236: Mobile Application Development Instructor: Adam C. Champion Course Coordinator: Dr. Rajiv Ramnath

Bioinstrumentation. Kuo-Sheng Cheng, Ph.D. Department of Biomedical Engineering National Cheng Kung University

Tegra Android Accelerometer Whitepaper

INTRODUCTION TO SENSORS AND ACTUATORS

Orientation Estimation using Smartphone Sensors

VIRTUAL REALITY GAME CONTROLLED WITH USER S HEAD AND BODY MOVEMENT DETECTION USING SMARTPHONE SENSORS

INTERMEDIATE ANDROID DEVELOPMENT Course Syllabus

T-SERIES INDUSTRIAL INCLINOMETER ANALOG INTERFACE

International Journal of Scientific & Engineering Research, Volume 4, Issue 8, August ISSN

Frequently Asked Questions (FAQs)

Quick Start Guide ActiGraph GT9X Link + ActiLife

SMART SENSOR COLLECTION

Engineers from Geodetics select KVH for versatile high-performance inertial sensors. White Paper. kvh.com

Capturing Sensor Data from Mobile Phones using Global Sensor Network Middleware

UNMANNED AERIAL VEHICLE (UAV) SAFETY SYSTEM USING ANDROID APP

Robot Perception Continued

Android in Action. Second Edition. Revised Edition of Unlocking Android MANNING. (74 w. long.) W. FRANK ABLESON CHRIS KING ROBI SEN.

ELDERLY SUPPORT - ANDROID APPLICATION FOR FALL DETECTION AND TRACKING TEJITHA RUDRARAJU. B.E, Anna University, India, 2011 A REPORT

MicroMag3 3-Axis Magnetic Sensor Module

ANDROID APPLICATION DEVELOPMENT FOR ENVIRONMENT MONITORING USING SMART PHONES

A smartphone based real-time daily activity monitoring system. Shumei Zhang Paul McCullagh Jing Zhang Tiezhong Yu

Performance issues in writing Android Apps

Android Geek Night. Application framework

Transcription:

E0-245: ASP Lecture 16+17: Physical Sensors

Module 2: Android Sensor Applications Location Sensors - Theory of location sensing - Package android.location Physical Sensors - Sensor Manager - Accelerometer - Gyroscope - Magnetometer - Sensor fusion Multimedia - Camera - Microphone NFC 2

Coverage Activity Views Intent ContentProvider BroadcastReceiver Service 3

References Greg Milette, Adam Stroud: Professional Android Sensor Programing, 2012, Wiley India 4

Popular Apps with Physical Sensors MAGNETOMETER APPS GYROSCOPE GAMING ACCELEROMETER FITNESS 5

Classification based on source of data 6

Raw Sensor Data http://developer.android.com/guide/topics/sensors/sensors_overview.html 7

Raw Sensor Data http://developer.android.com/guide/topics/sensors/sensors_overview.html 8

Synthetic Sensor Data http://developer.android.com/guide/topics/sensors/sensors_overview.html 9

Classification based on application 10

Physical Sensors Motion Position - Accelerometer - Gyroscope - Linear acceleration - Gravity - Magnetic field - Proximity - Rotation vector Environment - Light - Barometer - Ambient temperature - Relative humidity 11

Smart Watches Today https://www.google.co.in/url?sa=i&rct=j&q=&esrc=s&source=images&cd=&cad=rja &uact=8&ved=0cacqjrw&url=http%3a%2f%2fwww.slideshare.net%2fleybzon%2f apple-iwatch-android-wear-and-other-wristbased-sensor-platforms&ei=j- EQVe6sDNWdugS84oGwBg&psig=AFQjCNFwN3VY9DQjg7lYqPiWdZqxh0qR8A&ust=1 427255772724923 12

Sensor Hardware 13

Accelerometer F=mA MEMS Capacitive-based SIP https://www.youtube.com/watch?v=i2u49usfo10 http://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/dm00037200.pdf 14

Gyroscope F=-2m Ω x v MEMS Capacitive based SIP Ref: MEMS gyroscopes - A revolutionary way to interface with the real world, STMicroelectronics 15

Magnetic Field Lorentz Force Anonymous, 400BC http://en.wikipedia.org/wiki/hall_effect Asahi Kasei: AK8975C Others: Anisotropic Magneto Resistance 16

Android Sensor Data Structures 17

Class: SensorManager Sensor SensorEvent Android.hardware Interface: SensorEventListener 18

Package: Android.location Reads LocationProvider Requirements LocationManager Criteria Enables Notifies with location data LocationProvider LocationListener Produces Consumed Location Greg Milette, Adam Stroud: Professional Android Sensor Programing, 2012, Wiley India 19

Package: Android.hardware SensorManager Specifies Sensor SensorEventListener Event Values Produces Consumed SensorEvent 20

Manifest File <uses-feature android:name="android.hardware.sensor.accelerometer" android:required="true" /> <uses-feature android:name="android.hardware.sensor.compass" android:required="false" /> 21

Manifest File android.hardware.sensor.accelerometer android.hardware.sensor.gyroscope android.hardware.sensor.compass android.hardware.sensor.barometer android.hardware.sensor.light android.hardware.sensor.proximity 22

SensorManager private SensorManager sensormanager; sensormanager = (SensorManager) getsystemservice(sensor_service); List<Sensor> sensors = sensormanager.getsensorlist(sensor.type_****); Sensor = sensormanager.getdefaultsensor(sensor.type_***); 23

Maximum range Minimum delay Name Power Resolution Type Vendor Version Sensor Class 24

Accuracy - SENSOR_STATUS_ACCURACY_HIGH - SENSOR_STATUS_ACCURACY_MEDIUM - SENSOR_STATUS_ACCURACY_LOW - SENSOR_STATUS_ACCURACY_UNRELIABLE Sensor Timestamp Values SensorEvent 25

SensorEventListener onaccuracychanged - when the accuracy from the sensor changes onsensorchanged - when the values from the sensor changes 26

Sensor Data Reference http://developer.android.com/guide/topics/se nsors/sensors_overview.html 27

Lets Code 28

1. Determine Available Sensors 29

Building Block: Intent Move from one screen (activity) to another Can also open other applications 3 main: start an activity/service/broadcast Asynchronous Bound at run-time Explicit or implicit 30

Implicit Intent http://developer.android.com/guide/components/intents-filters.html 31

Primitive Passing Data: Extras 32

Passing Data: Application Persistent Objects 33

2. Determine Sensor Range and Resolution 34

Units Acceleration: m/s 2 Gyroscope: Deg/s or Rad/s Magnetic Field: ut Min Delay: us Power: ma 35

3. Define Sensor Rate SENSOR_DELAY_FASTEST SENSOR_DELAY_GAME SENSOR_DELAY_UI SENSOR_DELAY_NORMAL 0ms 20ms 67ms 200ms 36

Sensor Results Display 37

4. Register/Unregister SensorListeners 38

Signal Processing and Sensor Fusion 39

Accuracy and Precision Greg Milette, Adam Stroud: Professional Android Sensor Programing, 2012, Wiley India 40

Type of Error Noise Drift Accelerometer Drift Gyroscope Drift Paul Lawitski, Sensor fusion 41

Filtering Low-pass filter High-pass filter to filter noise in gravity Kalman filter - systems dynamic model and constraints 42

Sensor Fusion 43

Acceleration in Earth s axis 44

Coverage Activity Views Intent ContentProvider BroadcastReceiver Service 45