2 connecting sensors to the cws900, Programming the datalogger, 1 array declaration – Campbell Scientific Wireless Sensor Network (CWB100, CWS220, and CWS900) User Manual

Page 37

Advertising
background image

Wireless Sensor Network

3.9.2 Connecting Sensors to the CWS900

For sensors that are compatible with the CWS900 but do not have the –LWS
connector option available, or for compatible sensors not sold by Campbell
Scientific, a connector will need to be added to the sensor in order to interface
it with the CWS900. Two options are available.

A CWS900 Mating Connector may be purchased from Campbell Scientific and
connected to the sensor pigtail. This will require soldering the sensor wires to
pins on the connector and ensuring the connections are waterproof.

A DES2 Junction Box with a special –LWS cable may be purchased from
Campbell Scientific and the sensor connected to the –LWS cable through a
terminal block.

The connector pin-out for the CWS900 is shown in Figure 3.9-2.

FIGURE 3.9-2. CWS900 Connector Pin-Out

After connecting the non-standard sensor to the CWS900, test the connections
and sensor performance with DevConfig software. See Appendix A for details.

4. Programming the Datalogger

Section 3 uses a simple datalogger program to set up a network of two wireless
sensors. More advanced programming concepts are described below.

4.1 Array Declaration

All wireless sensors in a network will have their values written to the same
variable array. It is important that the array be sized large enough to store all
of the values from all of the sensors. If a sensor is discovered but the array is
not large enough to hold all of the values reported by the sensor, then none of
the values reported by that sensor will be received and it will appear that the
sensor has not been discovered. Each sensor in the network will transmit 4 –
10 values, depending on its configuration. Table 4.1-1 shows the number of
values transmitted by different sensors in a wireless network.

29

Advertising