O'Reilly logo

Arduino Robotic Projects by Richard Grimmett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Enabling an XBee interface in the Arduino IDE

Let's first set up the Arduino IDE for XBee that will be connected to your Arduino. Once you have connected all the shields to your Arduino, simply connect your Arduino with the USB cable to one of the computers. Bring up the Arduino IDE and then type in the following code into the sketch window:

Enabling an XBee interface in the Arduino IDE

This sketch is quite simple; you can turn on the on-board LED with remote commands, 1 to turn it on and 0 to turn it off. Once you have compiled and uploaded this code, disconnect the USB cable from the computer. You'll need to physically change a switch setting on the wireless shield so that the device will ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required