Decode routine for weather station WT440H or WT450H

Dependencies:   mbed

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 /media/uploads/lotfi_baghli/protocol_wt440.png

Committer:
lotfi_baghli
Date:
Fri Mar 29 18:36:54 2013 +0000
Revision:
1:a9798dd70dbf
Parent:
0:d9b6ce6032fc
Child:
2:5a073ef49b21
Ticker example

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lotfi_baghli 0:d9b6ce6032fc 1 #include "mbed.h"
lotfi_baghli 1:a9798dd70dbf 2
lotfi_baghli 1:a9798dd70dbf 3 Ticker flipper;
lotfi_baghli 1:a9798dd70dbf 4 DigitalOut led1(LED1);
lotfi_baghli 0:d9b6ce6032fc 5 DigitalOut led2(LED2);
lotfi_baghli 0:d9b6ce6032fc 6
lotfi_baghli 1:a9798dd70dbf 7 void flip() {
lotfi_baghli 1:a9798dd70dbf 8 led2 = !led2;
lotfi_baghli 0:d9b6ce6032fc 9 }
lotfi_baghli 1:a9798dd70dbf 10
lotfi_baghli 0:d9b6ce6032fc 11 int main() {
lotfi_baghli 1:a9798dd70dbf 12 led2 = 1;
lotfi_baghli 1:a9798dd70dbf 13 flipper.attach(&flip, 2.0); // setup flipper to call flip after 2 seconds
lotfi_baghli 1:a9798dd70dbf 14
lotfi_baghli 1:a9798dd70dbf 15 // spin in a main loop. flipper will interrupt it to call flip
lotfi_baghli 0:d9b6ce6032fc 16 while(1) {
lotfi_baghli 1:a9798dd70dbf 17 led1 = !led1;
lotfi_baghli 1:a9798dd70dbf 18 wait(0.2);
lotfi_baghli 0:d9b6ce6032fc 19 }
lotfi_baghli 1:a9798dd70dbf 20 }