SlideShare ist ein Scribd-Unternehmen logo
1 von 30
Downloaden Sie, um offline zu lesen
Godfrey Nolan
   History
   Getting Started
   Connecting to the outside world
   Barcode scanner eBay app demo
   Other apps
   Q&A
   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
   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
   The following tools were used
     Arduino Mega ADK Board
     Arduino Bluetooth Shield
     Asus Eee Pad
     Eclilpse, Android SDK, Arduino IDE
   Hello World
   Traffic Lights
     Press Buttons on
      Android
     Toggle LEDs
   Android code in Eclipse
   Arduino sketch in Arduino IDE
   Put it all together
   Demo app
   Bluetooth API calls
     Enable Shield
     Pairing with device
     Connect to Bluetooth socket
     Communicate on Input and Output streams
     Send and Receive Messages
     Connection Management
   Bluetooth shield operates on serial interface.
   Enable shield commands
   Make sure the Arduino is paired with device
   Create and connect a BluetoothSocket
   Get Bluetooth Input and OutputStreams
   Communication is handled through streams
   Once connection has been established,
    sending and receiving messages is simple
   Connection Management
   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
   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
http://www.youtube.com/watch?v=xMvZqGYFVfk
   Android code in Eclipse
   Arduino sketch in Arduino IDE
   Put it all together
   Demo app
   Credit Card Reader
   Breathalyzer
   Virtual Dashboard
   Credit Card
    Reader




                  http://www.youtube.com/watch?v=QVFPJnVbAao
   Breathalyzer




                   http://www.youtube.com/watch?v=WMhcQNvoJ9Y
   Virtual
    Dashboard




                http://www.youtube.com/watch?v=kAjhYzEjzsg
   Code is relatively simple
   Boards are problematic
   Bluetooth works over 10-20ft
   USB for closer work
   Future Plans
     Raspberry Pi (demo)
https://github.com/riis/AndroidArduino
http://shieldlist.org
   http://www.riis.com
   @riisllc
   godfrey@riis.com

Weitere ähnliche Inhalte

Was ist angesagt?

Development, debug and deploy hardware/software solutions based on Android an...
Development, debug and deploy hardware/software solutions based on Android an...Development, debug and deploy hardware/software solutions based on Android an...
Development, debug and deploy hardware/software solutions based on Android an...
Илья Родин
 
IoTino - Arduino for Internet of Things
IoTino - Arduino for Internet of ThingsIoTino - Arduino for Internet of Things
IoTino - Arduino for Internet of Things
Abiro AB
 

Was ist angesagt? (18)

Android Open Accessory APIs
Android Open Accessory APIsAndroid Open Accessory APIs
Android Open Accessory APIs
 
Hacktime for adk
Hacktime for adkHacktime for adk
Hacktime for adk
 
Internet-of-Things with (Arduino+XBee)
Internet-of-Things with (Arduino+XBee)Internet-of-Things with (Arduino+XBee)
Internet-of-Things with (Arduino+XBee)
 
GeoDC Maker Talks: GPS-Enabled Sensor Platforms using Arduino
GeoDC Maker Talks:  GPS-Enabled Sensor Platforms using ArduinoGeoDC Maker Talks:  GPS-Enabled Sensor Platforms using Arduino
GeoDC Maker Talks: GPS-Enabled Sensor Platforms using Arduino
 
Introduction to Internet of Things Hardware
Introduction to Internet of Things HardwareIntroduction to Internet of Things Hardware
Introduction to Internet of Things Hardware
 
Development, debug and deploy hardware/software solutions based on Android an...
Development, debug and deploy hardware/software solutions based on Android an...Development, debug and deploy hardware/software solutions based on Android an...
Development, debug and deploy hardware/software solutions based on Android an...
 
What is arduino? and its type
What is arduino? and its typeWhat is arduino? and its type
What is arduino? and its type
 
Android Open Accessory Protocol - Turn Your Linux machine as ADK
Android Open Accessory Protocol - Turn Your Linux machine as ADKAndroid Open Accessory Protocol - Turn Your Linux machine as ADK
Android Open Accessory Protocol - Turn Your Linux machine as ADK
 
Confusion of Things — The IoT Hardware Kerfuffle
Confusion of Things — The IoT Hardware KerfuffleConfusion of Things — The IoT Hardware Kerfuffle
Confusion of Things — The IoT Hardware Kerfuffle
 
Introduction of Arduino Uno
Introduction of Arduino UnoIntroduction of Arduino Uno
Introduction of Arduino Uno
 
Hardware Wednesday 2015-03-25
Hardware Wednesday 2015-03-25Hardware Wednesday 2015-03-25
Hardware Wednesday 2015-03-25
 
I/O 2011 報告会 ADKで遊んでみた
I/O 2011 報告会 ADKで遊んでみたI/O 2011 報告会 ADKで遊んでみた
I/O 2011 報告会 ADKで遊んでみた
 
IoTino - Arduino for Internet of Things
IoTino - Arduino for Internet of ThingsIoTino - Arduino for Internet of Things
IoTino - Arduino for Internet of Things
 
INTRODUCTION TO ARDUINO & RASPBERRY, SENSOR AND TEMPERATURE INTERAFCING
INTRODUCTION TO ARDUINO & RASPBERRY, SENSOR AND TEMPERATURE INTERAFCINGINTRODUCTION TO ARDUINO & RASPBERRY, SENSOR AND TEMPERATURE INTERAFCING
INTRODUCTION TO ARDUINO & RASPBERRY, SENSOR AND TEMPERATURE INTERAFCING
 
Arduino board
Arduino boardArduino board
Arduino board
 
Tipos de conectores
Tipos de conectoresTipos de conectores
Tipos de conectores
 
Tipo de conectores
Tipo de conectoresTipo de conectores
Tipo de conectores
 
Introduction to Arduino Programming
Introduction to Arduino ProgrammingIntroduction to Arduino Programming
Introduction to Arduino Programming
 

Ähnlich wie Connecting outsideworld with Android and Arduino

Better With Friends: Android+NFC+Arduino
Better With Friends: Android+NFC+ArduinoBetter With Friends: Android+NFC+Arduino
Better With Friends: Android+NFC+Arduino
Pearl Chen
 

Ähnlich wie Connecting outsideworld with Android and Arduino (20)

jeevan ppt anits ecec.pptx
jeevan ppt anits ecec.pptxjeevan ppt anits ecec.pptx
jeevan ppt anits ecec.pptx
 
arduino 320126512170.pptx
arduino 320126512170.pptxarduino 320126512170.pptx
arduino 320126512170.pptx
 
Road to RIoT 2017 Medan
Road to RIoT 2017 MedanRoad to RIoT 2017 Medan
Road to RIoT 2017 Medan
 
IoT
IoTIoT
IoT
 
Android project
Android projectAndroid project
Android project
 
Fullstack IoT Development
Fullstack IoT DevelopmentFullstack IoT Development
Fullstack IoT Development
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
 
Echelon Indonesia 2016 - Innovation Through Opportunities in IoT & Arduino
Echelon Indonesia 2016 - Innovation Through Opportunities in IoT & ArduinoEchelon Indonesia 2016 - Innovation Through Opportunities in IoT & Arduino
Echelon Indonesia 2016 - Innovation Through Opportunities in IoT & Arduino
 
Can we build an Azure IoT controlled device in less than 40 minutes that cost...
Can we build an Azure IoT controlled device in less than 40 minutes that cost...Can we build an Azure IoT controlled device in less than 40 minutes that cost...
Can we build an Azure IoT controlled device in less than 40 minutes that cost...
 
IoT on Raspberry Pi
IoT on Raspberry PiIoT on Raspberry Pi
IoT on Raspberry Pi
 
Lab Handson: Power your Creations with Intel Edison!
Lab Handson: Power your Creations with Intel Edison!Lab Handson: Power your Creations with Intel Edison!
Lab Handson: Power your Creations with Intel Edison!
 
MIT App Inventor + Arduino + Bluetooth
MIT App Inventor + Arduino + BluetoothMIT App Inventor + Arduino + Bluetooth
MIT App Inventor + Arduino + Bluetooth
 
Better With Friends: Android+NFC+Arduino
Better With Friends: Android+NFC+ArduinoBetter With Friends: Android+NFC+Arduino
Better With Friends: Android+NFC+Arduino
 
Taller IoT en la Actualidad
Taller IoT en la ActualidadTaller IoT en la Actualidad
Taller IoT en la Actualidad
 
CONTROLLING HOME APPLIANCES WITH IOT,BLYNK APP & NODE MCU
CONTROLLING HOME APPLIANCES WITH IOT,BLYNK APP & NODE MCUCONTROLLING HOME APPLIANCES WITH IOT,BLYNK APP & NODE MCU
CONTROLLING HOME APPLIANCES WITH IOT,BLYNK APP & NODE MCU
 
ARDUINO presentation by Bamidele Samuel.ppt
ARDUINO presentation by Bamidele Samuel.pptARDUINO presentation by Bamidele Samuel.ppt
ARDUINO presentation by Bamidele Samuel.ppt
 
Making arduino-talk-with-android-using-amarino
Making arduino-talk-with-android-using-amarinoMaking arduino-talk-with-android-using-amarino
Making arduino-talk-with-android-using-amarino
 
[codemotion] Arduino Yun: internet for makers
[codemotion] Arduino Yun: internet for makers[codemotion] Arduino Yun: internet for makers
[codemotion] Arduino Yun: internet for makers
 
Arduino Yún: internet for makers
Arduino Yún: internet for makersArduino Yún: internet for makers
Arduino Yún: internet for makers
 
Arduino Development For Beginners
Arduino Development For BeginnersArduino Development For Beginners
Arduino Development For Beginners
 

Mehr von Godfrey Nolan

Mehr von Godfrey Nolan (20)

Counting Cars with Drones
Counting Cars with DronesCounting Cars with Drones
Counting Cars with Drones
 
Customising QGroundControl
Customising QGroundControlCustomising QGroundControl
Customising QGroundControl
 
DJI Payload SDK
DJI Payload SDKDJI Payload SDK
DJI Payload SDK
 
Parrot Tutorials in Kotlin
Parrot Tutorials in KotlinParrot Tutorials in Kotlin
Parrot Tutorials in Kotlin
 
DJI Mobile SDK Tutorials in kotlin
DJI Mobile SDK Tutorials in kotlinDJI Mobile SDK Tutorials in kotlin
DJI Mobile SDK Tutorials in kotlin
 
Drone sdk showdown
Drone sdk showdownDrone sdk showdown
Drone sdk showdown
 
AI/ML in drones
AI/ML in dronesAI/ML in drones
AI/ML in drones
 
Getting started with tensor flow datasets
Getting started with tensor flow datasets Getting started with tensor flow datasets
Getting started with tensor flow datasets
 
Using ML to make your UI tests more robust
Using ML to make your UI tests more robustUsing ML to make your UI tests more robust
Using ML to make your UI tests more robust
 
Java best practices
Java best practicesJava best practices
Java best practices
 
Counting sheep with Drones and AI
Counting sheep with Drones and AICounting sheep with Drones and AI
Counting sheep with Drones and AI
 
Writing Secure Mobile Apps for Drones
Writing Secure Mobile Apps for DronesWriting Secure Mobile Apps for Drones
Writing Secure Mobile Apps for Drones
 
Android Device Labs
Android Device LabsAndroid Device Labs
Android Device Labs
 
The Day We Infected Ourselves with Ransomware
The Day We Infected Ourselves with RansomwareThe Day We Infected Ourselves with Ransomware
The Day We Infected Ourselves with Ransomware
 
Agile Android
Agile AndroidAgile Android
Agile Android
 
Agile Swift
Agile SwiftAgile Swift
Agile Swift
 
Android Refactoring
Android RefactoringAndroid Refactoring
Android Refactoring
 
Agile mobile
Agile mobileAgile mobile
Agile mobile
 
From Maps to Apps the Future of Drone Technology
From Maps to Apps the Future of Drone TechnologyFrom Maps to Apps the Future of Drone Technology
From Maps to Apps the Future of Drone Technology
 
Tableau 10 and quickbooks
Tableau 10 and quickbooksTableau 10 and quickbooks
Tableau 10 and quickbooks
 

Connecting outsideworld with Android and Arduino

  • 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.
  • 7.
  • 8. Hello World
  • 9. Traffic Lights  Press Buttons on Android  Toggle LEDs
  • 10. Android code in Eclipse  Arduino sketch in Arduino IDE  Put it all together  Demo app
  • 11. Bluetooth API calls  Enable Shield  Pairing with device  Connect to Bluetooth socket  Communicate on Input and Output streams  Send and Receive Messages  Connection Management
  • 12. Bluetooth shield operates on serial interface.  Enable shield commands
  • 13. Make sure the Arduino is paired with device
  • 14. Create and connect a BluetoothSocket  Get Bluetooth Input and OutputStreams
  • 15. Communication is handled through streams
  • 16. Once connection has been established, sending and receiving messages is simple
  • 17. Connection Management
  • 18. 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
  • 19. 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
  • 21.
  • 22.
  • 23. Android code in Eclipse  Arduino sketch in Arduino IDE  Put it all together  Demo app
  • 24. Credit Card Reader  Breathalyzer  Virtual Dashboard
  • 25. Credit Card Reader http://www.youtube.com/watch?v=QVFPJnVbAao
  • 26. Breathalyzer http://www.youtube.com/watch?v=WMhcQNvoJ9Y
  • 27. Virtual Dashboard http://www.youtube.com/watch?v=kAjhYzEjzsg
  • 28. Code is relatively simple  Boards are problematic  Bluetooth works over 10-20ft  USB for closer work  Future Plans  Raspberry Pi (demo)
  • 30. http://www.riis.com  @riisllc  godfrey@riis.com