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:
Distributed under the GNU General Public (Open-Source) License.
Please Attribute and Share-Alike.













February 2, 2012 at 3:42 am
I see I should not use serial.flush. Could you please show me what the entire motor arduino program would look like with the change? Thanks in advance. Love your tutorials.
February 4, 2012 at 1:08 am
Hey Jeremy,
Is it possible to use 1 xbee as a transmitter to send signals to 2 xbees as receivers?
I would like to have 2 analog joysticks connected to a single arduino uno and have each joystick control a motor on two seperate arduino unos.
Thanks
Zack
April 23, 2012 at 1:19 pm
Yes, just give both receiving XBees the same IDs, and they will both receive the data.
February 6, 2012 at 11:28 am
Hi Jeremy
I have a question can I use the Xbee to transmit a video
and witch cam I need for that ?
MFG Jasper (14)
PS: Sorry for my bad english I come from Germany and I like your tutorials :-)
April 23, 2012 at 3:38 pm
No, the arduino doesn’t have enough processing power to transmit a video signal wireless.
February 9, 2012 at 8:10 pm
Hey Jeremy,
I have a question. I have an arduino uno and a Bluetooth adapter RN-42. Using the arduino, I would like the bluetooth adapter to instantiate a connection request to a bluetooth device (cell phone) using its MAC address. Can you please help me on how do I go about doing this? what kind of commands are available? and are there any libraries that I can use?
Your help will be greatly appreciated. And btw, your tutorials are awesome!!
February 11, 2012 at 6:36 am
hey.
i have 2 arduino uno( one for sending the voice signal and the other have ping) and want to interface it wirelessly. my idea is that i want to control my robot with voice wirelessly and also i want to receive the output from the sensor on the second arduino to the first
February 19, 2012 at 6:35 pm
For an excellent introduction to creating wireless sensor networks using the Arduino and Xbee radios, I highly, highly recommend “Building Wireless Sensor Networks: With ZigBee, XBee, Arduino, and Processing” by Robert Faludi. I found it to be an excellent resource that starts at square one and takes you all the way to sending sensor data across the internet. I am a HUGE fan of this book.
April 12, 2012 at 2:35 pm
hey!!
i am working on cloud robotics, i want to program wirelessly the arduino mega 2560 using zigbee.
While i am using zigbee adapter and zigbee shield for arduino. I am unable to synchronize both the zigbee pc adapter and arduino zigbee shield, please help me and give me all details how to configure and synchronise.
April 19, 2012 at 11:33 am
hey can u help me…i wanna make a robot with L293D can u send me the program for controlling the robot with a joystick n i m using xbees…i wanna put a push button for switchin on/off a headlight…plz plz help me…i m stuck up with my school project…can u send me d program on my email……i looooooove ur tutorials….. :D
April 27, 2012 at 12:27 am
Thank you Jermy,
Can you do a video on wifly controlling 2 DC motors and 1 stepper motor and how to set it up? Thanks a lot.
April 29, 2012 at 2:14 pm
Hi Jeremy,
Loving the tutorials. I am just getting into Arduino and have just got to your wireless comms tutorial and have found that the xbee parts are deprecated. Would it be possible to get a tutorial which covers the same stuff but uses the new Arduino Wireless Shield?
Thanks,
Alex
May 5, 2012 at 4:54 am
Hi Jeremy
Loving the tutorials, but do you by any change make a Tutorial about RS485 between 2 arduino´s?
Thanks
Mads
May 8, 2012 at 6:43 pm
How would I manage to send more than just 0-9 data? Lets say 0-1023?
I would do anything to figure this part out. I just don’t understand atoi conversion and I would like a easy way to do it.