Arduino & Android
Michał Tuszyński, iOS/Android Developer
twitter, github: @srgtuszy
Roadmap
1. Arduino primer
2. USB
3. NFC
4. WIFI
Arduino Primer

Arduino is an open source hardware
prototyping platform
Arduino Primer
What makes it special?
•

Easiness to use

•

Modularity

•

Awesome community support
Open Accessory Protocol

Google’s protocol for usb communication with
third party devices
Open Accessory Protocol

How does USB work?
Open Accessory Protocol
How does USB work?

•
•

Host
Slave
Open Accessory Protocol
How does USB work?
•

Host

- Is the power source
- Keeps track of connected devices
- Initiates t...
Open Accessory Protocol
How does USB work?
Open Accessory Protocol

Using your app with accessory
Open Accessory Protocol
Open Accessory Protocol
Open Accessory Protocol

Accessory Permissions
Open Accessory Protocol
Accessory Permissions
Open Accessory Protocol
The easy way

Raspberry Pi + powered usb hub + adb
Open Accessory Protocol
The easy way

adb shell
am start -a pl.myapp.action.DO_SOMETHING
Accessory Demo
NFC
NFC

Builds upon RFID system by allowing
two-way communication between endpoints
NFC
How does RFID work?

Energy

Reader

Data

Tag
NFC

NDEF
NFC
NFC

1. Tag reader/writer
2. P2P (Android Beam)
3. Card Emulation
NFC

Android Beam
NFC
Android Beam

•
•

Uses Bluetooth for file processing
On Samsung, it’s called S Beam
NFC
Card Emulation
NFC
Card Emulation

- With Secure Element
- Without Secure Element
NFC

Card Emulation
NFC
Card Emulation
HostApduService
NFC
Card Emulation
HostApduService
NFC
Card Emulation

Limitations
NFC
Card Emulation

Earlier versions?
NFC
Card Emulation

Secure Element
NFC
Card Emulation
NFC
Card Emulation
NFC

Tag dispatch system
NFC
NFC
NFC Demo
WIFI
WIFI

Arduino Yun
WIFI

Arduino Yun = arduino + OpenWrt
WIFI

Bridge
WIFI
Bridge
WIFI DEMO
Wrap Up
Thank You!
Michał Tuszyński, iOS/Android Developer
Twitter, Github: @srgtuszy
Upcoming SlideShare
Loading in...5
×

Connecting Arduino and Android

1,038

Published on

Arduino & Android presentation for GDG Android Tech Talks #5 in Kraków

Published in: Self Improvement
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,038
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
67
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Connecting Arduino and Android"

  1. 1. Arduino & Android Michał Tuszyński, iOS/Android Developer twitter, github: @srgtuszy
  2. 2. Roadmap 1. Arduino primer 2. USB 3. NFC 4. WIFI
  3. 3. Arduino Primer Arduino is an open source hardware prototyping platform
  4. 4. Arduino Primer What makes it special? • Easiness to use • Modularity • Awesome community support
  5. 5. Open Accessory Protocol Google’s protocol for usb communication with third party devices
  6. 6. Open Accessory Protocol How does USB work?
  7. 7. Open Accessory Protocol How does USB work? • • Host Slave
  8. 8. Open Accessory Protocol How does USB work? • Host - Is the power source - Keeps track of connected devices - Initiates the data transfer • Slave - Communicates with host via endpoints - Can draw power from host - Describes it’s protocols & capabilities to the host
  9. 9. Open Accessory Protocol How does USB work?
  10. 10. Open Accessory Protocol Using your app with accessory
  11. 11. Open Accessory Protocol
  12. 12. Open Accessory Protocol
  13. 13. Open Accessory Protocol Accessory Permissions
  14. 14. Open Accessory Protocol Accessory Permissions
  15. 15. Open Accessory Protocol The easy way Raspberry Pi + powered usb hub + adb
  16. 16. Open Accessory Protocol The easy way adb shell am start -a pl.myapp.action.DO_SOMETHING
  17. 17. Accessory Demo
  18. 18. NFC
  19. 19. NFC Builds upon RFID system by allowing two-way communication between endpoints
  20. 20. NFC How does RFID work? Energy Reader Data Tag
  21. 21. NFC NDEF
  22. 22. NFC
  23. 23. NFC 1. Tag reader/writer 2. P2P (Android Beam) 3. Card Emulation
  24. 24. NFC Android Beam
  25. 25. NFC Android Beam • • Uses Bluetooth for file processing On Samsung, it’s called S Beam
  26. 26. NFC Card Emulation
  27. 27. NFC Card Emulation - With Secure Element - Without Secure Element
  28. 28. NFC Card Emulation
  29. 29. NFC Card Emulation HostApduService
  30. 30. NFC Card Emulation HostApduService
  31. 31. NFC Card Emulation Limitations
  32. 32. NFC Card Emulation Earlier versions?
  33. 33. NFC Card Emulation Secure Element
  34. 34. NFC Card Emulation
  35. 35. NFC Card Emulation
  36. 36. NFC Tag dispatch system
  37. 37. NFC
  38. 38. NFC
  39. 39. NFC Demo
  40. 40. WIFI
  41. 41. WIFI Arduino Yun
  42. 42. WIFI Arduino Yun = arduino + OpenWrt
  43. 43. WIFI Bridge
  44. 44. WIFI Bridge
  45. 45. WIFI DEMO
  46. 46. Wrap Up
  47. 47. Thank You! Michał Tuszyński, iOS/Android Developer Twitter, Github: @srgtuszy
  1. A particular slide catching your eye?

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

×