Posts by Erica:
How to configure an XBee on Linux, Mac, or any other operating system
Consider this post a corrective to all the over-complicated advice I’ve seen out there.
If you own an XBee, you likely already know that the official configuration tool, X-CTU, only runs on Windows. As result, if you need to configure an XBee on a different operating system, a Google search brings up repeated suggestions to install a Windows emulator, install X-CTU, then manually update some drivers.
Now this is fine if you already have or want an emulator but really…there is no need for such a heavy-weight solution. You can fully configure your XBee via the serial port and a terminal program.
Windows comes with Hyperterminal pre-installed, but for Linux I downloaded the free minicom program. (Mac…you are on your own.) Before starting, you need to know the port the XBee is attached to and the communication settings, just as you would with X-CTU. For a factory-fresh XBee, the communication settings will be:
- baud rate: 960
- data bits: 8
- parity: None
- stop bits: 1
- hardware flow control: None
To find the port the XBee is using, follow the directions for your operating system: for Linux udevadm, or on Windows it is Device Manager.
For Linux minicom, I recommend the terminal options of turning on local echo and adding linefeeds.
Once your terminal program is up and running, open the connection to your XBee port. Type the string +++ quickly without pressing the Enter key. You should get back a reply of “OK” from the XBee. If it doesn’t work, wait 10 seconds and try again. If it fails repeatedly, you may be at the wrong communication settings. Usually it is a matter of mismatched baud rate. But if you’ve totally forgotten the XBee settings, you can use this simple method to do a hardware XBee factory reset.
After you’ve gotten the OK, type
AT
You should get another OK back. +++ and AT put the XBee into command mode. This is a temporary state! For the next few seconds any information sent to the serial port will be used to command the XBee, and the XBee will not forward it on to any listeners.
The most common change is that of baud rate. Type
ATBD
The XBee will reply back with 3, which equates to a baud rate of 9600. Let’s say that we want to increase this to 57600. We type in
ATBD 6
and get back OK. To write the change to the XBee’s memory, type
ATWR
At this point, the XBee will be communicating at 57600 baud, so you must change the communication settings in your terminal program in order to continue.
If you ever have to pause and figure out what you are doing, just type +++ again to put the XBee back into command mode.
Another common change is PAN ID. XBees ship with a default PAN ID and you will want to avoid crosstalk with other people’s networks. The command for this is ATID. As before, issuing a plain ATID tells you the current value (probably 1332) and sending a command like ATID 1414 will change the PAN ID to 1414.
There is a full list of XBee configuration commands in the XBee User’s Guide, Chapter 10.
In writing this post I learned about the moltosenso IRON, a free cross-platform alternative to X-CTU. I have not tried it, but it might be useful for those who need to do more complicated configurations.
Building a fire-fighting robot
I’ve been looking for a reason to build another robot. A few weeks ago I found a list of robot competitions around the world. Ignoring the battle bot options, geography and capability led to me to the Penn State Abington Fire-Fighting Robot Contest:
The objective of the fire-fighting robot contest is to design a computer-controlled robot [...]
Stanford and Sebastian Thrun offering more free online classes
I posted previously about the free AI class taught last fall by Sebastian Thrun and Peter Norvig. It was a marvelous experience. I learned quite a bit, and completed all the homework and tests, with a perfect score on the final exam (which was not terribly hard). Well worth the time investment. The video format [...]
Experimenting with Sous-Vide Cooking
For the holidays, I asked my husband to get me an item from the Seattle Food Geek Gift Guide. I’ve been doing a great deal more cooking in the past months, so much that it has distracted me from other maker projects. At its best, cooking fulfills some of the same needs: learning something new, [...]
Taking Stanford’s Artificial Intelligence course
This week marks the beginning of Stanford’s introductory course in Artificial Intelligence, taught by Sebastian Thrun and Peter Norvig. This is the same course being given live at Stanford’s campus as CS221. Enrollment is free, and includes video lectures, quizzes, and (optionally) homework and exams. I have signed up for the full boat, they say [...]
A crash course in sewing
I’ve been meaning to learn to sew for a long time. I knew the basics, of course, sewing on a button, fixing a tear, and making a (crude) hem. It was clear that learning to use a sewing machine would make things much easier and provide a useful option for projects. I love engineering, and [...]
A visit to Maker Faire
Last weekend we went to Maker Faire at the New York Hall of Science. This was a repeat visit for us, and I wondered if we would see anything new or just a repeat of last year. Good news: lots of new things and we all had a great time.
The Faire has gotten a lot [...]
Tour de France, Day 3 – Alpe d’Huez and TDF Stage 19
Day 3: Col du Lauteret to Alpe d’Huez to Freney d’Oisans. 48 miles. Total ascent: 5,448 ft
For many of us, the highlight of the 5-day trip was the promise of a climb up Alpe d’Huez. This legendary climb with 21 switchbacks has long been associated with drama and skill at the Tour, and is often [...]
Tour de France, Day 2 – Le Chazelet and TDF Stage 18
Day 2: Col du Lautaret to Le Chazelet return. 20 miles. Total ascent: 4,721 ft
Today we had our first encounter with the Tour de France. Stage 18 came right by our hotel, which sits at the top of Col du Lauteret and at the base of Col du Galibier. As a result, we needed to [...]
Tour de France, Day 1 – Col du Lautaret
Day 1: La Grave to Col du Lautaret with Briancon Return. 30 miles. Total ascent: 5,643 ft
Today we met our guides and fellow riders in Grenoble. There are roughly 15 people in our group. There are 5 women, 3 of whom are riding, and except for me they are all with their husbands. Thanks [...]