Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Wireless Sensor Networks Using Arduino

You're reading from   Building Wireless Sensor Networks Using Arduino Leverage the powerful Arduino and XBee platforms to monitor and control your surroundings

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher
ISBN-13 9781784395582
Length 192 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Matthijs Kooijman Matthijs Kooijman
Author Profile Icon Matthijs Kooijman
Matthijs Kooijman
Arrow right icon
View More author details
Toc

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 displayed again.

If you are using a separate USB-to-serial converter, try swapping the DIN and DOUT wires; some of these converters have their labels inverted.

Make sure you connect GND between the XBee and USB-to-serial converter too, to establish...

You have been reading a chapter from
Building Wireless Sensor Networks Using Arduino
Published in: Oct 2015
Publisher:
ISBN-13: 9781784395582
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime