Hardware Reference
In-Depth Information
turn value changes accordingly. Note that the returned data is in the JSON format, which
will be really important later when we are going to process this information and display it.
Now that you are sure that the code is working, you can switch over to XBee communica-
tion. For that, simply put the switch next to the XBee module to UART . Now, the serial
port of the Arduino board is directly wired to the XBee module.
Note
By default, all the XBee modules sold are configured on the same Personal Area Net-
work ( PAN ) ID, which is 3332. This means that all the modules will receive data from
other modules on the same PAN ID. For experimentation, you can leave it at its default
value. However, you might want to change this later, in case your neighbor is, for ex-
ample, using XBee devices as well.
To continue further, insert the XBee module you want to modify in the USB XBee ex-
plorer and open the XCTU XBee tool. Click on the top-left button to add a new device
and select the USB explorer serial port. You should get the following screen:
You will then be able to change the PAN ID of your device. To configure all the modules
in your network, just repeat the procedure for each XBee module.
Search WWH ::




Custom Search