Simple Xbee Arduino connection
This is a material for the simple Xbee Arduino connection workshop
Here, we simply use Xbee as wireless serial cable, and try to get Arduino's sensor input value to computer wirelessly.
what do we need:
-a pair of Xbee (here, I used Xbee pro)
-USB R232 board (can be Arduino without chip)
-Arduino
-Sensor (pot)
-4 LED (0ptional)
-2 breadboard
-wires
when you buy the Xbee, there are different kinds. If you need to do a simple point to point communication, 802.15.4 is easier than Series 2. So, I recommend to get 802.15.4. it makes your life easier...
what do we need:
-a pair of Xbee (here, I used Xbee pro)
-USB R232 board (can be Arduino without chip)
-Arduino
-Sensor (pot)
-4 LED (0ptional)
-2 breadboard
-wires
when you buy the Xbee, there are different kinds. If you need to do a simple point to point communication, 802.15.4 is easier than Series 2. So, I recommend to get 802.15.4. it makes your life easier...
So, the first thing to do is to connect reciever Xbee to computer via USB.
The easiest way is to use USB dongle.. but if you do not want to buy it or have one, you can also use Arduino without chip. (to use Arduino's USB r232 chip)
It will look like the picture on the right >>
For the connection detail, please see this PDF
The easiest way is to use USB dongle.. but if you do not want to buy it or have one, you can also use Arduino without chip. (to use Arduino's USB r232 chip)
It will look like the picture on the right >>
For the connection detail, please see this PDF
Now, we test if the reciever Xbee and computer connection is working.
you can use this max patch if you are a max user.
for AT command list, see the datasheet.http://www.sparkfun.com/datasheets/Wireless/Zigbee/XBee-Manual.pdf around p71-78
you can use this max patch if you are a max user.
for AT command list, see the datasheet.http://www.sparkfun.com/datasheets/Wireless/Zigbee/XBee-Manual.pdf around p71-78
The next step is to connect sender Xbee with Arduino, that gets sensor input and sends out the value with serial communication.
It will look like the picture on the right >>
Here is the connection detail PDF
It will look like the picture on the right >>
Here is the connection detail PDF
and now, we program Arduino, so it will read the analog value coming from sensor (pot this time) and send out as serial out.
here is the Arduino sketch example
here is the Arduino sketch example
Now we can see if we are recieving data, by simply monitoring from Arduino software, serial monitor, or you can also use this patch
There are more pictures on my flickr set>>
