Your SlideShare is downloading. ×
0
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
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

Arduino and Internet of Thinks: ShareIT TM: march 2010, TM

795

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
795
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
46
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. Arduino Networking An IoT approach Alexandru IOVANOVICI Timisoara, march 2011
  • 2. What is Arduino ?
  • 3. What is Arduino ? <ul><li>Platform for physical computing... </li></ul><ul><ul><li>...and for tinkering; </li></ul></ul><ul><li>Can run standalone or networked ; </li></ul><ul><li>Cheap (~EUR30); </li></ul><ul><li>Extensible … very extensible; </li></ul><ul><li>Open source ! </li></ul>
  • 4. All shapes and sizes
  • 5. What&apos;s on the board ?
  • 6. Short version … <ul><li>ATMEGA328 AVR microcontroller [or bigger]; </li></ul><ul><li>Headers for pins (analogue, digital, serial, power); </li></ul><ul><li>USB port and USB-serial converter [quite expensive] </li></ul><ul><li>Power regulator: 5V@250mA and 3.3V; </li></ul><ul><li>Reset switch :) </li></ul><ul><li>Status LED s (power, serial, debug): very useful :) </li></ul>
  • 7. Reading the PHY world == Input <ul><li>Sound (microphone); </li></ul><ul><li>Light (light dependant resistor); </li></ul><ul><li>Heat (thermistor); </li></ul><ul><li>Motion/Force (switches, dials, flex, pressure, accelerometer, Wii nunchuck, IR/ultrasound ranging) </li></ul><ul><li>Remote events (BUTTONS serial input from computer); </li></ul>
  • 8. Writing to the PHY world == Output <ul><li>Sound (buzzer, speaker); </li></ul><ul><li>Light : visible, IR and UV (LEDs); </li></ul><ul><li>Motion (motors, servos); </li></ul><ul><li>Other power devices (using relays); </li></ul><ul><li>3D printer (Rep rap), CNC; </li></ul><ul><li>Remote events (serial output to computer); </li></ul><ul><li>OR NETWORKING !!! </li></ul>
  • 9. It&apos;s programmable <ul><li>Computer (Linux, Mac, Windows) </li></ul><ul><li>Arduino IDE; </li></ul><ul><li>USB device cable; </li></ul><ul><li>Arduino board. </li></ul><ul><ul><li>Patience :) </li></ul></ul>
  • 10. Demo Do you [ really ] want to see a blinking led ? :)
  • 11. &nbsp;
  • 12. Type 1 Wired Networks
  • 13. &nbsp;
  • 14. Plain serial
  • 15. I 2 C <ul><li>Wire.h library; </li></ul>
  • 16. I 2 C
  • 17. Ethernet , the good, old Ethernet :) <ul><li>Ethernet.h library </li></ul>
  • 18. Exotic ones <ul><li>X10; </li></ul><ul><li>DMX; </li></ul><ul><li>CAN-BUS; </li></ul><ul><li>OneWire-MicroLAN; </li></ul><ul><li>MIDI; </li></ul>
  • 19. Type 2 Wireless networks
  • 20. HopeRF <ul><li>VirtualWire library; </li></ul><ul><li>Chep and ... quite unreliable :) </li></ul><ul><li>Worth investigating; </li></ul>
  • 21. ZigBee - XBee
  • 22. ZigBee - XBee
  • 23. Demo moment Let&apos;s play … or at least try :)
  • 24. Bluetooth
  • 25. 802.11 ... what&apos;s that ? :)
  • 26. GSM
  • 27. Radio less
  • 28. Exotic ones <ul><li>Way too many :) </li></ul><ul><ul><li>NRF2401, PCR-1000, RSSS, W800RF32A, HT12E, HomeEasy, EasyRadio </li></ul></ul><ul><li>Have&apos;t use any of them :) </li></ul>
  • 29. Developement <ul><li>Prototyping; </li></ul><ul><li>A lot of hacks and tinkering  </li></ul><ul><ul><li>some unorthodox shortcuts: 5 &lt;-&gt; 3.3 </li></ul></ul>
  • 30. Architecture <ul><li>Nodes: </li></ul><ul><ul><li>2 LEDs + 2 buttons; </li></ul></ul><ul><ul><li>Can send simple events: HUG , TWT ; </li></ul></ul><ul><li>Gateway: </li></ul><ul><ul><li>2 LEDs </li></ul></ul><ul><ul><li>Provide Twitter output; </li></ul></ul><ul><ul><ul><li>Coordinator (?) </li></ul></ul></ul>
  • 31. Packet structure <ul><li># ID | TYPE | MSG $ </li></ul><ul><li>Ex : </li></ul><ul><li>#1|IF|HLO$ </li></ul><ul><li>#1|EV|HUG$ </li></ul><ul><li>#1|EV|TWT$ </li></ul>
  • 32. Packet structure <ul><li>Serial processing of the packet: </li></ul><ul><ul><li>If the ID is not OK then discard the packet; </li></ul></ul><ul><ul><li>If I’m not receiving IF pkts then discard. </li></ul></ul>Check ID Check pkt type Check value DO ACTION END
  • 33. I/O <ul><li>Node : </li></ul><ul><ul><li>Xbee conn: 11, 12; </li></ul></ul><ul><ul><li>D8, D9 – Button; </li></ul></ul><ul><ul><li>D10, D13 – LEDs; </li></ul></ul><ul><li>Gateway: </li></ul><ul><ul><li>Xbee conn: 2, 3; </li></ul></ul><ul><ul><li>D6, D7 – LEDs; </li></ul></ul><ul><ul><li>D4, D5 – buttons; NOT USED </li></ul></ul>
  • 34. Implementation <ul><li>1 man; </li></ul><ul><li>Two 4 hour sessions; </li></ul><ul><li>2 ZigBee modules; </li></ul><ul><li>2 Arduino 2009; </li></ul><ul><li>Custom ZigBee adaper; </li></ul><ul><li>Custom sheild </li></ul><ul><ul><li>messy  </li></ul></ul>
  • 35. Issues <ul><li>Way too simple protocol: </li></ul><ul><ul><ul><li>Should be much more extendable and cusomizable </li></ul></ul></ul><ul><ul><ul><li>JSON vs. XML ??? </li></ul></ul></ul><ul><li>Quite slow communication: </li></ul><ul><ul><li>9600 bps; </li></ul></ul><ul><ul><li>Reliability issues; </li></ul></ul><ul><li>Higher level error detection and correction routines; </li></ul>
  • 36. THE Issue <ul><li>V&amp;V </li></ul><ul><li>Are we building the right software [ product ] </li></ul><ul><li>? </li></ul>
  • 37. THE Issue <ul><li>Lack of specifications </li></ul><ul><ul><li>We know how to work with Arduino and ZigBee ... </li></ul></ul><ul><ul><li>To do what ? </li></ul></ul>
  • 38. ZigBee <ul><li>Low power digital radio link: IEEE802.15 </li></ul><ul><ul><li>Low data rate ; </li></ul></ul><ul><li>Personal Area Networks; </li></ul><ul><li>Simpler and less expensive than BT; </li></ul><ul><li>“ low-cost ” ? :) </li></ul><ul><li>Lots of specifications ans “alliances” </li></ul><ul><li>Vendor-dependent stack ... or free </li></ul><ul><li>ZB2007 : two stacks: </li></ul><ul><ul><li>Simple and Pro; </li></ul></ul>
  • 39. ZigBee <ul><li>Device Types: </li></ul><ul><ul><li>Coordinator : one in each network; </li></ul></ul><ul><ul><li>Router : passing data to nodes; </li></ul></ul><ul><ul><li>End Device : talk to parent node (RT or COORD) </li></ul></ul>

×