Lotfi Baghli / Mbed 2 deprecated Weather_WT440H

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
lotfi_baghli
Date:
Sat Mar 30 18:42:02 2013 +0000
Parent:
5:71e7b4276a31
Commit message:
Weather_WT440H decode

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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;
         }