Your SlideShare is downloading. ×
Connecting outsideworld with Android and Arduino
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Connecting outsideworld with Android and Arduino

2,873

Published on

Using arduino and bluetooth to connect Android tablets to the outside world. Shows a number of demo apps we built in the summer of 2012.

Using arduino and bluetooth to connect Android tablets to the outside world. Shows a number of demo apps we built in the summer of 2012.

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
2,873
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
59
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Godfrey Nolan
  • 2.  History Getting Started Connecting to the outside world Barcode scanner eBay app demo Other apps Q&A
  • 3.  Using Classic Bluetooth  Serial Port Profile Take advantage of the Arduino community  Limited by your own imagination  Increase shields Easier to get up and running than iOS
  • 4.  Bluetooth History  Android 1.5 – Bluetooth APIs  Android 2.3.3 - Security Enhancements  Android 3.0 - Bluetooth Profiles  Android 4.0 - Bluetooth Health Device Profile
  • 5.  The following tools were used  Arduino Mega ADK Board  Arduino Bluetooth Shield  Asus Eee Pad  Eclilpse, Android SDK, Arduino IDE
  • 6.  Hello World
  • 7.  Traffic Lights  Press Buttons on Android  Toggle LEDs
  • 8.  Android code in Eclipse Arduino sketch in Arduino IDE Put it all together Demo app
  • 9.  Bluetooth API calls  Enable Shield  Pairing with device  Connect to Bluetooth socket  Communicate on Input and Output streams  Send and Receive Messages  Connection Management
  • 10.  Bluetooth shield operates on serial interface. Enable shield commands
  • 11.  Make sure the Arduino is paired with device
  • 12.  Create and connect a BluetoothSocket Get Bluetooth Input and OutputStreams
  • 13.  Communication is handled through streams
  • 14.  Once connection has been established, sending and receiving messages is simple
  • 15.  Connection Management
  • 16.  Connection management is problematic  Data coming from Bluetooth shield needs to be monitored for connection status messages  Messages mixed in with other data from the device  Making a robust Bluetooth connection can involve a lot of computational overhead. Arduino has no control over …  Shutting the connection down  Trying to (re)establish a new connection
  • 17.  Android device and Arduino board connected via Bluetooth Arduino connected to barcode scanner over RS232 Barcode scanned  Info sent to the Android device  Device searches google shops for item  Upload info to eBay for sale
  • 18. http://www.youtube.com/watch?v=xMvZqGYFVfk
  • 19.  Android code in Eclipse Arduino sketch in Arduino IDE Put it all together Demo app
  • 20.  Credit Card Reader Breathalyzer Virtual Dashboard
  • 21.  Credit Card Reader http://www.youtube.com/watch?v=QVFPJnVbAao
  • 22.  Breathalyzer http://www.youtube.com/watch?v=WMhcQNvoJ9Y
  • 23.  Virtual Dashboard http://www.youtube.com/watch?v=kAjhYzEjzsg
  • 24.  Code is relatively simple Boards are problematic Bluetooth works over 10-20ft USB for closer work Future Plans  Raspberry Pi (demo)
  • 25. https://github.com/riis/AndroidArduinohttp://shieldlist.org
  • 26.  http://www.riis.com @riisllc godfrey@riis.com

×