(wow what a mouthful, couldn't they have just called them radios)

Intro to Zigbee wireless hardware

Zigbee wireless transceivers are a product of Digi. Sometimes referred to as "XBEE" for short, the line of transceivers was developed as a cost effective solution for developers and hobbyists. XBEE Transceivers can be used in everything from wireless serial port linking to home automation to robotics projects.

In reading through this tutorial you might think this seems like a lot of trouble for a simple wireless link if you have a robotics project of some sort, but if you do your homework on it, you will find that the Zigbee transceivers are much more versatile than a hobby shop style or rc car style radio system. First transceivers can send and receive. A hobby shop style remote and receiver only work one way; i.e. you cant get any data back from what you are controlling. The next point is range. The XBEE hardware is available with much longer wireless ranges than other types of wireless systems.

You can read up on the Zigbee wireless protocol and back history here: Wiki page, here: Embedded.com and here: Digi, but for this particular tutorial I want to get right to the point.

For a robotics or remote control application the ZigBee wireless modules are ideal for many reasons. They offer a wide bandwidth and number of channels for both analog and digital output. A variety of ranges are available. ZigBee's operate on either the 900MHz or 2.4 GHz wireless range so there is little interference from other devices and they do not need FCC licensing to operate them. Here is an example setup of what a ZigBee project might look like (click to enlarge):


Where a laptop visual control platform is used to control the output at the other end. Many of the serial servo controllers include software and .dll files to run custom software interfaces.

Selecting the proper XBEE Module

Based on the project you wish to complete, there are a variety of XBee Modules available to choose from. The XBee model lines can be broken down by range:

XBEE Models by type and range:
Standard XBee models: 300ft to 1 mile line-of-sight
XBEE Pro models: 300ft to 40 miles line-of-sight



For my specific project I chose a XBEE 900 Pro model with a 6 mile range.

The range was not an issue so much as the objects between the two transceivers. Glass, metal, and brick objects all reduce the effective range of the units; so the 6 mile range gets cut down very quickly with obstacles in the transmission path.

Using a 4" "duck" antenna, the range through a large cinder block building was about 1000 ft. That was through many walls, windows, and other objects.

*DISCLAIMER*:
Although many of my parts were purchased through sparkfun.com, don't expect their tech support to be any help to you. They were not helpful in my testing process. However all is not lost; Digi tech support offers a live chat on the website for this product. They know their stuff and its free, use it if you need it.

Hardware

So here is the bulk of the hardware needed for the wireless portion of our project:





-XBee Pro 900 RPSMA x2








-900MHz Duck Antenna RP-SMA x2





From here you have some options. You can either choose the usb or serial style boards for the unit that you want to hook to your computer. The XBEE plugs into the top of these and gives you an easy way to interface to a computer:



-XBee Explorer USB









-XBee Explorer Serial






Now for the other end, (the robot, printer, ect), you could use the above options but most home brew projects may be better suited to this style board:




-XBee Explorer Regulated







This board gives the XBee a place to plug in, and has a on board voltage regulation so you don't blow up your expensive XBee by accidentally feeding it the wrong voltage. There is a 5-16v input and a 3v input for power. There is no usb or serial interface on this, just pin-out's for you to wire to whatever you want (robot, printer, death star, ect)

Software

Although the XBEE's come programed out of the box and are ready to use for wireless serial data transfer (as well as other types), if you do need to program them, Digi has free software to take care of this called "X-CTU".

1. install the Digi Drivers: Click
2. install the X-CTU software: Click

When installing the Digi drivers you may need to run through it twice and the X-CTU software can be an overwhelming pain to learn at first. I separated the X-CTU software page out from this blog because it is extraneous data for most people. Chances are you won't need to use it, but here is the process if you do: Click

*More advice: Sparkfun recommends using FTDI drivers, DON'T!, Use the drivers above made by Digi! I used the FTDI drivers and they gave my laptop the blue screen of death whenever the XBEE was plugged in.

Crash Course

What you need to know without being an electrical engineer:

XBEE's use TTL standard line levels for data transfer. It is a 3.3 volt style signal. (the XBEE is also powered by 3.3v)

Serial Ports use RS232 standard line levels for data transfer. It is generally a signal between 5 and 12 volts.

So, if you want to interface the XBEE to a serial connection directly you need either a serial line level converter or a MAX232 board. Either will work and cost roughly the same. If it was up to me I would go with the MAX232, I just think it is more refined/less parts. You might be saying: "well what about the usb interface listed above?", I'm getting to that.

The USB interface is the simplest (in my opinion) option to interface to your computer. The base XBEE stays on the computer: use usb. For the remote unit it is easier to input and output data, whether it be from a robot, printer, ect, using a serial interface. I told you to get 2 usb interfaces because in the event that you need both of the XBEE's hooked up to a computer, that is the easiest way to do it. If you are confident enough to go with only one usb interface that will work if you plan accordingly.