Build a Wireless Weather System: Part 3
the program, then upload the
code to your DiosPro chip.
Once complete, a temperature of 99. 9 will be displayed
on the debug terminal. It will
also be transmitted out over
In order for the network
to get configured properly
when you apply power to
the various satellites, the
coordinator (indoor weather
satellite) needs to be up and
running before any other
module is powered up.
Load the Maxstream X-CTU software, select the USB development board, and hit the Terminal tab.
Make sure you select the 9600 baud
rate. The terminal should display various
pieces of telemetry as shown in Figure
19. While the data may not be valid at
this point, it does tell us that the three
satellites are working together properly.
print “Start Outside Weather Test”
print “Outside Temp: 99F”
hserout “Outside Temp: 99.9F”,13
■ FIGURE 21
I like to perform some basic
tests before I mount my outdoor
equipment, just to make sure things
are working properly. To do this, I
mount my anemometer and wind
vane on a small pole attached to a
small piece of wood for support as
shown in Figure 20. This allows me to
perform tests in my lab before moving
outdoors. This way, if I have problems
once I move the gear to the weather
pole, I know it’s simple wiring issues.
To connect the 1Wire network to
the satellite, I use a small surface mount
box like the one shown in Figure 21. I
wire a two-pin female header to the red
and green terminals on the bus. The red
terminal should be connected to the
data lead on your satellite’s
1Wire network interface. In
the case of the regulator interface, the outside pin closest to
the coax connector is the data
lead. The pin closest to the
data lead is the GND lead.
If your weather instruments are already mounted
on a pole, you can run a
cable from your sensors to the satellite
to perform your tests.
In order to read the 1Wire
sensors, you will need to obtain the
ROM serial numbers from each of the
sensors on the network. Included with
the downloads for this project is a
program called OutDoorSearch.txt.
With the AAG weather instrument
connected to your satellite, load and
run the OutDoorSearch.txt program. If
your sensors are connected properly,
the data from the three sensors should
be displayed as shown in Figure 22.
■ FIGURE 22
■ FIGURE 19
■ FIGURE 20
The wind vane uses the DS240.
The anemometer uses the DS2423.
Keep this in mind when you make
■ FIGURE 23
November 2007 45