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 :)

Serial.flush() has changed in Arduino 1.0. You can use the following instead:

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.


  1. +++ OK
    ATMY1000 ERROR000
    ATDL1001 OK
    ATID1111, OK
    WR OK


  2. Hello,

    I am trying to configure two XBee S2 modules to communicate with each other via Ardiono Unos and the XBee Pro shields. My problem is I am new to this and not sure how to configure the XBee modules to talk to each other. I tried using Putty with instruction from Jeremy but I keep getting an error during the ATML1000 configuration portion. (His instructions work great for the XBee S1 but not the XBee S2). I have downloaded the XCTU software but am unsure how to use and the proper procedure to configure S2 modules to talk to each other.

    Any help would be greatly appreciated.



  3. Dear Sir

    Good day,

    I have been working with my colleages on our graduation project and we happened to use the Xbee S1 module and the Arduino Uno microcontroller.

    We wanted to develop a wireless sensor network as follows:

    The laptop will be used as the coordinator(Arduino) and we will have two end devices in two neighbouring classrooms both of which will be composed of an Arduino Uno mounted on an Xbee shield which has an Xbee antenna on top, these end devices have two sensors and two switches respectively.

    We need help in allowing these two end devices to act as transceivers and send/receive the sensor and switch readings accordingly.

    In addition to this, we are thinking of using another end device as an access point or a repeater that receives a signal and strenghens it in order to be received by a further away coordinator.

    Please present us with any ideas or ways to successfully implement these ideas into action.

    Yours faithfully,
    Saleh Helmy

  4. Pingback: Xbee lessons | Gnardo Polo

  5. Hello, Sir Jeremy!
    I was wondering If I could just pull the reset of the arduino to ground instead of removing the chip?
    It was suggested on this video I have an arduino MEGA2560 and an xbee shield but I don’t have an xbee explorer.

  6. i need to send the data from two or more zigbee transmitters circuit to one zigbee circuit ca u help me??

  7. Pingback: Xbee notes | Grimtech

Leave a Reply

Required fields are marked *.