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. 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. Hardware
1 x Xbee Shield
1 x Arduino
1 x Xbee
Explorer
2 x Xbee (Serie 2)
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. 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. 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. 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. 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