SlideShare a Scribd company logo
1 of 23
Building Robots
using Android and
     Arduino




Sudar Muthu
Research Engineer, Yahoo! Labs
http://sudarmuthu.com
http://github.com/sudar
http://twitter.com/sudarmuthu
Agenda
• Let’s start with a demo
• Anatomy of a robot
• Android
• Arduino
• Making them talk
   – Over Bluetooth
   – Over WIFI
   – Over USB wire
   – Over Audio Jacket
   – Over GSM
• Summary
• Questions
Let’s start with the demo




             Demo
    http://sudarmuthu.com/arduino/asimi
Anatomy of a Robot




Sensors               Motors


          Processor
Android can act as a ..
Sensor
  –   Accelerometer
  –   Camera
  –   Magnetic Compass
  –   GPS
  –   etc.


Processor
  – Native Java App
  – Android Scripting Environment (ASE)
Missing part is..
Missing part is..




           Motor
(and that’s where Arduino can help)
Arduino
•   Visual Basic for hardware
•   Includes both Hardware and software




                           Photo credit Arduino team
We have Android (Sensors &
processor) and Arduino (Motor)
We have Android (Sensors &
processor) and Arduino (Motor)

    Let’s make them talk
Making them talk
• Over Bluetooth
   – Serial Socket
• Over WIFI
• Over USB
   – ADK
   – Normal Way
• Over Audio Jacket
• Over GSM
• Over C2DM
• Over NFC
• Others (Intermediate computer etc)
Over Bluetooth
You need
• Bluetooth Shield (or just a Bluetooth Dongle)
• Library – Amarino - http://amarino-toolkit.net
• Or create a Bluetooth Socket


Advantages
• Wired connection is not needed
• Can work from Android 1.5
• Two way communication


Disadvantages
• Power consumption is high
• Slightly slower when compared with others
• Range is limited
Over WIFI
You need
• Wifi Shield
• Wifi Connection


Advantages
• Wired connection is not needed
• Two way communication
• Can work from Android 1.5


Disadvantages
• Both should be present in the same network
• Power consumption is slightly high
Over USB Cable - ADK
You need
• ADK Board or USB Host Shield
• ADK SDK


Advantages
• Native support from Android
• Two way communication


Disadvantages
• Will work only in 2.3.4 +
• Wired Connection is needed
Over USB Cable – Socket & Logcat
You need
• USB Host Shield
• Library – Microbridge - http://code.google.com/p/microbridge/


Advantages
• Works in older versions as well
• Two way communication (Socket & Logcat)


Disadvantages
• Wired connection is needed
• The bandwidth is slower
Over Audio Jacket
You need
• Male Audio Pin
• Pre-encoded Wave/MP3 files
• http://sudarmuthu.com/blog/transferring-data-from-android-
  using-audio


Advantages
• Very compact
• Less power consumption


Disadvantages
• Slightly difficult to get it to work
• Baud rate is slow
Over GSM
You need
• GSM Arduino Shiled
• Two sim cards


Advantages
• Range is unlimited
• Very simple to setup
• Two way communication is possible


Disadvantages
• Operating cost (SMS)
• Potential to abuse
Over C2DM
You need
• Ethernet or Wifi Arduino Shield
• C2DM account


Advantages
• Good for notifications
• Very easy to setup in Android side


Disadvantages
• Only one way communication is possible
• Works only from v2.2+
• Need Wifi connectivity
Over NFC
You need
• NFC Shield
• Phone which has NFC


Advantages
• Very easy to setup
• No connection needs to be setup


Disadvantages
• Works only from v2.2+
• Very short range
Other Options

Some notable alternate options

• Using Computer as a intermediate transmitter
• USB Host support (in case of tablet or rooted phones)
• Serial VGA (You can project from an Android phone)
Don’t throw away
your old phones ;)
Links
•   Arduino – http://arduino.cc
•   Microbridge – http://code.google.com/p/microbridge/
•   Amarino – http://amarino-toolkit.net
•   USB Host Shield – http://circuitsathome.com/products-page/arduino-
    shields/usb-host-shield-2-0-for-arduino/
•   Using Arduino as ADK – http://sudarmuthu.com/blog/using-standard-arduino-
    board-as-googles-adk-kit
•   My articles about Arudino – http://sudarmuthu.com/blog/category/ardino
•   Demo source code – http://github.com/sudar/Asimi
•   Demo Project page – http://sudarmuthu.com/arduino/asimi
•   Cellbots – http://cellbots.com
Questions

Thank You

          Sudar Muthu
    http://sudarmuthu.com
   http://gitbub.com/sudar
http://twitter.com/sudarmuthu

More Related Content

More from Sudar Muthu

Having fun with hardware
Having fun with hardwareHaving fun with hardware
Having fun with hardwareSudar Muthu
 
Getting started with arduino workshop
Getting started with arduino workshopGetting started with arduino workshop
Getting started with arduino workshopSudar Muthu
 
Python in raspberry pi
Python in raspberry piPython in raspberry pi
Python in raspberry piSudar Muthu
 
Hack 101 at IIT Kanpur
Hack 101 at IIT KanpurHack 101 at IIT Kanpur
Hack 101 at IIT KanpurSudar Muthu
 
PureCSS open hack 2013
PureCSS open hack 2013PureCSS open hack 2013
PureCSS open hack 2013Sudar Muthu
 
Arduino Robotics workshop day2
Arduino Robotics workshop day2Arduino Robotics workshop day2
Arduino Robotics workshop day2Sudar Muthu
 
Arduino Robotics workshop Day1
Arduino Robotics workshop Day1Arduino Robotics workshop Day1
Arduino Robotics workshop Day1Sudar Muthu
 
Hands on Hadoop and pig
Hands on Hadoop and pigHands on Hadoop and pig
Hands on Hadoop and pigSudar Muthu
 
Lets make robots
Lets make robotsLets make robots
Lets make robotsSudar Muthu
 
Capabilities of Arduino (including Due)
Capabilities of Arduino (including Due)Capabilities of Arduino (including Due)
Capabilities of Arduino (including Due)Sudar Muthu
 
Controlling robots using javascript
Controlling robots using javascriptControlling robots using javascript
Controlling robots using javascriptSudar Muthu
 
Picture perfect hacks with flickr API
Picture perfect hacks with flickr APIPicture perfect hacks with flickr API
Picture perfect hacks with flickr APISudar Muthu
 
Capabilities of Arduino
Capabilities of ArduinoCapabilities of Arduino
Capabilities of ArduinoSudar Muthu
 
Introduction to node.js GDD
Introduction to node.js GDDIntroduction to node.js GDD
Introduction to node.js GDDSudar Muthu
 
Using Javascript in today's world
Using Javascript in today's worldUsing Javascript in today's world
Using Javascript in today's worldSudar Muthu
 
Hack u yql-iit-delhi
Hack u yql-iit-delhiHack u yql-iit-delhi
Hack u yql-iit-delhiSudar Muthu
 
A slightly advanced introduction to node.js
A slightly advanced introduction to node.jsA slightly advanced introduction to node.js
A slightly advanced introduction to node.jsSudar Muthu
 
YAP - HackU 2011
YAP - HackU 2011YAP - HackU 2011
YAP - HackU 2011Sudar Muthu
 

More from Sudar Muthu (20)

Having fun with hardware
Having fun with hardwareHaving fun with hardware
Having fun with hardware
 
Getting started with arduino workshop
Getting started with arduino workshopGetting started with arduino workshop
Getting started with arduino workshop
 
Python in raspberry pi
Python in raspberry piPython in raspberry pi
Python in raspberry pi
 
Hack 101 at IIT Kanpur
Hack 101 at IIT KanpurHack 101 at IIT Kanpur
Hack 101 at IIT Kanpur
 
PureCSS open hack 2013
PureCSS open hack 2013PureCSS open hack 2013
PureCSS open hack 2013
 
Pig workshop
Pig workshopPig workshop
Pig workshop
 
Arduino Robotics workshop day2
Arduino Robotics workshop day2Arduino Robotics workshop day2
Arduino Robotics workshop day2
 
Arduino Robotics workshop Day1
Arduino Robotics workshop Day1Arduino Robotics workshop Day1
Arduino Robotics workshop Day1
 
Hands on Hadoop and pig
Hands on Hadoop and pigHands on Hadoop and pig
Hands on Hadoop and pig
 
Lets make robots
Lets make robotsLets make robots
Lets make robots
 
Capabilities of Arduino (including Due)
Capabilities of Arduino (including Due)Capabilities of Arduino (including Due)
Capabilities of Arduino (including Due)
 
Controlling robots using javascript
Controlling robots using javascriptControlling robots using javascript
Controlling robots using javascript
 
Picture perfect hacks with flickr API
Picture perfect hacks with flickr APIPicture perfect hacks with flickr API
Picture perfect hacks with flickr API
 
Hacking 101
Hacking 101Hacking 101
Hacking 101
 
Capabilities of Arduino
Capabilities of ArduinoCapabilities of Arduino
Capabilities of Arduino
 
Introduction to node.js GDD
Introduction to node.js GDDIntroduction to node.js GDD
Introduction to node.js GDD
 
Using Javascript in today's world
Using Javascript in today's worldUsing Javascript in today's world
Using Javascript in today's world
 
Hack u yql-iit-delhi
Hack u yql-iit-delhiHack u yql-iit-delhi
Hack u yql-iit-delhi
 
A slightly advanced introduction to node.js
A slightly advanced introduction to node.jsA slightly advanced introduction to node.js
A slightly advanced introduction to node.js
 
YAP - HackU 2011
YAP - HackU 2011YAP - HackU 2011
YAP - HackU 2011
 

Recently uploaded

Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 

Recently uploaded (20)

Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 

Building robots using android and arduino google devfest

  • 1. Building Robots using Android and Arduino Sudar Muthu Research Engineer, Yahoo! Labs http://sudarmuthu.com http://github.com/sudar http://twitter.com/sudarmuthu
  • 2. Agenda • Let’s start with a demo • Anatomy of a robot • Android • Arduino • Making them talk – Over Bluetooth – Over WIFI – Over USB wire – Over Audio Jacket – Over GSM • Summary • Questions
  • 3. Let’s start with the demo Demo http://sudarmuthu.com/arduino/asimi
  • 4. Anatomy of a Robot Sensors Motors Processor
  • 5. Android can act as a .. Sensor – Accelerometer – Camera – Magnetic Compass – GPS – etc. Processor – Native Java App – Android Scripting Environment (ASE)
  • 7. Missing part is.. Motor (and that’s where Arduino can help)
  • 8. Arduino • Visual Basic for hardware • Includes both Hardware and software Photo credit Arduino team
  • 9. We have Android (Sensors & processor) and Arduino (Motor)
  • 10. We have Android (Sensors & processor) and Arduino (Motor) Let’s make them talk
  • 11. Making them talk • Over Bluetooth – Serial Socket • Over WIFI • Over USB – ADK – Normal Way • Over Audio Jacket • Over GSM • Over C2DM • Over NFC • Others (Intermediate computer etc)
  • 12. Over Bluetooth You need • Bluetooth Shield (or just a Bluetooth Dongle) • Library – Amarino - http://amarino-toolkit.net • Or create a Bluetooth Socket Advantages • Wired connection is not needed • Can work from Android 1.5 • Two way communication Disadvantages • Power consumption is high • Slightly slower when compared with others • Range is limited
  • 13. Over WIFI You need • Wifi Shield • Wifi Connection Advantages • Wired connection is not needed • Two way communication • Can work from Android 1.5 Disadvantages • Both should be present in the same network • Power consumption is slightly high
  • 14. Over USB Cable - ADK You need • ADK Board or USB Host Shield • ADK SDK Advantages • Native support from Android • Two way communication Disadvantages • Will work only in 2.3.4 + • Wired Connection is needed
  • 15. Over USB Cable – Socket & Logcat You need • USB Host Shield • Library – Microbridge - http://code.google.com/p/microbridge/ Advantages • Works in older versions as well • Two way communication (Socket & Logcat) Disadvantages • Wired connection is needed • The bandwidth is slower
  • 16. Over Audio Jacket You need • Male Audio Pin • Pre-encoded Wave/MP3 files • http://sudarmuthu.com/blog/transferring-data-from-android- using-audio Advantages • Very compact • Less power consumption Disadvantages • Slightly difficult to get it to work • Baud rate is slow
  • 17. Over GSM You need • GSM Arduino Shiled • Two sim cards Advantages • Range is unlimited • Very simple to setup • Two way communication is possible Disadvantages • Operating cost (SMS) • Potential to abuse
  • 18. Over C2DM You need • Ethernet or Wifi Arduino Shield • C2DM account Advantages • Good for notifications • Very easy to setup in Android side Disadvantages • Only one way communication is possible • Works only from v2.2+ • Need Wifi connectivity
  • 19. Over NFC You need • NFC Shield • Phone which has NFC Advantages • Very easy to setup • No connection needs to be setup Disadvantages • Works only from v2.2+ • Very short range
  • 20. Other Options Some notable alternate options • Using Computer as a intermediate transmitter • USB Host support (in case of tablet or rooted phones) • Serial VGA (You can project from an Android phone)
  • 21. Don’t throw away your old phones ;)
  • 22. Links • Arduino – http://arduino.cc • Microbridge – http://code.google.com/p/microbridge/ • Amarino – http://amarino-toolkit.net • USB Host Shield – http://circuitsathome.com/products-page/arduino- shields/usb-host-shield-2-0-for-arduino/ • Using Arduino as ADK – http://sudarmuthu.com/blog/using-standard-arduino- board-as-googles-adk-kit • My articles about Arudino – http://sudarmuthu.com/blog/category/ardino • Demo source code – http://github.com/sudar/Asimi • Demo Project page – http://sudarmuthu.com/arduino/asimi • Cellbots – http://cellbots.com
  • 23. Questions Thank You Sudar Muthu http://sudarmuthu.com http://gitbub.com/sudar http://twitter.com/sudarmuthu