XBee adapter

  • Use different variations of XBee modules
  • 5V to 3.3V logic level conversion
  • Integrated 3.3V regulator, reducing load on other regulators in the circuit (e.g. Arduino voltage regulator)
  • Direct access to XBee pins on 2.54mm terminals

The XBee Nanoshield provides an adapter layer to use the popular XBee wireless modules within a Nanoshield-based project. This allows the development of remote sensors or actuators, including long range applications. Some examples of applications are:

Some XBee modules that are compatible with the XBee Nanoshield are:

  • XBee Digimesh
  • XBee 802.15.4
  • XBee Zigbee
  • XBee Wi-Fi

!XBee module connection

An XBee module can be connected to the XBee Nanoshield as shown in the following picture:

XBee module attachment

The following sections explain how the items above can be connected to the rest of the system.

!Connection to an Arduino + Base Board Uno

The easiest way to use the Termopar Nanoshield along with an Arduino board is by using a Base Board Uno or Base Board L Uno. Just connect the boards as shown in the picture below and load our sample code to check that the system is working (see the sample code section below). This assembly can be used with Arduino UNO, Mega R3 or similar boards. The picture below shows how the assembly looks like.

Connection to an Arduino using the Base Board Uno (click on the image to enlarge)

!Connection to a Base Boarduino

It is also possible to connect the XBee Nanoshield directly to our Arduino-compatible board, the Base Boarduino. The connection is done the same way it is done with the Base Board, as shown in the picture below. You just have to connect the boards, load our sample code and check that the system is working (see the sample code section at the bottom of the page).

Connection to a Base Boarduino (click on the image to enlarge)

!Sample code

With Arduino, communication to the XBee module is usually done via a software-based serial port (or software UART). In the default configuration, it is enough to just declare the serial port as follows:

SoftwareSerial xBee(9, 6);

This code will create a serial port using the D9 pin for reception (RX) and the D6 pin for transmission (TX). No additional configuration is necessary, and this serial port can be used to communicate with the XBee module.

!Serial port configuration

As mentioned above, in the default configuration the D9 and D6 pins are used for serial communication. If needed, one can configure the XBee Nanoshield to use any of the D6, D7, D8, D9, D10, A1, A2 or A3 pins. For that, the SOFT_SERIAL solder jumper set can be reconfigured using a soldering iron, connecting the desired pins to the RX and TX rails on the board.

The SERIAL_SEL jumper must be normally kept in the SOFT position. The HARD position must be used only in special cases, when one must specifically use the RX and TX pins on the 15-pin headers on the bottom side of the board. The HARD position can be used, for instance, to access the Arduino (or similar) remotely, directly from a computer, using the XBee connection as a USB cable replacement.