Internet-of-Things with (Arduino+XBee)

5,983 views
5,681 views

Published on

A quick example of (Arduino-XBee) network

Published in: Self Improvement
1 Comment
3 Likes
Statistics
Notes
No Downloads
Views
Total views
5,983
On SlideShare
0
From Embeds
0
Number of Embeds
104
Actions
Shares
0
Downloads
143
Comments
1
Likes
3
Embeds 0
No embeds

No notes for slide

Internet-of-Things with (Arduino+XBee)

  1. 1. Internet-of-Things with (Arduino+XBee) An Smart Tutorial for Smart People! Santiago J. Barro-Torres www.smart-and-embedded.com
  2. 2. Goals● Get introduced *quickly* into Arduino+XBee – Hardware setup – Wireless communication setup – Node programming (Arduino+XBee-Api-Library) – Server programming (XBee-Api-Library)
  3. 3. What do I need? Where can I get all the staff?● To create a basic example, you need the following hardware: – 1 x Arduino – 2 x Arduino-XBee Shield – 2 x Xbee (Serie 2) Modules● … and the following software (all open-source!): – 1 x Arduino-IDE – 1 x Arduino-XBee-Library – 1 x Xbee-Api-Library – 1 x Eclipse (inc. JDK)
  4. 4. Hardware 1 x Xbee Shield1 x Arduino 1 x Xbee Explorer 2 x Xbee (Serie 2)
  5. 5. Hardware Setup● You program will run in one Arduino● Serial communication between Arduino and Xbee (Arduino-XBee Library)● Your computer will communicate directly with Xbee (Xbee- Api-Library)● Your computer will run one management program
  6. 6. Important previous Steps!● We need to configure the Xbee modules (small-and-easy network)! – Flash the modems to get: ● 1 x Xbee Coordinator ● 1 x Xbee Router – After flashing, configure them in API Mode● To perform this, we need to run one special tool from the manufacturer
  7. 7. Now, real setup! (I: Hardware part)● Plug the Arduino + Xbee shield + Xbee (Router) together – Connect to PC through USB (Arduino Programming)● Plug the Arduino (w/o microcontroller) and Xbee (Coordinator) – Connect to PC through USB (PC is now part of the ZigBee network)
  8. 8. Now, real setup! (II: Software part)● Install and start Arduino IDE – Here we will write some code and upload it to the Arduino – Xbee and USB use the same connection, so you can only use one at a time● Install Eclipse, start a new project and include the Xbee- Api-Library (*.jar file) – Here you write a computer software which connects with the network
  9. 9. Congratulations! You are done with the Setup!● Now, we will run one simple example!● Later, I will recommend you some stuff so you can learn more about this topic
  10. 10. Useful resources● (...)

×