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
 Kommunikationselek...
© 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
 ...
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
Mobile Phone Sensors
 http://dev...
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
Mobile Phone Sensors
 http://dev...
© 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
...
© 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"
...
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 25
Sensor Actuator
Android
Busine...
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
Communication
 Android and IOIO ...
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 27
Sensor Actuator
Android
Busine...
© 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.nf...
© 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 exten...
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
Source Code
33
@Override
protecte...
© 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014
Source Code
34
@Override
public v...
© 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
 +LarsG...
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://...
Upcoming SlideShare
Loading in...5
×

From sensor data_to_android_and_back

245

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
245
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "From sensor data_to_android_and_back"

  1. 1. From Sensor Data To Android And Back droidcon 2014 09.05.2014, Lars Gregori, msgGillardon AG
  2. 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. 3. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 3
  4. 4. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 Sensors 4
  5. 5. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 Sensors  Mobile Phone Sensors  External Sensors 5
  6. 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. 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. 8. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 External Sensors 8
  9. 9. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 External Sensors 9 WHY
  10. 10. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 External Sensors 10 WHY
  11. 11. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 External Sensors 11
  12. 12. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 12
  13. 13. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 13 Sensor Actuator Android
  14. 14. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 Actuator 14
  15. 15. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 15
  16. 16. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 16
  17. 17. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 17
  18. 18. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 18
  19. 19. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 19
  20. 20. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 20
  21. 21. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 21 Sensor Actuator Android Logic IOIO Board
  22. 22. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 22
  23. 23. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 23
  24. 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. 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. 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. 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. 28. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 IOIO Example 28
  29. 29. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 IOIO Example 29
  30. 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. 31. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 31 Demo
  32. 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. 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. 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. 35. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 SM130 35
  36. 36. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014 36 Questions
  37. 37. © 2014 Lars Gregori, msgGillardon AG | From Sensor Data To Android And Back | 09.05.2014  lars.gregori@gmail.com  +LarsGregori  @choas 37
  38. 38. Wir bedanken uns für Ihre Aufmerksamkeit! msgGillardon AG Robert-Bürkle-Str. 1 85737 Ismaning > www.msg-gillardon.de
  39. 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
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×