SlideShare a Scribd company logo
1 of 39
Download to read offline
From Sensor Data To Android And Back
droidcon 2014
09.05.2014, Lars Gregori, msgGillardon AG
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
Lars Gregori
 Kommunikationselektroniker (Funktechnik)
 Informatik Fachrichtung Wirtschaft (FH)
 Softwaredeveloper (Java Enterprise, Android, CoC)
 Arduino, IOIO Board
2
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 3
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
Sensors
4
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
Sensors
 Mobile Phone Sensors
 External Sensors
5
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
Mobile Phone Sensors
 http://developer.android.com/guide/topics/sensors/sensors_overview.html
 Motion sensors
 Environmental sensors
 Position sensors
6
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
Mobile Phone Sensors
 http://developer.android.com/guide/topics/sensors/sensors_overview.html
 TYPE_ACCELEROMETER
 TYPE_AMBIENT_TEMPERATURE
 TYPE_GRAVITY
 TYPE_GYROSCOPE
 TYPE_LIGHT
 TYPE_LINEAR_ACCELERATION
 TYPE_MAGNETIC_FIELD
 TYPE_ORIENTATION
 TYPE_PRESSURE
 TYPE_PROXIMITY
 TYPE_RELATIVE_HUMIDITY
 TYPE_ROTATION_VECTOR
 TYPE_TEMPERATURE
7
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
External Sensors
8
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
External Sensors
9
WHY
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
External Sensors
10
WHY
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
External Sensors
11
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 12
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 13
Sensor Actuator
Android
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
Actuator
14
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 15
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 16
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 17
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 18
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 19
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 20
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 21
Sensor Actuator
Android
Logic
IOIO
Board
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 22
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 23
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
IOIO Board
 pronounced "yo-yo"
 https://github.com/ytai/ioio/wiki
 Host for Android and PC
 USB or Bluetooth
 ADB and OpenAccessory (ADK)
 high-level Java API (Android Apps)
 Digital Input/Output, PWM, Analog Input, I2C, SPI and UART
24
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 25
Sensor Actuator
Android
Business
Logic
IOIO
Board
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
Communication
 Android and IOIO Board
 USB or Bluetooth
 IOIO Board and Sensor
 direct
 wireless (e.g. 433 MHz transmitter / receiver)
 IOIO Board and Controller
 direct
 wireless (e.g. 433 MHz transmitter / receiver)
26
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 27
Sensor Actuator
Android
Business
Logic
IOIO
Board
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
IOIO Example
28
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
IOIO Example
29
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
NFC TagWriter by NXP
 com.nxp.nfc.tagwriter
30
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 31
Demo
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
Source Code
32
class Looper extends BaseIOIOLooper {
private PwmOutput ledGreen_;
private PwmOutput ledBlue_;
private PwmOutput ledRed_;
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
Source Code
33
@Override
protected void setup() {
uart_ = ioio_.openUart(RX_PIN, TX_PIN, BAUD, …
in_ = uart_.getInputStream();
out_ = uart_.getOutputStream();
ledRed_ = ioio_.openPwmOutput(5, 100);
ledGreen_ = ioio_.openPwmOutput(6, 100);
ledBlue_ = ioio_.openPwmOutput(7, 100);
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
Source Code
34
@Override
public void loop() {
ledRed_.setPulseWidth(red * 1);
ledGreen_.setPulseWidth(green * 3);
ledBlue_.setPulseWidth(blue * 5);
// reading SM130
int rx1 = in_.read();
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
SM130
35
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 36
Questions
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
 lars.gregori@gmail.com
 +LarsGregori
 @choas
37
Wir bedanken uns für Ihre Aufmerksamkeit!
msgGillardon AG
Robert-Bürkle-Str. 1
85737 Ismaning
> www.msg-gillardon.de
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
Credit
 Fonts
 Famirids http://www.dafont.com/famirids.font
 Petita http://www.dafont.com/petita.font
39

More Related Content

Similar to From sensor data_to_android_and_back

Extreme IoT Games
Extreme IoT GamesExtreme IoT Games
Extreme IoT GamesMike Kavis
 
IPage UMS, Singapore Started Operations in India
IPage UMS, Singapore Started Operations in India IPage UMS, Singapore Started Operations in India
IPage UMS, Singapore Started Operations in India Dev R
 
A Survey on Vehicle Tracking System using IoT
A Survey on Vehicle Tracking System using IoTA Survey on Vehicle Tracking System using IoT
A Survey on Vehicle Tracking System using IoTIRJET Journal
 
Multi-Channel App Approach & The Future of Multi-Channel
Multi-Channel App Approach & The Future of Multi-ChannelMulti-Channel App Approach & The Future of Multi-Channel
Multi-Channel App Approach & The Future of Multi-ChannelDipesh Mukerji
 
Trip Tracking System
Trip Tracking SystemTrip Tracking System
Trip Tracking SystemIRJET Journal
 
IoT Predictions for 2019 and Beyond: Data at the Heart of Your IoT Strategy
IoT Predictions for 2019 and Beyond: Data at the Heart of Your IoT StrategyIoT Predictions for 2019 and Beyond: Data at the Heart of Your IoT Strategy
IoT Predictions for 2019 and Beyond: Data at the Heart of Your IoT StrategyDataWorks Summit
 
Droidcon Italy 2014 on Train
Droidcon Italy 2014 on TrainDroidcon Italy 2014 on Train
Droidcon Italy 2014 on TrainGiuseppe Cerratti
 
The State of IoT
The State of IoTThe State of IoT
The State of IoTMike Kavis
 
IRJET - IoT based Smart Vehicle Alert System for Accident Prevention
IRJET -  	  IoT based Smart Vehicle Alert System for Accident PreventionIRJET -  	  IoT based Smart Vehicle Alert System for Accident Prevention
IRJET - IoT based Smart Vehicle Alert System for Accident PreventionIRJET Journal
 
IoTMeetupGuildford#2: The IoT Ecosystem - Justin Anderson (FlexEye)
IoTMeetupGuildford#2: The IoT Ecosystem - Justin Anderson (FlexEye)IoTMeetupGuildford#2: The IoT Ecosystem - Justin Anderson (FlexEye)
IoTMeetupGuildford#2: The IoT Ecosystem - Justin Anderson (FlexEye)MicheleNati
 
IRJET- Campus Navigation System Based on Mobile Augmented Reality
IRJET- Campus Navigation System Based on Mobile Augmented RealityIRJET- Campus Navigation System Based on Mobile Augmented Reality
IRJET- Campus Navigation System Based on Mobile Augmented RealityIRJET Journal
 
IRJET- GPS Tracker & Alcohol Detector with Engine Locking System using GSM
IRJET- GPS Tracker & Alcohol Detector with Engine Locking System using GSMIRJET- GPS Tracker & Alcohol Detector with Engine Locking System using GSM
IRJET- GPS Tracker & Alcohol Detector with Engine Locking System using GSMIRJET Journal
 
2013 14 ieee android titles - jpinfotech
2013 14 ieee android titles - jpinfotech2013 14 ieee android titles - jpinfotech
2013 14 ieee android titles - jpinfotechJPINFOTECH JAYAPRAKASH
 
GPS tracking app development Steps, Cost and Features for 2024.pdf
GPS tracking app development Steps, Cost and Features for 2024.pdfGPS tracking app development Steps, Cost and Features for 2024.pdf
GPS tracking app development Steps, Cost and Features for 2024.pdfJPLoft Solutions
 
DEF CON 27 - workshop - POLOTO - hacking the android apk
DEF CON 27 - workshop - POLOTO - hacking the android apkDEF CON 27 - workshop - POLOTO - hacking the android apk
DEF CON 27 - workshop - POLOTO - hacking the android apkFelipe Prado
 
Bart schouw en Hans Heerooms - internet of things of internet of thingymabob ...
Bart schouw en Hans Heerooms - internet of things of internet of thingymabob ...Bart schouw en Hans Heerooms - internet of things of internet of thingymabob ...
Bart schouw en Hans Heerooms - internet of things of internet of thingymabob ...Sogeti Nederland B.V.
 
Internet of things 14-dec2013
Internet of things 14-dec2013Internet of things 14-dec2013
Internet of things 14-dec2013Lounge47
 

Similar to From sensor data_to_android_and_back (20)

Extreme IoT Games
Extreme IoT GamesExtreme IoT Games
Extreme IoT Games
 
IPage UMS, Singapore Started Operations in India
IPage UMS, Singapore Started Operations in India IPage UMS, Singapore Started Operations in India
IPage UMS, Singapore Started Operations in India
 
A Survey on Vehicle Tracking System using IoT
A Survey on Vehicle Tracking System using IoTA Survey on Vehicle Tracking System using IoT
A Survey on Vehicle Tracking System using IoT
 
Multi-Channel App Approach & The Future of Multi-Channel
Multi-Channel App Approach & The Future of Multi-ChannelMulti-Channel App Approach & The Future of Multi-Channel
Multi-Channel App Approach & The Future of Multi-Channel
 
Trip Tracking System
Trip Tracking SystemTrip Tracking System
Trip Tracking System
 
IoT Predictions for 2019 and Beyond: Data at the Heart of Your IoT Strategy
IoT Predictions for 2019 and Beyond: Data at the Heart of Your IoT StrategyIoT Predictions for 2019 and Beyond: Data at the Heart of Your IoT Strategy
IoT Predictions for 2019 and Beyond: Data at the Heart of Your IoT Strategy
 
Droidcon Italy 2014 on Train
Droidcon Italy 2014 on TrainDroidcon Italy 2014 on Train
Droidcon Italy 2014 on Train
 
The State of IoT
The State of IoTThe State of IoT
The State of IoT
 
IRJET - IoT based Smart Vehicle Alert System for Accident Prevention
IRJET -  	  IoT based Smart Vehicle Alert System for Accident PreventionIRJET -  	  IoT based Smart Vehicle Alert System for Accident Prevention
IRJET - IoT based Smart Vehicle Alert System for Accident Prevention
 
IoTMeetupGuildford#2: The IoT Ecosystem - Justin Anderson (FlexEye)
IoTMeetupGuildford#2: The IoT Ecosystem - Justin Anderson (FlexEye)IoTMeetupGuildford#2: The IoT Ecosystem - Justin Anderson (FlexEye)
IoTMeetupGuildford#2: The IoT Ecosystem - Justin Anderson (FlexEye)
 
IRJET- Campus Navigation System Based on Mobile Augmented Reality
IRJET- Campus Navigation System Based on Mobile Augmented RealityIRJET- Campus Navigation System Based on Mobile Augmented Reality
IRJET- Campus Navigation System Based on Mobile Augmented Reality
 
Mobile Integration
Mobile IntegrationMobile Integration
Mobile Integration
 
IRJET- GPS Tracker & Alcohol Detector with Engine Locking System using GSM
IRJET- GPS Tracker & Alcohol Detector with Engine Locking System using GSMIRJET- GPS Tracker & Alcohol Detector with Engine Locking System using GSM
IRJET- GPS Tracker & Alcohol Detector with Engine Locking System using GSM
 
2013 14 ieee android titles - jpinfotech
2013 14 ieee android titles - jpinfotech2013 14 ieee android titles - jpinfotech
2013 14 ieee android titles - jpinfotech
 
android ieee projects 2013
android ieee projects 2013android ieee projects 2013
android ieee projects 2013
 
GPS tracking app development Steps, Cost and Features for 2024.pdf
GPS tracking app development Steps, Cost and Features for 2024.pdfGPS tracking app development Steps, Cost and Features for 2024.pdf
GPS tracking app development Steps, Cost and Features for 2024.pdf
 
[EVENT IOT] TRACKERANDO
[EVENT IOT] TRACKERANDO[EVENT IOT] TRACKERANDO
[EVENT IOT] TRACKERANDO
 
DEF CON 27 - workshop - POLOTO - hacking the android apk
DEF CON 27 - workshop - POLOTO - hacking the android apkDEF CON 27 - workshop - POLOTO - hacking the android apk
DEF CON 27 - workshop - POLOTO - hacking the android apk
 
Bart schouw en Hans Heerooms - internet of things of internet of thingymabob ...
Bart schouw en Hans Heerooms - internet of things of internet of thingymabob ...Bart schouw en Hans Heerooms - internet of things of internet of thingymabob ...
Bart schouw en Hans Heerooms - internet of things of internet of thingymabob ...
 
Internet of things 14-dec2013
Internet of things 14-dec2013Internet of things 14-dec2013
Internet of things 14-dec2013
 

More from Droidcon Berlin

Droidcon de 2014 google cast
Droidcon de 2014   google castDroidcon de 2014   google cast
Droidcon de 2014 google castDroidcon Berlin
 
Android programming -_pushing_the_limits
Android programming -_pushing_the_limitsAndroid programming -_pushing_the_limits
Android programming -_pushing_the_limitsDroidcon Berlin
 
Android industrial mobility
Android industrial mobility Android industrial mobility
Android industrial mobility Droidcon Berlin
 
new_age_graphics_android_x86
new_age_graphics_android_x86new_age_graphics_android_x86
new_age_graphics_android_x86Droidcon Berlin
 
Testing and Building Android
Testing and Building AndroidTesting and Building Android
Testing and Building AndroidDroidcon Berlin
 
Matchinguu droidcon presentation
Matchinguu droidcon presentationMatchinguu droidcon presentation
Matchinguu droidcon presentationDroidcon Berlin
 
Cgm life sdk_droidcon_2014_v3
Cgm life sdk_droidcon_2014_v3Cgm life sdk_droidcon_2014_v3
Cgm life sdk_droidcon_2014_v3Droidcon Berlin
 
The artofcalabash peterkrauss
The artofcalabash peterkraussThe artofcalabash peterkrauss
The artofcalabash peterkraussDroidcon Berlin
 
Raesch, gries droidcon 2014
Raesch, gries   droidcon 2014Raesch, gries   droidcon 2014
Raesch, gries droidcon 2014Droidcon Berlin
 
Android open gl2_droidcon_2014
Android open gl2_droidcon_2014Android open gl2_droidcon_2014
Android open gl2_droidcon_2014Droidcon Berlin
 
20140508 quantified self droidcon
20140508 quantified self droidcon20140508 quantified self droidcon
20140508 quantified self droidconDroidcon Berlin
 
Tuning android for low ram devices
Tuning android for low ram devicesTuning android for low ram devices
Tuning android for low ram devicesDroidcon Berlin
 
Froyo to kit kat two years developing & maintaining deliradio
Froyo to kit kat   two years developing & maintaining deliradioFroyo to kit kat   two years developing & maintaining deliradio
Froyo to kit kat two years developing & maintaining deliradioDroidcon Berlin
 
Droidcon2013 security genes_trendmicro
Droidcon2013 security genes_trendmicroDroidcon2013 security genes_trendmicro
Droidcon2013 security genes_trendmicroDroidcon Berlin
 
Droidcon2013 commercialsuccess rannenberg
Droidcon2013 commercialsuccess rannenbergDroidcon2013 commercialsuccess rannenberg
Droidcon2013 commercialsuccess rannenbergDroidcon Berlin
 

More from Droidcon Berlin (20)

Droidcon de 2014 google cast
Droidcon de 2014   google castDroidcon de 2014   google cast
Droidcon de 2014 google cast
 
Android programming -_pushing_the_limits
Android programming -_pushing_the_limitsAndroid programming -_pushing_the_limits
Android programming -_pushing_the_limits
 
crashing in style
crashing in stylecrashing in style
crashing in style
 
Raspberry Pi
Raspberry PiRaspberry Pi
Raspberry Pi
 
Android industrial mobility
Android industrial mobility Android industrial mobility
Android industrial mobility
 
Details matter in ux
Details matter in uxDetails matter in ux
Details matter in ux
 
droidparts
droidpartsdroidparts
droidparts
 
new_age_graphics_android_x86
new_age_graphics_android_x86new_age_graphics_android_x86
new_age_graphics_android_x86
 
5 tips of monetization
5 tips of monetization5 tips of monetization
5 tips of monetization
 
Testing and Building Android
Testing and Building AndroidTesting and Building Android
Testing and Building Android
 
Matchinguu droidcon presentation
Matchinguu droidcon presentationMatchinguu droidcon presentation
Matchinguu droidcon presentation
 
Cgm life sdk_droidcon_2014_v3
Cgm life sdk_droidcon_2014_v3Cgm life sdk_droidcon_2014_v3
Cgm life sdk_droidcon_2014_v3
 
The artofcalabash peterkrauss
The artofcalabash peterkraussThe artofcalabash peterkrauss
The artofcalabash peterkrauss
 
Raesch, gries droidcon 2014
Raesch, gries   droidcon 2014Raesch, gries   droidcon 2014
Raesch, gries droidcon 2014
 
Android open gl2_droidcon_2014
Android open gl2_droidcon_2014Android open gl2_droidcon_2014
Android open gl2_droidcon_2014
 
20140508 quantified self droidcon
20140508 quantified self droidcon20140508 quantified self droidcon
20140508 quantified self droidcon
 
Tuning android for low ram devices
Tuning android for low ram devicesTuning android for low ram devices
Tuning android for low ram devices
 
Froyo to kit kat two years developing & maintaining deliradio
Froyo to kit kat   two years developing & maintaining deliradioFroyo to kit kat   two years developing & maintaining deliradio
Froyo to kit kat two years developing & maintaining deliradio
 
Droidcon2013 security genes_trendmicro
Droidcon2013 security genes_trendmicroDroidcon2013 security genes_trendmicro
Droidcon2013 security genes_trendmicro
 
Droidcon2013 commercialsuccess rannenberg
Droidcon2013 commercialsuccess rannenbergDroidcon2013 commercialsuccess rannenberg
Droidcon2013 commercialsuccess rannenberg
 

Recently uploaded

Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Hyundai Motor Group
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 

From sensor data_to_android_and_back

  • 1. From Sensor Data To Android And Back droidcon 2014 09.05.2014, Lars Gregori, msgGillardon AG
  • 2. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 Lars Gregori  Kommunikationselektroniker (Funktechnik)  Informatik Fachrichtung Wirtschaft (FH)  Softwaredeveloper (Java Enterprise, Android, CoC)  Arduino, IOIO Board 2
  • 3. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 3
  • 4. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 Sensors 4
  • 5. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 Sensors  Mobile Phone Sensors  External Sensors 5
  • 6. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 Mobile Phone Sensors  http://developer.android.com/guide/topics/sensors/sensors_overview.html  Motion sensors  Environmental sensors  Position sensors 6
  • 7. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 Mobile Phone Sensors  http://developer.android.com/guide/topics/sensors/sensors_overview.html  TYPE_ACCELEROMETER  TYPE_AMBIENT_TEMPERATURE  TYPE_GRAVITY  TYPE_GYROSCOPE  TYPE_LIGHT  TYPE_LINEAR_ACCELERATION  TYPE_MAGNETIC_FIELD  TYPE_ORIENTATION  TYPE_PRESSURE  TYPE_PROXIMITY  TYPE_RELATIVE_HUMIDITY  TYPE_ROTATION_VECTOR  TYPE_TEMPERATURE 7
  • 8. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 External Sensors 8
  • 9. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 External Sensors 9 WHY
  • 10. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 External Sensors 10 WHY
  • 11. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 External Sensors 11
  • 12. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 12
  • 13. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 13 Sensor Actuator Android
  • 14. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 Actuator 14
  • 15. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 15
  • 16. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 16
  • 17. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 17
  • 18. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 18
  • 19. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 19
  • 20. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 20
  • 21. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 21 Sensor Actuator Android Logic IOIO Board
  • 22. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 22
  • 23. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 23
  • 24. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 IOIO Board  pronounced "yo-yo"  https://github.com/ytai/ioio/wiki  Host for Android and PC  USB or Bluetooth  ADB and OpenAccessory (ADK)  high-level Java API (Android Apps)  Digital Input/Output, PWM, Analog Input, I2C, SPI and UART 24
  • 25. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 25 Sensor Actuator Android Business Logic IOIO Board
  • 26. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 Communication  Android and IOIO Board  USB or Bluetooth  IOIO Board and Sensor  direct  wireless (e.g. 433 MHz transmitter / receiver)  IOIO Board and Controller  direct  wireless (e.g. 433 MHz transmitter / receiver) 26
  • 27. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 27 Sensor Actuator Android Business Logic IOIO Board
  • 28. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 IOIO Example 28
  • 29. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 IOIO Example 29
  • 30. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 NFC TagWriter by NXP  com.nxp.nfc.tagwriter 30
  • 31. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 31 Demo
  • 32. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 Source Code 32 class Looper extends BaseIOIOLooper { private PwmOutput ledGreen_; private PwmOutput ledBlue_; private PwmOutput ledRed_;
  • 33. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 Source Code 33 @Override protected void setup() { uart_ = ioio_.openUart(RX_PIN, TX_PIN, BAUD, … in_ = uart_.getInputStream(); out_ = uart_.getOutputStream(); ledRed_ = ioio_.openPwmOutput(5, 100); ledGreen_ = ioio_.openPwmOutput(6, 100); ledBlue_ = ioio_.openPwmOutput(7, 100);
  • 34. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 Source Code 34 @Override public void loop() { ledRed_.setPulseWidth(red * 1); ledGreen_.setPulseWidth(green * 3); ledBlue_.setPulseWidth(blue * 5); // reading SM130 int rx1 = in_.read();
  • 35. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 SM130 35
  • 36. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 36 Questions
  • 37. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014  lars.gregori@gmail.com  +LarsGregori  @choas 37
  • 38. Wir bedanken uns für Ihre Aufmerksamkeit! msgGillardon AG Robert-Bürkle-Str. 1 85737 Ismaning > www.msg-gillardon.de
  • 39. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 Credit  Fonts  Famirids http://www.dafont.com/famirids.font  Petita http://www.dafont.com/petita.font 39