Step 7: Set The Port Name And Launch The Application; Step 8: Section Summary Of Sending Digital Actuations; Step 9: Do More With Sending Digital Actuations - Digi XBee Zigbee Mesh Kit User Manual

Radio frequency (rf) module
Table of Contents

Advertisement

Inputs and outputs
Step 7: Set the port name and launch the application
For this step, set the port name and launch the application.
1. Change the port name in the Java source code to match the port that the COORD module
(sender) is connected to.
// TODO: Replace with the port where your coordinator module is connected.
private static final String PORT = "COM1";
// TODO: Replace with the baud rate of your coordinator module.
private static final int BAUD_RATE = 9600
2. Launch the application in your computer. Every second, you will see that the LED of the
ROUTER module (receiver) changes state.
Step 8: Section summary of sending digital actuations
In this section, you have learned that:
All XBee modules have a set of pins you can use to connect and configure sensors or actuators.
n
An actuator is a device that controls a mechanism or system. For instance, you can use an
n
XBee module connected to an actuator to send digital information to another XBee module so
that it raises or lowers your window blinds.
You can create a network with a central node that sends orders to remote nodes. This network
n
allows you to trigger real-world events wirelessly, such as switching on all the lights at home,
via actuators connected to remote node(s).
The default state of a pin that supports digital output depends on the values of the DIO setting:
n
Digital Output, Low [4]: the output is set by default to low.
l
Digital Output, High [5]: the output is set by default to high.
l

Step 9: Do more with sending digital actuations

If you are ready to work more extensively with actuations, try the following:
Add sensors to your network, as explained in
n
analog
data. Then control your actuators depending on the value returned. For example, switch
the router's LED on when a button connected to coordinator is pressed, or when the value of
the coordinator's potentiometer exceeds a defined threshold.
Instead of controlling an LED, connect a relay to one of the digital output pins to create a home
n
automation system. You can:
Switch lights on/off.
l
Switch the irrigation system of your garden on/off.
l
Raise/lower the blinds.
l
Control your garage door.
l
Extend the network by adding more XBee modules connected to different devices.
n
Control all your devices remotely with a smartphone application connected to an XBee
n
Gateway. See
XBee® Zigbee® Mesh Kit
Related
products.
Example: send digital actuations
Example: receive digital data
and
Lab: receive
125

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the XBee Zigbee Mesh Kit and is the answer not in the manual?

Table of Contents