Arduino Miniconf
                          Putting your device in a
                          browser or on the web
      ...
Who am I?
                   • Developing and creating web applications for
                          15 years
           ...
Arduino
                          Overview of the Arduino Platform




Monday, 18 January 2010
Arduino Code
                   • Code in a C like high level language
                   • Inbuilt functions to read and ...
Arduino IDE

Monday, 18 January 2010
Led Shield Demo

Monday, 18 January 2010
Issues
                   • Debugging can be hard
                   • Memory, power and speed limits
                   •...
Connecting
                          Arduinos to the Web
                          How Arduinos can communicate with
     ...
Connection Methods
                   •      Direct to computer
                   •      Wireless (XBee modems)
         ...
Supported Languages
                   •      Flash and Flex
                   •      Processing
                   •    ...
Direct Connection
                          How to communicate with Arduinos
                          via a computer




...
Direct Communication
                   • Most languages can’t talk USB
                   • Solution: Socket to USB proxy...
Layers of Communication
                   • Code Library
                   • Proxy to USB
                   • Program o...
Firmata Protocal
                   •      Standard Arduino library
                   •      Simple binary protocol
     ...
Computer                       Arduino




                            Application Code                                  A...
Firmata Demo

Monday, 18 January 2010
Issues
                   • Works best with a persistent connection
                   • Otherwise startup time and auto r...
Ethernet
                          Using Arduino Ethernet Shields




Monday, 18 January 2010
Ethernet Shields
                   •      Allow direct internet connection
                   •      No computer needed
 ...
Ethernet Shields

Monday, 18 January 2010
Ethernet Arduino Code
                   • Web server code
                   • Easy to modify




Monday, 18 January 2010
Ethernet Demo

Monday, 18 January 2010
Pachube
                          An easier way to connect Arduinos




Monday, 18 January 2010
Pachube
                   • Store and share and access realtime sensor
                          data
                   ...
Pachube

Monday, 18 January 2010
Pachube Arduino Code
                   • Runs on Arduino with an ethernet shield
                   • Sends values to Pac...
Pachube API
                   •      Communicates over HTTP
                   •      Plain text (csv), XML or Jason
    ...
Pachube Triggers
                   • Pachube can call an URL on value change
                   • The URL can be a dynami...
Why do this?
                   • Expose yourself to new ideas and new ways of
                          solving problems
...
It’s Fun!

Monday, 18 January 2010
Useful Sites
                          List of useful hardware and software
                          sites




Monday, 18...
Software Sites
                   • Arduino http://www.arduino.cc for software,
                          user forum and p...
Hardware Sites
                   • Mind Kits (NZ) http://www.mindkits.co.nz/
                   • Spark Fun (US) http://w...
Other Sites
                   • Lady Ada http://www.ladyada.net/
                   • Evil Mad Scientist http://
        ...
Upcoming SlideShare
Loading in...5
×

Putting your device in a browser or on the web

3,510

Published on

Part of the Linux Conference Australia 2010 Arduino mini conference. Explains the various ways you can connect arduinos to the web and the internet.

Published in: Technology
2 Comments
0 Likes
Statistics
Notes
  • Be the first to like this

No Downloads
Views
Total Views
3,510
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
86
Comments
2
Likes
0
Embeds 0
No embeds

No notes for slide

Putting your device in a browser or on the web

  1. 1. Arduino Miniconf Putting your device in a browser or on the web Justin Mclean Web: http://www.classsoftware.com.au Mail: justin@classsoftware.com.au Twitter: justinmclean Monday, 18 January 2010
  2. 2. Who am I? • Developing and creating web applications for 15 years • Programming for 25 years • Developer and trainer in Flex and ColdFusion • Based in Sydney Australia Monday, 18 January 2010
  3. 3. Arduino Overview of the Arduino Platform Monday, 18 January 2010
  4. 4. Arduino Code • Code in a C like high level language • Inbuilt functions to read and set digital and analog inputs and outputs • Includes libraries to perform common hardware or software tasks Monday, 18 January 2010
  5. 5. Arduino IDE Monday, 18 January 2010
  6. 6. Led Shield Demo Monday, 18 January 2010
  7. 7. Issues • Debugging can be hard • Memory, power and speed limits • Helps to have a little electronic knowledge Monday, 18 January 2010
  8. 8. Connecting Arduinos to the Web How Arduinos can communicate with the outside world. Monday, 18 January 2010
  9. 9. Connection Methods • Direct to computer • Wireless (XBee modems) • Ethernet or WiFi • “The Cloud” Monday, 18 January 2010
  10. 10. Supported Languages • Flash and Flex • Processing • Python • Ruby • Java • C, C++, C# and Objective C • .NET Monday, 18 January 2010
  11. 11. Direct Connection How to communicate with Arduinos via a computer Monday, 18 January 2010
  12. 12. Direct Communication • Most languages can’t talk USB • Solution: Socket to USB proxy Monday, 18 January 2010
  13. 13. Layers of Communication • Code Library • Proxy to USB • Program on arduino to USB Monday, 18 January 2010
  14. 14. Firmata Protocal • Standard Arduino library • Simple binary protocol • Based on MIDI • Easy to extend Monday, 18 January 2010
  15. 15. Computer Arduino Application Code Arduino Function Calls and Code Events TCP/IP USB Library USB Proxy Firmata Socket Cable Connection Diagram Monday, 18 January 2010
  16. 16. Firmata Demo Monday, 18 January 2010
  17. 17. Issues • Works best with a persistent connection • Otherwise startup time and auto reset may be issues • Proxy must be running on computer the Arduino is connected to Monday, 18 January 2010
  18. 18. Ethernet Using Arduino Ethernet Shields Monday, 18 January 2010
  19. 19. Ethernet Shields • Allow direct internet connection • No computer needed • Can act as web server or client • Shields need a little configuration Monday, 18 January 2010
  20. 20. Ethernet Shields Monday, 18 January 2010
  21. 21. Ethernet Arduino Code • Web server code • Easy to modify Monday, 18 January 2010
  22. 22. Ethernet Demo Monday, 18 January 2010
  23. 23. Pachube An easier way to connect Arduinos Monday, 18 January 2010
  24. 24. Pachube • Store and share and access realtime sensor data • Simple and secure • API to interact with all data and services • Graphs and maps Monday, 18 January 2010
  25. 25. Pachube Monday, 18 January 2010
  26. 26. Pachube Arduino Code • Runs on Arduino with an ethernet shield • Sends values to Pachube • Request values via Pachube Monday, 18 January 2010
  27. 27. Pachube API • Communicates over HTTP • Plain text (csv), XML or Jason • REST based • Large base of supported languages Monday, 18 January 2010
  28. 28. Pachube Triggers • Pachube can call an URL on value change • The URL can be a dynamic Monday, 18 January 2010
  29. 29. Why do this? • Expose yourself to new ideas and new ways of solving problems • Involves interaction with the real world • Encourages creativity • Makes you a better programmer Monday, 18 January 2010
  30. 30. It’s Fun! Monday, 18 January 2010
  31. 31. Useful Sites List of useful hardware and software sites Monday, 18 January 2010
  32. 32. Software Sites • Arduino http://www.arduino.cc for software, user forum and playground • Ethernet Shields http://arduino.cc/en/ Reference/Ethernet • Pachhub http://www.pachube.com/ Monday, 18 January 2010
  33. 33. Hardware Sites • Mind Kits (NZ) http://www.mindkits.co.nz/ • Spark Fun (US) http://www.sparkfun.com/ • Adafruit Industries (US) http:// www.adafruit.com/ • Electronic Goldmine (US) http:// www.goldmine-elec.com/ Monday, 18 January 2010
  34. 34. Other Sites • Lady Ada http://www.ladyada.net/ • Evil Mad Scientist http:// www.evilmadscientist.com/ • NY Resistor http://www.nycresistor.com/ • Make Zine http://makezine.com/ Monday, 18 January 2010
  1. A particular slide catching your eye?

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

×