Troubleshooting

In an ideal world, everything works as expected right away. In the real world, you will run into problems every now and then. Here are some pointers to help you figure out what is wrong and how to fix it.

Communication with the XBee module is not working

Is serial communication not working at all? Check your connections: DIN to TX, DOUT to RX.

A good way to test this is to do a loopback test:

  1. Remove the XBee module from your board and use a jumper wire to connect DOUT (pin 2) and DIN (pin 3) on the board.
  2. Upload the SerialDump.ino sketch to the Arduino and open up the serial port using the serial monitor in the Arduino IDE (or another serial console program).
  3. If everything is wired correctly, any data you send should be received and ...

Get Building Wireless Sensor Networks Using Arduino now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.