Decode routine for weather station WT440H or WT450H
This piece of software decode Weahter station temperature and humidity freeware, by Lotfi BAGHLI, March, 2013
I hacked the TX WT440H, got 2 wires out (GND and DATA), http://www.upm-marketing.com/products/wd633+wt440h.html
I still want to get the data from a RX one (WS738) or a simple 433 MHz RX but signal pbs not yet solved In fact, from the builtin RX of the Weather station, it is ok, but from the external RX, the range is very small : 20 cm :-(
thanks to Jaakko Ala-Paavola, http://ala-paavola.fi/jaakko/doku.php?id=wt450h
for the protocol and decode routine
Connect 2 wires to the MBED : GND and Data Signal to p18
Temperature and Humidity are displayed on the Serial via USB of the MBED
Diff: main.cpp
- Revision:
- 6:74430c7239b7
- Parent:
- 5:71e7b4276a31
--- a/main.cpp Sat Mar 30 18:22:39 2013 +0000 +++ b/main.cpp Sat Mar 30 18:42:02 2013 +0000 @@ -1,4 +1,14 @@ #include "mbed.h" +// This piece of software decode Weahter station temperature and humidity +// freeware, by Lotfi BAGHLI, March, 2013 +// I hacked the TX WT440H, got 2 wires out (GND and DATA) +// I still want to get the data from a RX one (WS738) or a simple 433 MHz RX but signal pbs not yet solved +// +// thanks to Jaakko Ala-Paavola, http://ala-paavola.fi/jaakko/doku.php?id=wt450h +// for the protocol and decode routine +// +// Connect 2 wires to the MBED : GND and Data Signal to p18 +// Temperature and Humidity are displayed on the Serial via USB of the MBED DigitalOut myled(LED1); DigitalOut led2(LED2); @@ -166,7 +176,7 @@ wait(1); if (oldj != j) { - pc.printf("j:%d, Data: NET:%d ID:%d RH:%d T:%d.%d TIME:%s", j, net, id, rh, t_int, t_dec, ctime(&t)); + pc.printf("j:%d, Data: NET:%d ID:%d RH:%d T:%d.%d TIME:%s\r", j, net, id, rh, t_int, t_dec, ctime(&t)); oldj=j; }