O'Reilly logo

Building Wireless Sensor Networks by Robert Faludi

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

Prepare the Base Station

Your base station radio will use a breadboard connected to an Arduino board.

Connect power from Arduino to breadboard

  1. Hook up a red wire from the 3.3 V output of the Arduino to one of the power rails on the breadboard.

  2. Hook up a black wire from either ground (GND) connection on the Arduino to a ground rail on the breadboard.

  3. Hook up power and ground across the breadboard so that the rails on both sides are live.

Warning

Make sure you are using 3.3 V power.

Coordinator XBee connection to Arduino

  1. With the coordinator XBee mounted on its breakout board, position the breakout board in the center of one of your breadboards so that the two rows of male header pins are inserted on opposite sides of the center trough.

  2. Use red hookup wire to connect pin 1 (VCC) of the XBee to 3.3-volt power.

  3. Use black hookup wire to connect pin 10 (GND) of the XBee to ground.

  4. Use yellow (or another color) hookup wire to connect pin 2 (TX/DOUT) of the XBee to digital pin 0 (RX) on your Arduino.

  5. Finally, use blue (or another color) hookup wire to connect pin 3 (RX/DIN) of your XBee to digital pin 1 (TX) on your Arduino.

Light output

  1. Attach the positive (longer) lead of an LED to Arduino digital pin 11.

  2. Attach the shorter ground lead from your LED to ground.

  1. If you prefer to use another output, like an audio buzzer or pager motor, you can hook it up in the same way. Perhaps your romance chops are best demonstrated by a puff of scented air freshener. Then ...

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