BLOG > Tutorial 9 for Arduino: Wireless Communication

This tutorial was featured on the official Arduino blog on 3/9/2011

This week, we go wireless! We’ll be using a set of arduino Unos, XBee shields, and XBee Transceivers that will create a Personal Area Network (PAN) for wireless serial communication. By the end of the episode, we will be able to turn a potentiometer on one arduino, and have it adjust a motor connected to a another arduino – all wirelessly! I suggest you pick up one of these Sparkfun XBee USB Breakout Boards to get your XBee addresses set up. Enjoy the video :)

EDIT:
Serial.flush() has changed in Arduino 1.0.  You can use the following instead:
while(Serial.available()>0) Serial.read();

You can download the files associated with this episode here:

GNU GPL License Distributed under the GNU General Public (Open-Source) License.
Please Attribute and Share-Alike.

387 comments

  1. Hi Jeremy, we intend to use XBee in both broadcast and unicast mode with switching possible at runtime (i.e switching from co-ordinator to end node and vice-versa at runtime). Is it possible to do so using arduino or any other board

  2. Hi,
    I need to get the values from MPL3115a2 altitude sensor to my other Xbee module at a distance. I have got the Xbee explorer dongle too. I am a bit confused with the code and the hardware connection of the explorer dongle with the arduino. It will be helpful if u make a video on that or give some suggestions

  3. Hii,
    Can u please upload the video of interfacing esp8266 wifi module with arduino for wireless communications…

  4. I linked the two XBee’s in XCTU and verified them. The Baud rates are also 9600, the same as is listed in the code. When moving my potentiometer on the controller the servo is not moving at all on the receiver. Idk if it is because the receiver is not receiving these values or it just doesn’t know where to assign these values. The code was just copy and pasted so I would assume it is not because of the code. If anyone has any idea what the problem might be I would greatly appreciate it.

Leave a Reply to Jeremy Blum Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Advertisement