From sensor data_to_android_and_back
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

From sensor data_to_android_and_back

on

  • 198 views

 

Statistics

Views

Total Views
198
Views on SlideShare
180
Embed Views
18

Actions

Likes
0
Downloads
0
Comments
0

1 Embed 18

http://de.droidcon.com 18

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

From sensor data_to_android_and_back Presentation Transcript

  • 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