EZ6 “Meteo” wireless sensor receiver protocol - binary decode (http://arduino.cc/forum/index.php/topic,142871.0.html)

Decoded by: andrzej@czad.org


00          BB CC LLLLMMMMHHHH LLLLHHHH ????????

LD Rnd.Nmbr BT CH TemperatureF Humidity CRC?????

00 11101001 10 01 110001010110 10000010 00101101

Which is: Battery=2[best] Channel=1[CH2] Temperature=72.8F [22.67*C] Humidity=40%


Leading 2 zeroes (“LD” - lead)

They are seen in every packet read during measures.

This ‘identify’ the sensor.

Probably to align the AGC circuit on the receiver.” [Riva]

RandomNumber(“Rnd.Nmbr”)

Random number generated by device every battery change.

it's probably so multiple senders can be connected to a single base station.” [Riva]

Preambles(Random Numbers) seen (+ decimal values - read straight and LLLLHHHH way):

1110 1001 [straight: 233 | LLLLHHHH: 158 ]

0001 1100 [straight:  28 | LLLLHHHH: 193 ]

1000 1110 [straight: 142 | LLLLHHHH: 232 ]

0011 0001 [straight:  49 | LLLLHHHH:  19 ]

1011 1111 [straight: 191 | LLLLHHHH: 251 ]

0100 1011 [straight:  75 | LLLLHHHH: 180 ]

1010 0100 [straight: 164 | LLLLHHHH:  74 ]

Battery (“BT”):

Battery status indicator. Values seen:

00 - dec: 0 [low] (doesn’t mean ‘low’ on weather station tho)

01 - dec: 1 [2/3]

10 - dec: 2 [best]

Channel (“CH”):

CH# - channel number

00 - CH1

01 - CH2

10 - CH3

Humidity: (HHHH + LLLL)

Humidity is stored as low/high order nibbles. In the example above take the first 4 bits and tack them on the end of the next 4 bits. 11010101 becomes 01011101 that is 93 decimal. [source]

TemperatureF: (HHHH + MMMM + LLLL) - in Fahrenheit (even with Celsius shown on LCD)

Looks like temperature is transmitted as 12 bits in 3x nibbles ranging from low to high nibbles. A fixed offset of 900 is applied to the temperature value so 0 degrees F = 900 and each degree F change is 10 decimal. In the example 001101000101 becomes 010101000011 that is 1347 decimal.

1347-900 = 447

447/10 = 44.7

44.7F = 7.1C [source]

CRC:

(unknown yet)

Assuming CRC is same as humidity - LLLL + HHHH, seen LLLL values were:

0000 - dec: 0

0001 - dec: 1

1000 - dec: 8

1001 - dec: 9

1010 - dec: 10

It has to be something with channel value, as you can see in these readings:

001010010001 01 011011110011 00100011 10010101 - Battery=1 Channel=1 Temperature=11.4F Humidity=50%

001010010001 10 011011110011 00100011 10011000 - Battery=1 Channel=2 Temperature=11.4F Humidity=50%

-- same values of TEMP and HUM, different random:

001011111100 01 011001110110 00000011 00001111 - Battery=0 Channel=1 Temperature=75.4F Humidity=48%

000011000100 01 011001110110 00000011 10001011 - Battery=0 Channel=1 Temperature=75.4F Humidity=48%

-- channel number dependent

001010010001 00 011011110011 00100011 00010111 - Battery=1 Channel=0 Temperature=11.4F Humidity=50% CH-1

001010010001 01 011011110011 00100011 10010101 - Battery=1 Channel=1 Temperature=11.4F Humidity=50% CH-2

001010010001 10 011011110011 00100011 10011000 - Battery=1 Channel=2 Temperature=11.4F Humidity=50% CH-3


LOOK @ BOTTOM - ALL BELOW IS CHRONOLOGICAL

                                              CC LLLLMMMMHHHH LLLLHHHH

TT.T*C HH% ----Preamble-pulse-stuff------- B? CH Temperature- Humidity --CRC?--

5.7*C  94% 0000000000000000000000000101011101 01 101100100101 11100101 10011110 [not sure about values]

7,1*C  93% 0000000000000000000000000101011101 01 001101000101 11010101 10011000

7,3*C  92% 0000000000000000000000000101011101 01 011101000101 11000101 10010110

7,3*C  92% 0000000000000000000000000101011101 01 011101000101 11000101 10010110 [probably BC change?]

8.1*C  91% 0000000000000000000000000101011110 01 010101010101 10110101 10010001 [probably BC change?]

9.0*C  90% 0000000000000000000000000101011110 01 010101010101 10110101 00011001 [not sure about values]

9.0*C  90% 0000000000000000000000000101011110 01 011001100101 10100101 10011000

9.2*C  88% 0000000000000000000000000101011110 01 100101100101 10000101 10010110

10.3*C 85% 0000000000000000000000000101011110 01 111001110101 01010101 00010001

10.6*C 85% 0000000000000000000000000101011110 01 001010000101 01010101 10011010

10.9*C 84% 0000000000000000000000000101011110 01 100110000101 01000101 10010000

11.8*C 83% 0000000000000000000000000101011110 01 100010010101 00110101 10011100

11.9*C 83% 0000000000000000000000000101011110 01 101110010101 00110101 10010110

12.2*C 81% 0000000000000000000000000101011110 01 000010100101 00010101 10010101

12.6*C 79% 0000000000000000000000000101011110 01 011010100101 11110100 10010010

13.2*C 75% 0000000000000000000000000101011110 01 000110110101 10110100 10010110

13.4*C 75% 0000000000000000000000000101011110 01 011010110101 10110100 10010111

13.7*C 75% 0000000000000000000000000101011110 01 101010110101 10110100 00010001 (no force)

13.9*C 75% 0000000000000000000000000101011110 01 111010110101 10110100 10010010

14.2*C 75% 0000000000000000000000000101011110 01 001111000101 10110100 00011100 (no force)

14.4*C 75% 0000000000000000000000000101011110 01 011111000101 10110100 10011111

14.6*C 75% 0000000000000000000000000101011110 01 101111000101 10110100 10010001

14.6*C 75% 0000000000000000000000000101011110 01 101111000101 10110100 00011001 (no force)

14.8*C 75% 0000000000000000000000000101011110 01 111111000101 10110100 10011010

15.1*C 73% 0000000000000000000000000101011110 01 010011010101 10100100 10010010 [not sure about values]

15.3*C 73% 0000000000000000000000000101011110 01 011111010101 10010100 10010111

16.2*C 67% 0000000000000000000000000101011110 01 011111100101 00110100 10010101

16.6*C 64% 0000000000000000000000000101011110 01 111111100101 00000100 00010111 (no force)

16.9*C 66% 0000000000000000000000000101011110 01 010111110101 00100100 00010110 (no force)

17.2*C 65% 0000000000000000000000000101011110 01 101011110101 00010100 00011101

17.4*C 64% 0000000000000000000000000101011110 01 111011110101 00000100 00010011 (no force)

17.6*C 63% 0000000000000000000000000101011110 01 000000000110 11110011 00010001

17.7*C 61% 0000000000000000000000000101011110 01 001100000110 11010011 10011001

17.9*C 60% 0000000000000000000000000101011110 01 011100000110 11000011 00011111

CH 1 -----------

18.0*C 58% 0000000000000000000000000101011110 00 100000000110 10100011 10010100

18.2*C 58% 0000000000000000000000000101011110 00 110000000110 10100011 00010111

CH 3 -----------

18.4*C 59% 0000000000000000000000000101011110 10 111100000110 10110011 10010111

18.6*C 57% 0000000000000000000000000101011110 10 001000010110 10010011 10010111

18.7*C 56% 0000000000000000000000000101011110 10 010100010110 10000011 10010011

CH 2 -----------

19.0*C 56% 0000000000000000000000000101011110 01 101000010110 10000011 10011010

19.2*C 56% 0000000000000000000000000101011110 01 110100010110 10000011 10011011

19.2*C 56% 0000000000000000000000000101011110 01 110100010110 10000011 00010011

19.3*C 56% 0000000000000000000000000101011110 01 000000100110 10000011 10010101

19.5*C 55% 0000000000000000000000000101011110 01 001100100110 01110011 00010001

19.7*C 55% 0000000000000000000000000101011110 01 011000100110 01110011 10010100

19.8*C 54% 0000000000000000000000000101011110 01 100000100110 01100011 10010011

19.9*C 55% 0000000000000000000000000101011110 01 101000100110 01110011 10011010

20.0*C 55% 0000000000000000000000000101011110 01 110000100110 01110011 10011101

20.1*C 54% 0000000000000000000000000101011110 01 111000100110 01100011 10010100

20.1*C 54% 0000000000000000000000000101011110 01 111000100110 01100011 10010100

20.1*C 47% 0000000000000000000000000101011110 01 110100100110 11110010 10010110

20.1*C 47% 0000000000000000000000000101011110 01 110100100110 11110010 00011110

20.1*C 48% 0000000000000000000000000101011110 01 111000100110 00000011 00010001 (no force)

20.2*C 48% 0000000000000000000000000101011110 01 111100100110 00000011 10011111

20.2*C 47% 0000000000000000000000000101011110 01 000000110110 11110010 10011100

20.0*c 44% 0000000000000000000000000101011110 01 110000100110 11000010 00010111 CH2

20.0*C 44% 0000000000000000000000000101011110 00 110000100110 11000010 00011101 CH1

20.1*C 44% 0000000000000000000000000101011110 10 111000100110 11000010 10011110 CH3

---

WEAKER BATTERY

           0000000000000000000000000010111100 01 010000110110 10100010 00001110

           0000000000000000000000000010111100 01 001100110110 10010010 10001000

           0000000000000000000000000010111110 01 001000110110 01110010 00001010

BETTER BATTERY

           0000000000000000000000001010110100 01 110000110110 01010010 10001010

           0000000000000000000000001010110100 01 110000110110 01010010 10001010

           0000000000000000000000001010110100 01 110000110110 01010010 10001010

ONE USED AND ONE GOOD BATTERY

           0000000000000000000000001111010100 01 011101000110 01000010 10001011

           0000000000000000000000001111010100 01 011101000110 01000010 10001011

           0000000000000000000000001111010100 01 011101000110 01000010 10001011


--RIVA SKETCH started 19:03 05/02/2013:

00          BB CC LLLLMMMMHHHH LLLLHHHH

    Rnd.Nmbr                            ????????

LD          BT CH Temperature- Humidity --CRC?--   TT.TT*F HH%

00 10100100 00 01 011000010101 11100100 00001001   40.20 F 78%

00 10100100 00 01 010100010101 11100100 00000011   40.10 F 78%

00 10100100 00 01 010100010101 11100100 00000011   40.10 F 78%

00 10100100 00 01 010100010101 11100100 00000011   40.10 F 78%

00 10100100 00 01 010100010101 11100100 00000011   40.10 F 78%

00 10100100 00 01 011100010101 11110100 00001010   40.30 F 79%

00 10100100 00 01 101100010101 00000101 00000001   40.70 F 80%

00 10100100 00 01 110100010101 00000101 00000110   40.90 F 80%

00 10100100 00 01 110100010101 00000101 00000110   40.90 F 80%

00 10100100 00 01 110100010101 11110100 00000011   40.90 F 79%

00 10100100 00 01 110100010101 11110100 10001011   40.90 F 79%

00 10100100 00 01 110100010101 11110100 10001011   40.90 F 79%

00 10100100 00 01 110100010101 11110100 10001011   40.90 F 79%

00 10100100 00 01 111000010101 00000101 00001100   41.00 F 80%

00 10100100 00 01 111000010101 00000101 00001100   41.00 F 80%

00 10100100 00 01 111000010101 00000101 00001100   41.00 F 80%

00 10100100 01 01 100100100101 00110101 00001010   42.10 F 83%

00 10100100 01 01 100100100101 00110101 00001010   42.10 F 83%

00 10100100 01 01 111100110101 01000101 00010110   44.30 F 84%

00 10100100 01 01 111100110101 01000101 00010110   44.30 F 84%

00 10100100 01 01 010001010101 01010101 00010000   46.40 F 85%

00 10100100 01 01 010001010101 01010101 00010000   46.40 F 85%

00 10100100 01 01 100001010101 01010101 00011110   46.80 F 85%

00 10100100 01 01 100001010101 01010101 00011110   46.80 F 85%

00 10100100 01 01 100001010101 01010101 00011110   46.80 F 85%

00 10100100 01 01 001101100101 01010101 00010111   47.90 F 85%

00 10100100 01 01 001101100101 01010101 00010111   47.90 F 85%

00 10100100 01 01 001101100101 01010101 00010111   47.90 F 85%

00 10100100 01 01 111001100101 00110101 00010010   49.00 F 83%

00 10100100 01 01 111001100101 00110101 00010010   49.00 F 83%

00 10100100 01 01 111001100101 00110101 00010010   49.00 F 83%

00 10100100 01 01 100101110101 00100101 00010100   50.10 F 82%

00 10100100 01 01 100101110101 00100101 00010100   50.10 F 82%

00 10100100 01 01 100101110101 00100101 00010100   50.10 F 82%

00 10100100 10 01 111101110101 00010101 00011101   50.70 F 81%

00 10100100 10 01 111101110101 00010101 00011101   50.70 F 81%

00 10100100 10 01 111101110101 00010101 00011101   50.70 F 81%

00 10100100 10 01 100110000101 11110100 00010111   51.70 F 79%

00 10100100 10 01 100110000101 11110100 00010111   51.70 F 79%

00 10100100 10 01 001110010101 11010100 00010110   52.70 F 77%

00 10100100 10 01 001110010101 11010100 00010110   52.70 F 77%

00 10100100 10 01 110110010101 11000100 00010001   53.70 F 76%

00 10100100 10 01 110110010101 11000100 00010001   53.70 F 76%

00 10100100 10 01 001010100101 11000100 00010011   54.20 F 76%

00 10100100 10 01 001010100101 11000100 00010011   54.20 F 76%

00 10100100 10 01 001010100101 11000100 00010011   54.20 F 76%

00 10100100 10 01 001010100101 11000100 00010011   54.20 F 76%

00 10100100 10 01 101010100101 10110100 00011110   55.00 F 75%

00 10100100 10 01 101010100101 10110100 00011110   55.00 F 75%

00 10100100 10 01 101010100101 10110100 00011110   55.00 F 75%

00 10100100 10 01 001010110101 10010100 00010011   55.80 F 73%

00 10100100 10 01 001010110101 10010100 00010011   55.80 F 73%

00 10100100 10 01 001010110101 10010100 00010011   55.80 F 73%

00 10100100 10 01 100010110101 10000100 00011111   56.40 F 72%

00 10100100 10 01 100010110101 10000100 00011111   56.40 F 72%

00 10100100 10 01 100010110101 10000100 00011111   56.40 F 72%

00 10100100 10 01 101110110101 01110100 00010011   56.70 F 71%

00 10100100 10 01 101110110101 01110100 00010011   56.70 F 71%

00 10100100 10 01 000111000101 01100100 00010001   57.30 F 70%

00 10100100 10 01 000111000101 01100100 00010001   57.30 F 70%

00 10100100 10 01 100011000101 01010100 00011101   58.00 F 69%

00 10100100 10 01 100011000101 01010100 00011101   58.00 F 69%  

00 10100100 10 01 110111110101 10110011 00011100   63.30 F 59%

00 10100100 10 01 000100000110 10100011 00011000   63.70 F 58%

00 10100100 10 01 010000000110 10100011 00010101   64.00 F 58%

00 10100100 10 01 011000000110 10100011 00011001   64.20 F 58%

00 10100100 10 01 101000000110 10010011 00011000   64.60 F 57%

00 10100100 10 01 101000000110 10010011 00011000   64.60 F 57%

00 10100100 10 01 110100000110 10000011 00011100   64.90 F 56%

00 10100100 10 01 110100000110 10000011 00011100   64.90 F 56%

00 10100100 10 01 000000010110 10000011 00010110   65.20 F 56%

00 10100100 10 01 001000010110 10000011 00011010   65.40 F 56%

00 10100100 10 01 001100010110 10000011 00011100   65.50 F 56%

00 10100100 10 01 001100010110 10000011 00011100   65.50 F 56%

00 10100100 10 01 011100010110 01110011 00010001   65.90 F 55%

00 10100100 10 01 011100010110 01110011 00010001   65.90 F 55%

00 10100100 10 01 100100010110 01100011 00010110   66.10 F 54%

00 10100100 10 01 101100010110 01100011 00011010   66.30 F 54%

00 10100100 10 01 101100010110 01100011 00011010   66.30 F 54%

00 10100100 10 01 110000010110 01010011 00010100   66.40 F 53%

00 10100100 10 01 111100010110 01010011 00011110   66.70 F 53%

00 10100100 10 01 111100010110 01010011 00011110   66.70 F 53%

00 10100100 10 01 000100100110 01000011 00011111   66.90 F 52%

00 10100100 10 01 000100100110 01000011 00011111   66.90 F 52%

00 10100100 10 01 000100100110 01000011 00011111   66.90 F 52%

00 10100100 10 01 001100100110 01000011 00010011   67.10 F 52%

00 10100100 10 01 010000100110 01000011 00010010   67.20 F 52%

00 10100100 10 01 011000100110 01000011 00011110   67.40 F 52%

00 10100100 10 01 011100100110 00110011 00010000   67.50 F 51%

00 10100100 10 01 011100100110 00110011 00010000   67.50 F 51%

00 10100100 10 01 011100100110 00110011 00010000   67.50 F 51%

00 10100100 10 01 100100100110 00110011 00010010   67.70 F 51%

00 10100100 10 01 100100100110 00110011 00010010   67.70 F 51%

00 10100100 10 01 101000100110 00110011 00011000   67.80 F 51%

00 10100100 10 01 101000100110 00110011 00011000   67.80 F 51%

00 10100100 10 01 101100100110 00110011 00011110   67.90 F 51%

00 10100100 10 01 101100100110 00110011 00011110   67.90 F 51%

00 10100100 10 01 101100100110 00110011 00011110   67.90 F 51%

00 10100100 10 01 110000100110 00100011 00011010   68.00 F 50%

00 10100100 10 01 111000100110 00100011 00010110   68.20 F 50%

00 10100100 10 01 111000100110 00100011 00010110   68.20 F 50%

00 10100100 10 01 111000100110 00100011 00010110   68.20 F 50%

00 10100100 10 01 000000110110 00010011 00011001   68.40 F 49%

00 10100100 10 01 000000110110 00010011 00011001   68.40 F 49%

00 10100100 10 01 001000110110 00010011 00010101   68.60 F 49%

00 10100100 10 01 001000110110 00010011 00010101   68.60 F 49%

00 10100100 10 01 001000110110 00010011 00010101   68.60 F 49%

00 10100100 10 01 010000110110 00010011 00010010   68.80 F 49%

00 10100100 10 01 010000110110 00010011 00010010   68.80 F 49%

00 10100100 10 01 010000110110 00010011 00010010   68.80 F 49%

00 10100100 10 01 010000110110 00010011 00010010   68.80 F 49%

00 10100100 10 01 010000110110 00010011 00010010   68.80 F 49%

00 10100100 10 01 011000110110 00010011 00011110   69.00 F 49%

00 10100100 10 01 011000110110 00010011 00011110   69.00 F 49%

00 10100100 10 01 011000110110 00000011 00011011   69.00 F 48%

00 10100100 10 01 011000110110 00000011 00011011   69.00 F 48%

00 10100100 10 01 100000110110 00000011 00011001   69.20 F 48%

00 10100100 10 01 100100110110 00000011 00011111   69.30 F 48%

00 10100100 10 01 100100110110 00000011 00011111   69.30 F 48%

00 10100100 10 01 101000110110 00000011 00010101   69.40 F 48%

00 10100100 10 01 101000110110 00000011 00010101   69.40 F 48%

00 10100100 10 01 101000110110 00000011 00010101   69.40 F 48%

00 10100100 10 01 101100110110 11110010 00010110   69.50 F 47%

00 10100100 10 01 101100110110 11110010 00010110   69.50 F 47%

00 10100100 10 01 110100110110 11110010 00010001   69.70 F 47%

00 10100100 10 01 110100110110 11110010 00010001   69.70 F 47%

00 10100100 10 01 110100110110 11110010 00010001   69.70 F 47%

00 10100100 10 01 111000110110 11110010 00011011   69.80 F 47%

00 10100100 10 01 111000110110 11110010 00011011   69.80 F 47%

00 10100100 10 01 111100110110 11110010 00011101   69.90 F 47%

00 10100100 10 01 000101000110 11110010 00010001   70.10 F 47%

00 10100100 10 01 000101000110 11110010 00010001   70.10 F 47%

00 10100100 10 01 000101000110 11110010 00010001   70.10 F 47%

00 10100100 10 01 000101000110 11110010 00010001   70.10 F 47%

00 10100100 10 01 000101000110 11110010 00010001   70.10 F 47%

00 10100100 10 01 001001000110 11100010 00011110   70.20 F 46%

00 10100100 10 01 001001000110 11100010 00011110   70.20 F 46%

00 10100100 10 01 010001000110 11100010 00011001   70.40 F 46%

00 10100100 10 01 010001000110 11100010 00011001   70.40 F 46%

00 10100100 10 01 010101000110 11100010 00011111   70.50 F 46%

00 10100100 10 01 010101000110 11100010 00011111   70.50 F 46%

00 10100100 10 01 011001000110 11100010 00010101   70.60 F 46%

00 10100100 10 01 011101000110 11100010 00010011   70.70 F 46%

00 10100100 10 01 011101000110 11100010 00010011   70.70 F 46%

00 10100100 10 01 011101000110 11100010 00010011   70.70 F 46%

00 10100100 10 01 010001010110 11000010 00010001   72.00 F 44%

00 10100100 10 01 111001010110 10100010 00010101   73.00 F 42%

00 10100100 10 01 100001100110 10000010 00011110   74.00 F 40%

00 10100100 10 01 100001100110 10000010 00011110   74.00 F 40%

00 10100100 10 01 110001100110 01110010 00010011   74.40 F 39%

00 10100100 10 01 110001100110 01110010 00010011   74.40 F 39%

00 10100100 10 01 000110000110 01000010 00011011   76.50 F 36%

00 10100100 10 01 010110000110 00110010 00011000   76.90 F 35%

00 10100100 10 01 010110000110 00110010 00011000   76.90 F 35%

00 10100100 10 01 010110000110 00110010 00011000   76.90 F 35%

00 10100100 10 01 101110000110 00110010 00011010   77.50 F 35%

00 10100100 10 01 000110010110 00100010 00010100   78.10 F 34%

00 10100100 10 01 000110010110 00100010 00010100   78.10 F 34%

00 10100100 10 01 100010010110 00010010 00011000   78.80 F 33%

00 10100100 10 01 111010010110 00000010 00011010   79.40 F 32%

00 10100100 10 01 000010100110 00000010 00011110   79.60 F 32%

00 10100100 10 01 000010100110 00000010 00011110   79.60 F 32%

00 10100100 10 01 000010100110 00000010 00011110   79.60 F 32%

00 10100100 10 01 010110100110 11110001 00010000   80.10 F 31%

00 10100100 10 01 100110100110 11110001 00011110   80.50 F 31%

00 10100100 10 01 001110110110 11010001 00011111   81.50 F 29%

00 10100100 10 01 011110110110 11010001 00010100   81.90 F 29%

00 10100100 10 01 011110110110 11010001 00010100   81.90 F 29%

00 10100100 10 01 101110110110 11000001 00011111   82.30 F 28%

00 10100100 10 01 101110110110 11000001 00011111   82.30 F 28%

00 10100100 10 01 111110110110 11000001 00010100   82.70 F 28%

00 10100100 10 01 001011000110 10110001 00011010   83.00 F 27%

00 10100100 10 01 010111000110 10110001 00011011   83.30 F 27%

00 10100100 10 01 010111000110 10110001 00011011   83.30 F 27%

00 10100100 10 01 011011000110 10110001 00010001   83.40 F 27%

00 10100100 10 01 100011000110 10100001 00010110   83.60 F 26%

00 10100100 10 01 100011000110 10100001 00010110   83.60 F 26%

00 10100100 10 01 101011000110 10100001 00011010   83.80 F 26%

00 10100100 10 01 110011000110 10100001 00011101   84.00 F 26%

00 10100100 10 01 110111000110 10100001 00011011   84.10 F 26%

00 10100100 10 01 110111000110 10100001 00011011   84.10 F 26%

00 10100100 10 01 111011000110 10010001 00011110   84.20 F 25%

00 10100100 10 01 111011000110 10010001 00011110   84.20 F 25%

00 10100100 10 01 000011010110 10010001 00011110   84.40 F 25%

00 10100100 10 01 001011010110 10000001 00010111   84.60 F 24%

00 10100100 10 01 001011010110 10000001 00010111   84.60 F 24%


00          BB CC LLLLMMMMHHHH LLLLHHHH

   Rnd.Nmbr                             ????????

LD          BT CH Temperature- Humidity --CRC?--   BT bits=x CHannel=x Temperature=XXXF Humidity=XX%  Comments

00 10100100 01 01 110111010011 00000010 10100100 - Battery=1 Channel=1 Temperature=8.9F Humidity=32%  NEW CRC VALUE!

00 10100100 01 01 110111010011 00000010 10100100 - Battery=1 Channel=1 Temperature=8.9F Humidity=32%  NEW CRC VALUE!!

00 10100100 01 01 001011100011 11000010 00100111 - Battery=1 Channel=1 Temperature=9.4F Humidity=44%

00 10100100 01 01 011011110011 00100011 10010101 - Battery=1 Channel=1 Temperature=11.4F Humidity=50% CRC-channel!!!

00 10100100 01 10 011011110011 00100011 10011000 - Battery=1 Channel=2 Temperature=11.4F Humidity=50% CH-3 test

00 10100100 01 00 011011110011 00100011 00010111 - Battery=1 Channel=0 Temperature=11.4F Humidity=50% CH-1 test

00 10100100 01 01 010100000100 00100011 00010001 - Battery=1 Channel=1 Temperature=12.9F Humidity=50%

00 10100100 01 01 111000010100 00010100 00011010 - Battery=1 Channel=1 Temperature=15.4F Humidity=65%

00 10100100 01 01 111000010100 00010100 00011010 - Battery=1 Channel=1 Temperature=15.4F Humidity=65%

00 10100100 01 01 100101000100 11110100 00010010 - Battery=1 Channel=1 Temperature=19.7F Humidity=79%

00 10100100 01 01 110001100100 01100101 00010011 - Battery=1 Channel=1 Temperature=23.2F Humidity=86%

00 10100100 01 01 100110010100 11000101 00010111 - Battery=1 Channel=1 Temperature=27.7F Humidity=92%

00 10100100 01 01 000010110100 11000101 00010000 - Battery=1 Channel=1 Temperature=30.0F Humidity=92%

00 10100100 01 01 011111000100 11000101 00011111 - Battery=1 Channel=1 Temperature=32.3F Humidity=92%

00 10100100 01 01 011111000100 11000101 00011111 - Battery=1 Channel=1 Temperature=32.3F Humidity=92%

00 10100100 01 01 110011010100 10110101 00011010 - Battery=1 Channel=1 Temperature=34.4F Humidity=91%

00 10100100 01 01 110011010100 10110101 00011010 - Battery=1 Channel=1 Temperature=34.4F Humidity=91%

00 10100100 01 01 000011100100 10110101 00010010 - Battery=1 Channel=1 Temperature=34.8F Humidity=91%

00 10100100 01 01 010111110100 10010101 00010111 - Battery=1 Channel=1 Temperature=36.9F Humidity=89%

00 10100100 01 01 000000000101 10000101 00011101 - Battery=1 Channel=1 Temperature=38.0F Humidity=88%

00 10100100 01 01 110100000101 01100101 00010110 - Battery=1 Channel=1 Temperature=39.3F Humidity=86%

00 10100100 10 01 110100010101 01010101 00011010 - Battery=2 Channel=1 Temperature=40.9F Humidity=85% BATTERY CHANGE

00 10100100 10 01 110100010101 01010101 00011010 - Battery=2 Channel=1 Temperature=40.9F Humidity=85% got warmer and

00 10100100 10 01 011000100101 01000101 00010110 - Battery=2 Channel=1 Temperature=41.8F Humidity=84% LCD becameclear

00 10100100 10 01 011000100101 01000101 00010110 - Battery=2 Channel=1 Temperature=41.8F Humidity=84%

00 10100100 10 01 001000110101 00110101 00010111 - Battery=2 Channel=1 Temperature=43.0F Humidity=83%

00 10100100 10 01 111100110101 00110101 00011111 - Battery=2 Channel=1 Temperature=44.3F Humidity=83%

00 10100100 10 01 110001000101 00100101 00011110 - Battery=2 Channel=1 Temperature=45.6F Humidity=82%

00 10100100 10 01 001001010101 00100101 00011110 - Battery=2 Channel=1 Temperature=46.2F Humidity=82%

00 10100100 10 01 001001010101 00100101 00011110 - Battery=2 Channel=1 Temperature=46.2F Humidity=82%

00 10100100 10 01 110101010101 00010101 00010101 - Battery=2 Channel=1 Temperature=47.3F Humidity=81%

00 10100100 10 01 110101010101 00010101 00010101 - Battery=2 Channel=1 Temperature=47.3F Humidity=81%

00 10100100 10 01 011101100101 00010101 00011010 - Battery=2 Channel=1 Temperature=48.3F Humidity=81%

00 10100100 10 01 011101100101 00010101 00011010 - Battery=2 Channel=1 Temperature=48.3F Humidity=81%

00 10100100 10 01 000101110101 00010101 00011111 - Battery=2 Channel=1 Temperature=49.3F Humidity=81%

00 10100100 10 01 011001110101 00010101 00011110 - Battery=2 Channel=1 Temperature=49.8F Humidity=81%

00 10100100 10 01 101010000101 00000101 00011000 - Battery=2 Channel=1 Temperature=51.8F Humidity=80%

00 10100100 10 01 001110010101 00000101 00011001 - Battery=2 Channel=1 Temperature=52.7F Humidity=80%

00 10100100 10 01 011110010101 11110100 00010111 - Battery=2 Channel=1 Temperature=53.1F Humidity=79%

00 10100100 10 01 000010100101 11110100 00010000 - Battery=2 Channel=1 Temperature=54.0F Humidity=79%

00 10100100 10 01 011110100101 11110100 00010001 - Battery=2 Channel=1 Temperature=54.7F Humidity=79%

00 10100100 10 01 011110100101 11110100 00010001 - Battery=2 Channel=1 Temperature=54.7F Humidity=79%

00 10100100 10 01 111110100101 11100100 00010001 - Battery=2 Channel=1 Temperature=55.5F Humidity=78%

00 10100100 10 01 001010110101 11100100 00011011 - Battery=2 Channel=1 Temperature=55.8F Humidity=78%

00 10100100 10 01 100110110101 11010100 00011011 - Battery=2 Channel=1 Temperature=56.5F Humidity=77%

00 10100100 10 01 111110110101 11000100 00011001 - Battery=2 Channel=1 Temperature=57.1F Humidity=76%

00 10100100 10 01 111110110101 11000100 00011001 - Battery=2 Channel=1 Temperature=57.1F Humidity=76%

00 10100100 10 01 111110110101 11000100 00011001 - Battery=2 Channel=1 Temperature=57.1F Humidity=76%

00 10100100 10 01 010111000101 11000100 00011110 - Battery=2 Channel=1 Temperature=57.7F Humidity=76%

00 10100100 10 01 010111000101 11000100 00011110 - Battery=2 Channel=1 Temperature=57.7F Humidity=76%

00 10100100 10 01 101111000101 10110100 00010100 - Battery=2 Channel=1 Temperature=58.3F Humidity=75%

00 10100100 10 01 111011000101 10110100 00011001 - Battery=2 Channel=1 Temperature=58.6F Humidity=75%

00 10100100 10 01 111011000101 10110100 00011001 - Battery=2 Channel=1 Temperature=58.6F Humidity=75%

00 10100100 10 01 010011010101 10100100 00010111 - Battery=2 Channel=1 Temperature=59.2F Humidity=74%

00 10100100 10 01 101111010101 10100100 00010011 - Battery=2 Channel=1 Temperature=59.9F Humidity=74%

00 10100100 10 01 000011100101 10100100 00011010 - Battery=2 Channel=1 Temperature=60.4F Humidity=74%

00 10100100 10 01 000011100101 10100100 00011010 - Battery=2 Channel=1 Temperature=60.4F Humidity=74%

00 10100100 10 01 001011100101 10010100 00011001 - Battery=2 Channel=1 Temperature=60.6F Humidity=73%

00 10100100 10 01 100011100101 10000100 00010101 - Battery=2 Channel=1 Temperature=61.2F Humidity=72%

00 10100100 10 01 100011100101 10000100 00010101 - Battery=2 Channel=1 Temperature=61.2F Humidity=72%

00 10100100 10 01 110111100101 01100100 00011011 - Battery=2 Channel=1 Temperature=61.7F Humidity=70%

00 10100100 10 01 110111100101 01100100 00011011 - Battery=2 Channel=1 Temperature=61.7F Humidity=70%

00 10100100 10 01 000111110101 01000100 00011101 - Battery=2 Channel=1 Temperature=62.1F Humidity=68%

00 10100100 10 01 000111110101 01000100 00011101 - Battery=2 Channel=1 Temperature=62.1F Humidity=68%

00 10100100 10 01 010011110101 00110100 00011000 - Battery=2 Channel=1 Temperature=62.4F Humidity=67%

00 10100100 10 01 100011110101 00100100 00010011 - Battery=2 Channel=1 Temperature=62.8F Humidity=66%

00 10100100 10 01 101111110101 00010100 00010110 - Battery=2 Channel=1 Temperature=63.1F Humidity=65%

00 10100100 10 01 000000000110 00000100 00010011 - Battery=2 Channel=1 Temperature=63.6F Humidity=64%

00 10100100 10 01 001000000110 00000100 00011111 - Battery=2 Channel=1 Temperature=63.8F Humidity=64%

00 10100100 10 01 011000000110 00000100 00010100 - Battery=2 Channel=1 Temperature=64.2F Humidity=64%

00 10100100 10 01 100100000110 11110011 00011111 - Battery=2 Channel=1 Temperature=64.5F Humidity=63%

00 10100100 10 01 110000000110 11100011 00010111 - Battery=2 Channel=1 Temperature=64.8F Humidity=62%

00 10100100 10 01 110000000110 11100011 00010111 - Battery=2 Channel=1 Temperature=64.8F Humidity=62%

00 10100100 10 01 111100000110 11100011 00011101 - Battery=2 Channel=1 Temperature=65.1F Humidity=62%

00 10100100 10 01 000100010110 11100011 00011101 - Battery=2 Channel=1 Temperature=65.3F Humidity=62%

00 10100100 10 01 001100010110 11100011 00010001 - Battery=2 Channel=1 Temperature=65.5F Humidity=62%

00 10100100 10 01 001100010110 11100011 00010001 - Battery=2 Channel=1 Temperature=65.5F Humidity=62%

00 10100100 10 01 011000010110 11010011 00010011 - Battery=2 Channel=1 Temperature=65.8F Humidity=61%

00 10100100 10 01 011000010110 11010011 00010011 - Battery=2 Channel=1 Temperature=65.8F Humidity=61%

00 10100100 10 01 100100010110 11010011 00010111 - Battery=2 Channel=1 Temperature=66.1F Humidity=61%

00 10100100 10 01 100100010110 11010011 00010111 - Battery=2 Channel=1 Temperature=66.1F Humidity=61%

00 10100100 10 01 101000010110 11000011 00011000 - Battery=2 Channel=1 Temperature=66.2F Humidity=60%

00 10100100 10 01 110100010110 11000011 00011001 - Battery=2 Channel=1 Temperature=66.5F Humidity=60%

--- BATTERY CHANGE: 2x 1,23V NiMH (Philips)

00 01001011 00 01 100100110110 11000011 11001110 - Battery=0 Channel=1 Temperature=69.3F Humidity=60%

00 01001011 10 01 011001100110 10000011 11011001 - Battery=2 Channel=1 Temperature=73.8F Humidity=56%

00 01001011 10 01 011001100110 10000011 11011001 - Battery=2 Channel=1 Temperature=73.8F Humidity=56%

00 01001011 10 01 011001100110 10000011 11011001 - Battery=2 Channel=1 Temperature=73.8F Humidity=56%

00 01001011 10 01 101001100110 01110011 01011001 - Battery=2 Channel=1 Temperature=74.2F Humidity=55%

00 01001011 10 01 101001100110 01110011 01011001 - Battery=2 Channel=1 Temperature=74.2F Humidity=55%

00 01001011 10 01 101001100110 01110011 01011001 - Battery=2 Channel=1 Temperature=74.2F Humidity=55%

00 01001011 10 01 110101100110 01100011 11010101 - Battery=2 Channel=1 Temperature=74.5F Humidity=54%

00 01001011 10 01 110101100110 01100011 11010101 - Battery=2 Channel=1 Temperature=74.5F Humidity=54%

00 01001011 10 01 001101110110 00100011 11010010 - Battery=2 Channel=1 Temperature=75.1F Humidity=50%

00 01001011 10 01 001101110110 00100011 11010010 - Battery=2 Channel=1 Temperature=75.1F Humidity=50%

00 01001011 10 01 001101110110 00100011 01011010 - Battery=2 Channel=1 Temperature=75.1F Humidity=50%

00 01001011 10 01 001101110110 00100011 01011010 - Battery=2 Channel=1 Temperature=75.1F Humidity=50%

00 01001011 10 01 010101110110 00010011 01010010 - Battery=2 Channel=1 Temperature=75.3F Humidity=49%

00 01001011 10 01 010101110110 00010011 01010010 - Battery=2 Channel=1 Temperature=75.3F Humidity=49%

--- BATTERY CHANGE: mixed (1 weak and 1 good varta) [batt + nimh]

00 10111111 00 01 011001110110 00000011 00001111 - Battery=0 Channel=1 Temperature=75.4F Humidity=48%

00 10111111 00 01 011001110110 00000011 00001111 - Battery=0 Channel=1 Temperature=75.4F Humidity=48%

00 10111111 00 10 111101100110 00010011 00000110 - Battery=0 Channel=2 Temperature=74.7F Humidity=49% CH2 for test

00 10111111 00 01 111101100110 00010011 00001011 - Battery=0 Channel=1 Temperature=74.7F Humidity=49%

00 10111111 00 01 011101100110 00100011 00000001 - Battery=0 Channel=1 Temperature=73.9F Humidity=50%

00 10111111 00 01 011101100110 00100011 00000001 - Battery=0 Channel=1 Temperature=73.9F Humidity=50%

00 10111111 00 01 011001100110 00010011 00001000 - Battery=0 Channel=1 Temperature=73.8F Humidity=49%

00 10111111 00 01 011001100110 00010011 00001000 - Battery=0 Channel=1 Temperature=73.8F Humidity=49%

00 10111111 00 01 011001100110 00000011 00001101 - Battery=0 Channel=1 Temperature=73.8F Humidity=48%

00 10111111 00 01 011101100110 11110010 00001110 - Battery=0 Channel=1 Temperature=73.9F Humidity=47%

--- BATTERY CHANGE: mixed (other pair, not the same batteries: 1 weak and 1 good varta) [batt + nimh]

00 00110001 00 01 000001110110 00000011 10001100 - Battery=0 Channel=1 Temperature=74.8F Humidity=48%

00 00110001 00 01 000101110110 00010011 00000111 - Battery=0 Channel=1 Temperature=74.9F Humidity=49%

00 00110001 00 01 001101110110 00000011 10000110 - Battery=0 Channel=1 Temperature=75.1F Humidity=48%

00 00110001 00 01 001101110110 00000011 10000110 - Battery=0 Channel=1 Temperature=75.1F Humidity=48%

00 00110001 00 01 011001110110 00000011 10001011 - Battery=0 Channel=1 Temperature=75.4F Humidity=48%

00 00110001 00 01 011001110110 00000011 10001011 - Battery=0 Channel=1 Temperature=75.4F Humidity=48%

00 00110001 00 01 101101110110 11100010 00001011 - Battery=0 Channel=1 Temperature=75.9F Humidity=46%

00 00110001 00 01 101101110110 11100010 10000011 - Battery=0 Channel=1 Temperature=75.9F Humidity=46%

00 00110001 00 01 101101110110 11100010 10000011 - Battery=0 Channel=1 Temperature=75.9F Humidity=46%

--- BATTERY CHANGE: back to pair of weak+good batteries (the round before above) expecting payload: 10111111  
00 10001110 00 01 010110000110 11010010 00000110 - Battery=0 Channel=1 Temperature=76.9F Humidity=45%

00 10001110 00 01 010110000110 11010010 00000110 - Battery=0 Channel=1 Temperature=76.9F Humidity=45%

--- BATTERY CHANGE: [switched places: good + weak]

00 00011100 00 01 001110000110 11100010 10001101 - Battery=0 Channel=1 Temperature=76.7F Humidity=46%

00 00011100 00 01 001110000110 11100010 10001101 - Battery=0 Channel=1 Temperature=76.7F Humidity=46%

--- BATTERY CHANGE: back to the original 2 varta batteries and see if payload is again: 10100100  

00 11101001 00 01 101110000110 11000010 00001111 - Battery=0 Channel=1 Temperature=77.5F Humidity=44%

00 11101001 00 01 101110000110 11000010 10000111 - Battery=0 Channel=1 Temperature=77.5F Humidity=44%

00 11101001 00 01 100110000110 11000010 10001011 - Battery=0 Channel=1 Temperature=77.3F Humidity=44%

00 11101001 00 01 100110000110 11000010 10001011 - Battery=0 Channel=1 Temperature=77.3F Humidity=44%

00 11101001 00 01 100110000110 10110010 10000011 - Battery=0 Channel=1 Temperature=77.3F Humidity=43%

00 11101001 00 01 100110000110 10110010 10000011 - Battery=0 Channel=1 Temperature=77.3F Humidity=43%

--- OBSERVATION: paylod (random number) is random, changed every boot-up/battery change.

00 11101001 00 01 001001110111 00101010 00101011 - Battery=0 Channel=1 Temperature=75.0F Humidity=43%

00 11101001 00 01 111101100110 10110010 00100001 - Battery=0 Channel=1 Temperature=74.7F Humidity=43%

00 11101001 00 01 100101110110 10110010 00100100 - Battery=0 Channel=1 Temperature=75.7F Humidity=43%

00 11101001 00 01 011001110110 10110010 00100000 - Battery=0 Channel=1 Temperature=75.4F Humidity=43%

00 11101001 00 01 001101110110 10110010 00101101 - Battery=0 Channel=1 Temperature=75.1F Humidity=43%

00 11101001 00 01 001001110110 10110010 00101011 - Battery=0 Channel=1 Temperature=75.0F Humidity=43%

00 11101001 00 01 111101100110 10110010 00100001 - Battery=0 Channel=1 Temperature=74.7F Humidity=43%

00 11101001 00 01 110101100110 10110010 00101101 - Battery=0 Channel=1 Temperature=74.5F Humidity=43%

00 11101001 00 01 101101100110 10110010 00101010 - Battery=0 Channel=1 Temperature=74.3F Humidity=43%

00 11101001 00 01 110101100110 10110010 00101101 - Battery=0 Channel=1 Temperature=74.5F Humidity=43%

00 11101001 00 01 101101100110 10110010 00101010 - Battery=0 Channel=1 Temperature=74.3F Humidity=43%

00 11101001 00 01 001001100110 11000010 00100001 - Battery=0 Channel=1 Temperature=73.4F Humidity=44%

00 11101001 00 01 001001100110 11000010 00100001 - Battery=0 Channel=1 Temperature=73.4F Humidity=44%

-- OBSERVATION: battery-status changed after sensor went outside (from warm room)

00 11101001 00 01 000001100110 11000010 00101101 - Battery=0 Channel=1 Temperature=73.2F Humidity=44%

00 11101001 10 01 110001010110 10000010 00101101 - Battery=2 Channel=1 Temperature=72.8F Humidity=40%

00 11101001 10 01 011000110110 01010010 00100100 - Battery=2 Channel=1 Temperature=69.0F Humidity=37%

00 11101001 10 01 000000100110 01010010 00100001 - Battery=2 Channel=1 Temperature=66.8F Humidity=37%

00 11101001 10 01 011100010110 01010010 00100110 - Battery=2 Channel=1 Temperature=65.9F Humidity=37%

00 11101001 10 01 011111100101 01110010 00100011 - Battery=2 Channel=1 Temperature=61.1F Humidity=39%

00 11101001 10 01 011111100101 01110010 00100011 - Battery=2 Channel=1 Temperature=61.1F Humidity=39%

00 11101001 10 01 101011010101 10000010 00101011 - Battery=2 Channel=1 Temperature=59.8F Humidity=40%

00 11101001 10 01 101011010101 10000010 00101011 - Battery=2 Channel=1 Temperature=59.8F Humidity=40%

00 11101001 10 01 111110110101 10100010 00100000 - Battery=2 Channel=1 Temperature=57.1F Humidity=42%

00 11101001 10 01 101011010101 10000010 00101011 - Battery=2 Channel=1 Temperature=59.8F Humidity=40%

00 11101001 10 01 111110110101 10100010 00100000 - Battery=2 Channel=1 Temperature=57.1F Humidity=42%

00 11101001 01 01 110010000101 11010010 00100101 - Battery=1 Channel=1 Temperature=52.0F Humidity=45%

00 11101001 01 01 110001110101 11100010 00100111 - Battery=1 Channel=1 Temperature=50.4F Humidity=46%

00 11101001 01 01 110101100101 00000011 00100011 - Battery=1 Channel=1 Temperature=48.9F Humidity=48%

00 11101001 01 01 100101010101 00110011 00100001 - Battery=1 Channel=1 Temperature=46.9F Humidity=51%

00 11101001 01 01 011001000101 01010011 00101010 - Battery=1 Channel=1 Temperature=45.0F Humidity=53%

00 11101001 01 01 010101000101 01010011 00100000 - Battery=1 Channel=1 Temperature=44.9F Humidity=53%

-- some random reading ;-)

00 11101001 10 01 111101100101 01010101 10011101 - Battery=2 Channel=1 Temperature=49.1F Humidity=85%

00 11101001 10 01 111101110101 00110101 10010010 - Battery=2 Channel=1 Temperature=50.7F Humidity=83%


Riva’s working code:

// Unknown 433Mhz weather sensor decoder. Untested in the real world.

// http://arduino.cc/forum/index.php/topic,142871.msg1106336.html#msg1106336

// __           ___       ___    ___

//   |         |  |      |  |   |  |

//   |_________|  |______|  |___|  |

//

//   |  Sync      |    1    |  0   |

//   |  8320us    | 4500us  | 2530us

// Defines

#define allDataBits 42                                    // Number of data bits to expect

// isrFlags bit numbers

#define F_HAVE_DATA 1                                     // 0=Nothing in read buffer, 1=Data in read buffer

#define F_GOOD_DATA 2                                     // 0=Unverified data, 1=Verified (2 consecutive matching reads)

#define F_CARRY_BIT 3                                     // Bit used to carry over bit shift from one long to the other

#define F_STATE 7                                         // 0=Sync mode, 1=Data mode

// Constants

const unsigned long sync_MIN = 8120;                      // Minimum Sync time in micro seconds

const unsigned long sync_MAX = 8520;

const unsigned long bit1_MIN = 4300;

const unsigned long bit1_MAX = 4700;

const unsigned long bit0_MIN = 2330;

const unsigned long bit0_MAX = 2730;

const unsigned long glitch_Length = 300;                  // Anything below this value is a glitch and will be ignored.

// Interrupt variables

unsigned long fall_Time = 0;                              // Placeholder for microsecond time when last falling edge occured.

unsigned long rise_Time = 0;                              // Placeholder for microsecond time when last rising edge occured.

byte bit_Count = 0;                                       // Bit counter for received bits.

unsigned long build_Buffer[] = {0,0};                     // Placeholder last data packet being received.

volatile unsigned long read_Buffer[] = {0,0};             // Placeholder last full data packet read.

volatile byte isrFlags = 0;                               // Various flag bits

void PinChangeISR0(){                                     // Pin 2 (Interrupt 0) service routine

  unsigned long Time = micros();                          // Get current time

  if (digitalRead(2) == LOW) {

// Falling edge

    if (Time > (rise_Time + glitch_Length)) {

// Not a glitch

      Time = micros() - fall_Time;                        // Subtract last falling edge to get pulse time.

      if (bitRead(build_Buffer[1],31) == 1)

        bitSet(isrFlags, F_CARRY_BIT);

      else

        bitClear(isrFlags, F_CARRY_BIT);

      if (bitRead(isrFlags, F_STATE) == 1) {

// Looking for Data

        if ((Time > bit0_MIN) && (Time < bit0_MAX)) {

// 0 bit

          build_Buffer[1] = build_Buffer[1] << 1;

          build_Buffer[0] = build_Buffer[0] << 1;

          if (bitRead(isrFlags,F_CARRY_BIT) == 1)

            bitSet(build_Buffer[0],0);

          bit_Count++;

        }

        else if ((Time > bit1_MIN) && (Time < bit1_MAX)) {

// 1 bit

          build_Buffer[1] = build_Buffer[1] << 1;

          bitSet(build_Buffer[1],0);

          build_Buffer[0] = build_Buffer[0] << 1;

          if (bitRead(isrFlags,F_CARRY_BIT) == 1)

            bitSet(build_Buffer[0],0);

          bit_Count++;

        }

        else {

// Not a 0 or 1 bit so restart data build and check if it's a sync?

          bit_Count = 0;

          build_Buffer[0] = 0;

          build_Buffer[1] = 0;

          bitClear(isrFlags, F_GOOD_DATA);                // Signal data reads dont' match

          bitClear(isrFlags, F_STATE);                    // Set looking for Sync mode

          if ((Time > sync_MIN) && (Time < sync_MAX)) {

            // Sync length okay

            bitSet(isrFlags, F_STATE);                    // Set data mode

          }

        }

        if (bit_Count >= allDataBits) {

// All bits arrived

          bitClear(isrFlags, F_GOOD_DATA);                // Assume data reads don't match

          if (build_Buffer[0] == read_Buffer[0]) {

            if (build_Buffer[1] == read_Buffer[1])

              bitSet(isrFlags, F_GOOD_DATA);              // Set data reads match

          }

          read_Buffer[0] = build_Buffer[0];

          read_Buffer[1] = build_Buffer[1];

          bitSet(isrFlags, F_HAVE_DATA);                  // Set data available

          bitClear(isrFlags, F_STATE);                    // Set looking for Sync mode

digitalWrite(13,HIGH); // Used for debugging

          build_Buffer[0] = 0;

          build_Buffer[1] = 0;

          bit_Count = 0;

        }

      }

      else {

// Looking for sync

        if ((Time > sync_MIN) && (Time < sync_MAX)) {

// Sync length okay

          build_Buffer[0] = 0;

          build_Buffer[1] = 0;

          bit_Count = 0;

          bitSet(isrFlags, F_STATE);                      // Set data mode

digitalWrite(13,LOW); // Used for debugging

        }

      }

      fall_Time = micros();                               // Store fall time

    }

  }

  else {

// Rising edge

    if (Time > (fall_Time + glitch_Length)) {

      // Not a glitch

      rise_Time = Time;                                   // Store rise time

    }

  }

}

void setup() {

pinMode(13,OUTPUT); // Used for debugging

  Serial.begin(9600);

  pinMode(2,INPUT);

  Serial.println(F("ISR Pin 2 Configured For Input."));

  attachInterrupt(0,PinChangeISR0,CHANGE);

  Serial.println(F("Pin 2 ISR Function Attached. Here we go."));

}

void loop() {

  unsigned long myData0 = 0;

  unsigned long myData1 = 0;

  if (bitRead(isrFlags,F_GOOD_DATA) == 1) {

    // We have at least 2 consecutive matching reads

    myData0 = read_Buffer[0]; // Read the data spread over 2x 32 variables

    myData1 = read_Buffer[1];

    bitClear(isrFlags,F_HAVE_DATA); // Flag we have read the data

    dec2binLong(myData0,10);

    dec2binLong(myData1,32);

    Serial.print(" - Battery=");

    byte H = (myData1 >> 30) & 0x3;   // Get Battery

    Serial.print(H);

    Serial.print(" Channel=");

    H = (myData1 >> 28) & 0x3;        // Get Channel

    Serial.print(H);

    Serial.print(" Temperature=");

    byte ML = (myData1 >> 16) & 0xF0; // Get MMMM

    H = (myData1 >> 24) & 0xF;        // Get LLLL

    ML = ML | H;                      // OR MMMM & LLLL nibbles together

    H = (myData1 >> 16) & 0xF;        // Get HHHH

    int Temperature = (H << 8) | ML;  // Combine HHHH MMMMLLLL

    Temperature = Temperature -900;   // Remove Constant offset

    Serial.print(Temperature/10.0,1);

    Serial.print("F Humidity=");

    H = (myData1 >> 4) & 0xF0;        // Get HHHH

    ML = (myData1 >> 12) & 0xF;       // Get LLLL

    ML = ML | H;                      // OR HHHH & LLLL nibbles together

    Serial.print(ML);

    Serial.println("%");

  }

  delay(100);

}

void dec2binLong(unsigned long myNum, byte NumberOfBits) {

  if (NumberOfBits <= 32){

    myNum = myNum << (32 - NumberOfBits);

    for (int i=0; i<NumberOfBits; i++) {

      if (bitRead(myNum,31) == 1)

      Serial.print("1");

      else

      Serial.print("0");

      myNum = myNum << 1;

    }

  }


Newest data for CRC crack:

--RIVA SKETCH started 24/02/2013 (very close values for CRC data crack)

00          BB CC LLLLMMMMHHHH LLLLHHHH

   Rnd.Nmbr                             ????????

LD          BT CH Temperature- Humidity --CRC?--  

00 11101001 01 01 100011100100 10000101 00100110 - Battery=1 Channel=1 Temperature=35.6F Humidity=88%

00 11101001 01 01 100011100100 10000101 00000100 - Battery=1 Channel=1 Temperature=35.6F Humidity=88%

00 11101001 01 01 011111100100 10000101 00000000 - Battery=1 Channel=1 Temperature=35.5F Humidity=88%

00 11101001 01 01 100011100100 10000101 00000100 - Battery=1 Channel=1 Temperature=35.6F Humidity=88%

00 11101001 01 01 011111100100 10000101 00000000 - Battery=1 Channel=1 Temperature=35.5F Humidity=88%

00 11101001 01 01 011111100100 01110101 00000110 - Battery=1 Channel=1 Temperature=35.5F Humidity=87%

00 11101001 01 01 011111100100 01100101 00000011 - Battery=1 Channel=1 Temperature=35.5F Humidity=86%

00 11101001 00 01 011111100100 01100101 00001101 - Battery=0 Channel=1 Temperature=35.5F Humidity=86%

00 11101001 00 01 100011100100 01100101 00001001 - Battery=0 Channel=1 Temperature=35.6F Humidity=86%

00 11101001 00 01 011111100100 01100101 00001101 - Battery=0 Channel=1 Temperature=35.5F Humidity=86%

00 11101001 00 01 100111100100 01100101 00001111 - Battery=0 Channel=1 Temperature=35.7F Humidity=86%

00 11101001 00 01 100111100100 01010101 00000000 - Battery=0 Channel=1 Temperature=35.7F Humidity=85%

00 11101001 00 01 011011110100 11110100 00000001 - Battery=0 Channel=1 Temperature=37.0F Humidity=79%

00 11101001 00 01 010111110100 11110100 00001011 - Battery=0 Channel=1 Temperature=36.9F Humidity=79%

00 11101001 00 01 010111110100 00000101 00001110 - Battery=0 Channel=1 Temperature=36.9F Humidity=80%

00 11101001 00 01 011011110100 00000101 00000100 - Battery=0 Channel=1 Temperature=37.0F Humidity=80%

00 11101001 00 01 011011110100 11110100 00000001 - Battery=0 Channel=1 Temperature=37.0F Humidity=79%

00 11101001 00 01 011011110100 00000101 00000100 - Battery=0 Channel=1 Temperature=37.0F Humidity=80%

00 11101001 00 01 010111110100 00000101 00001110 - Battery=0 Channel=1 Temperature=36.9F Humidity=80%

00 11101001 00 01 010111110100 11110100 00001011 - Battery=0 Channel=1 Temperature=36.9F Humidity=79%

00 11101001 00 01 010111110100 00000101 00001110 - Battery=0 Channel=1 Temperature=36.9F Humidity=80%

00 11101001 00 01 010011110100 00000101 00001000 - Battery=0 Channel=1 Temperature=36.8F Humidity=80%

00 11101001 00 01 010111110100 00000101 00001110 - Battery=0 Channel=1 Temperature=36.9F Humidity=80%

00 11101001 00 01 010111110100 11110100 00001011 - Battery=0 Channel=1 Temperature=36.9F Humidity=79%

00 11101001 00 01 010011110100 11110100 00001101 - Battery=0 Channel=1 Temperature=36.8F Humidity=79%

00 11101001 00 01 010111110100 11110100 00001011 - Battery=0 Channel=1 Temperature=36.9F Humidity=79%

00 11101001 00 01 010111110100 11110100 00001011 - Battery=0 Channel=1 Temperature=36.9F Humidity=79%

00 11101001 00 01 010111110100 11100100 00001110 - Battery=0 Channel=1 Temperature=36.9F Humidity=78%

00 11101001 00 01 010011110100 11100100 00001000 - Battery=0 Channel=1 Temperature=36.8F Humidity=78%

00 11101001 00 01 001111110100 11100100 00001001 - Battery=0 Channel=1 Temperature=36.7F Humidity=78%

00 11101001 00 01 001111110100 11100100 00001001 - Battery=0 Channel=1 Temperature=36.7F Humidity=78%

00 11101001 00 01 001111110100 11010100 00000110 - Battery=0 Channel=1 Temperature=36.7F Humidity=77%

00 11101001 00 01 001111110100 11100100 00001001 - Battery=0 Channel=1 Temperature=36.7F Humidity=78%

00 11101001 00 01 001011110100 11100100 00001111 - Battery=0 Channel=1 Temperature=36.6F Humidity=78%

00 11101001 00 01 011011100100 11100100 00000110 - Battery=0 Channel=1 Temperature=35.4F Humidity=78%

00 11101001 00 01 011011100100 11110100 00000011 - Battery=0 Channel=1 Temperature=35.4F Humidity=79%

00 11101001 00 01 010111100100 11110100 00001001 - Battery=0 Channel=1 Temperature=35.3F Humidity=79%

00 11101001 00 01 010111100100 11100100 00001100 - Battery=0 Channel=1 Temperature=35.3F Humidity=78%

00 11101001 00 01 010111100100 11100100 00001100 - Battery=0 Channel=1 Temperature=35.3F Humidity=78%

00 11101001 00 01 011011100100 11110100 00000011 - Battery=0 Channel=1 Temperature=35.4F Humidity=79%

00 11101001 00 01 011111100100 11110100 00000101 - Battery=0 Channel=1 Temperature=35.5F Humidity=79%

00 11101001 00 01 100011100100 11110100 00000001 - Battery=0 Channel=1 Temperature=35.6F Humidity=79%

00 11101001 00 01 100111100100 11100100 00000010 - Battery=0 Channel=1 Temperature=35.7F Humidity=78%

00 11101001 00 01 100011100100 11100100 00000100 - Battery=0 Channel=1 Temperature=35.6F Humidity=78%

00 11101001 00 01 100011100100 11110100 00000001 - Battery=0 Channel=1 Temperature=35.6F Humidity=79%

00 11101001 00 01 100011100100 11100100 00000100 - Battery=0 Channel=1 Temperature=35.6F Humidity=78%

00 11101001 00 01 101011100100 11110100 00001101 - Battery=0 Channel=1 Temperature=35.8F Humidity=79%

00 11101001 00 01 101011100100 11100100 00001000 - Battery=0 Channel=1 Temperature=35.8F Humidity=78%

00 11101001 00 01 101111100100 11100100 00001110 - Battery=0 Channel=1 Temperature=35.9F Humidity=78%

00 11101001 00 01 101011100100 11100100 00001000 - Battery=0 Channel=1 Temperature=35.8F Humidity=78%

00 11101001 00 01 101111100100 11100100 00001110 - Battery=0 Channel=1 Temperature=35.9F Humidity=78%

00 11101001 00 01 011011100100 11110100 00000011 - Battery=0 Channel=1 Temperature=35.4F Humidity=79%

00 11101001 00 01 010111100100 11100100 00001100 - Battery=0 Channel=1 Temperature=35.3F Humidity=78%

00 11101001 00 01 011011100100 11110100 00000011 - Battery=0 Channel=1 Temperature=35.4F Humidity=79%

00 11101001 00 01 011111100100 11110100 00000101 - Battery=0 Channel=1 Temperature=35.5F Humidity=79%

00 11101001 00 01 100011100100 11110100 00000001 - Battery=0 Channel=1 Temperature=35.6F Humidity=79%

00 11101001 00 01 100111100100 11100100 00000010 - Battery=0 Channel=1 Temperature=35.7F Humidity=78%

00 11101001 00 01 100011100100 11100100 00000100 - Battery=0 Channel=1 Temperature=35.6F Humidity=78%

00 11101001 00 01 100011100100 11110100 00000001 - Battery=0 Channel=1 Temperature=35.6F Humidity=79%

00 11101001 00 01 100011100100 11100100 00000100 - Battery=0 Channel=1 Temperature=35.6F Humidity=78%

00 11101001 00 01 101011100100 11110100 00001101 - Battery=0 Channel=1 Temperature=35.8F Humidity=79%

00 11101001 00 01 101011100100 11110100 00001101 - Battery=0 Channel=1 Temperature=35.8F Humidity=79%

00 11101001 00 01 101011100100 11100100 00001000 - Battery=0 Channel=1 Temperature=35.8F Humidity=78%

00 11101001 00 01 101111100100 11100100 00001110 - Battery=0 Channel=1 Temperature=35.9F Humidity=78%

00 11101001 00 01 101011100100 11100100 00001000 - Battery=0 Channel=1 Temperature=35.8F Humidity=78%

00 11101001 00 01 101111100100 11100100 00001110 - Battery=0 Channel=1 Temperature=35.9F Humidity=78%

-- REMOVED TEMPERATURE SENSOR:

00 01110110 01 01 011011100000 11110100 00000001 - Battery=1 Channel=1 Temperature=-67.0F Humidity=79%

00 01110110 01 01 011011100000 00010101 10001001 - Battery=1 Channel=1 Temperature=-67.0F Humidity=81%

00 01110110 01 01 011011100000 00100101 00001110 - Battery=1 Channel=1 Temperature=-67.0F Humidity=82%

00 01110110 01 01 011011100000 00110101 00001011 - Battery=1 Channel=1 Temperature=-67.0F Humidity=83%

00 01110110 01 01 011011100000 10000111 00001100 - Battery=1 Channel=1 Temperature=-67.0F Humidity=120% (LL *C, HH%) [i blew with some water on sensor, it went way more be tter than expected. ;-))]

00 01110110 01 01 011011100000 11100111 00000001 - Battery=1 Channel=1 Temperature=-67.0F Humidity=126%

00 01110110 10 01 011011100000 11000110 00001001 - Battery=2 Channel=1 Temperature=-67.0F Humidity=108%

 [sensor went outside to get humidity back to normal :-D]

00 01110110 10 01 011011100000 10000101 00001011 - Battery=2 Channel=1 Temperature=-67.0F Humidity=88%

00 01110110 10 01 011011100000 11100100 00000101 - Battery=2 Channel=1 Temperature=-67.0F Humidity=78%

00 01110110 10 01 011011100000 01110100 00001110 - Battery=2 Channel=1 Temperature=-67.0F Humidity=71%

00 01110110 10 01 011011100000 10000100 00001000 - Battery=2 Channel=1 Temperature=-67.0F Humidity=72%

00 01110110 10 01 011011100000 10010100 00001101 - Battery=2 Channel=1 Temperature=-67.0F Humidity=73%

00 01110110 10 01 011011100000 10100100 00000010 - Battery=2 Channel=1 Temperature=-67.0F Humidity=74%

00 01110110 01 01 011011100000 10110100 00000110 - Battery=1 Channel=1 Temperature=-67.0F Humidity=75%

00 01110110 01 01 011011100000 11000100 00001110 - Battery=1 Channel=1 Temperature=-67.0F Humidity=76% - 76/BAT1

00 01110110 01 01 011011100000 11010100 00001011 - Battery=1 Channel=1 Temperature=-67.0F Humidity=77%

00 01110110 01 01 011011100000 11100100 00000100 - Battery=1 Channel=1 Temperature=-67.0F Humidity=78%

 - 78/BAT1

00 01110110 01 01 011011100000 01110110 00001001 - Battery=1 Channel=1 Temperature=-67.0F Humidity=103%

 [blew again, outside so it get backs to 7x% with BAT1]

00 01110110 01 01 011011100000 11100110 00000010 - Battery=1 Channel=1 Temperature=-67.0F Humidity=110%

00 01110110 01 01 011011100000 11010110 00001101 - Battery=1 Channel=1 Temperature=-67.0F Humidity=109%

00 01110110 01 01 011011100000 11000110 00001000 - Battery=1 Channel=1 Temperature=-67.0F Humidity=108%

00 01110110 01 01 011011100000 10110110 00000000 - Battery=1 Channel=1 Temperature=-67.0F Humidity=107%

00 01110110 01 01 011011100000 10100110 00000101 - Battery=1 Channel=1 Temperature=-67.0F Humidity=106%

00 01110110 01 01 011011100000 10010110 00001010 - Battery=1 Channel=1 Temperature=-67.0F Humidity=105%

00 01110110 10 01 011011100000 10000110 00001110 - Battery=2 Channel=1 Temperature=-67.0F Humidity=104%

00 01110110 10 01 011011100000 01100110 00001101 - Battery=2 Channel=1 Temperature=-67.0F Humidity=102%

00 01110110 10 01 011011100000 01010110 00000010 - Battery=2 Channel=1 Temperature=-67.0F Humidity=101%

00 01110110 10 01 011011100000 01100110 00001101 - Battery=2 Channel=1 Temperature=-67.0F Humidity=102%

00 01110110 10 01 011011100000 10100000 00001110 - Battery=2 Channel=1 Temperature=-67.0F Humidity=10%

 [hair-dryer for 1 min on it and outside, station now shows LL*C, LL%]

00 01110110 01 01 011011100000 00010011 00001011 - Battery=1 Channel=1 Temperature=-67.0F Humidity=49%

00 01110110 01 01 011011100000 10010011 00000101 - Battery=1 Channel=1 Temperature=-67.0F Humidity=57%

00 01110110 01 01 011011100000 10100011 00001010 - Battery=1 Channel=1 Temperature=-67.0F Humidity=58%

00 01110110 01 01 011011100000 11010011 00000010 - Battery=1 Channel=1 Temperature=-67.0F Humidity=61%

00 01110110 01 01 011011100000 00000100 00000111 - Battery=1 Channel=1 Temperature=-67.0F Humidity=64%

00 01110110 01 01 011011100000 00110100 00001000 - Battery=1 Channel=1 Temperature=-67.0F Humidity=67%

00 01110110 01 01 011011100000 01000100 00000000 - Battery=1 Channel=1 Temperature=-67.0F Humidity=68%

00 01110110 01 01 011011100000 01100100 00001010 - Battery=1 Channel=1 Temperature=-67.0F Humidity=70%

00 01110110 01 01 011011100000 10010100 00001100 - Battery=1 Channel=1 Temperature=-67.0F Humidity=73%

00 01110110 01 01 011011100000 10110100 00000110 - Battery=1 Channel=1 Temperature=-67.0F Humidity=75%

00 01110110 01 01 011011100000 11010100 00001011 - Battery=1 Channel=1 Temperature=-67.0F Humidity=77%

00 01110110 01 01 011011100000 11110100 00000001 - Battery=1 Channel=1 Temperature=-67.0F Humidity=79%

00 01110110 01 01 011011100000 00000101 00000100 - Battery=1 Channel=1 Temperature=-67.0F Humidity=80%

00 01110110 01 01 011011100000 00010101 00000001 - Battery=1 Channel=1 Temperature=-67.0F Humidity=81% [theres the same reading above - CRC is different...]

00 01110110 01 01 011011100000 00100101 00001110 - Battery=1 Channel=1 Temperature=-67.0F Humidity=82% [but this one is the same...]

00 01110110 01 01 011011100000 01000101 00000011 - Battery=1 Channel=1 Temperature=-67.0F Humidity=84%

00 01110110 01 01 011011100000 01010101 00000110 - Battery=1 Channel=1 Temperature=-67.0F Humidity=85%

00 01110110 01 01 011011100000 01100101 00001001 - Battery=1 Channel=1 Temperature=-67.0F Humidity=86%

00 01110110 01 01 011011100000 10010101 00001111 - Battery=1 Channel=1 Temperature=-67.0F Humidity=89%

00 01110110 01 01 011011100000 10000101 00001010 - Battery=1 Channel=1 Temperature=-67.0F Humidity=88%

00 01110110 01 01 011011100000 10100101 00000000 - Battery=1 Channel=1 Temperature=-67.0F Humidity=90%

00 01110110 01 01 011011100000 11000101 00001101 - Battery=1 Channel=1 Temperature=-67.0F Humidity=92%

00 01110110 01 01 011011100000 11100101 00000111 - Battery=1 Channel=1 Temperature=-67.0F Humidity=94%

00 01110110 01 01 011011100000 11110101 00000010 - Battery=1 Channel=1 Temperature=-67.0F Humidity=95%

00 01110110 01 01 011011100000 00000110 00000001 - Battery=1 Channel=1 Temperature=-67.0F Humidity=96%

00 01110110 01 01 011011100000 00010110 00000100 - Battery=1 Channel=1 Temperature=-67.0F Humidity=97%

00 01110110 01 01 011011100000 00100110 00001011 - Battery=1 Channel=1 Temperature=-67.0F Humidity=98%

00 01110110 01 01 011011100000 10100101 00000000 - Battery=1 Channel=1 Temperature=-67.0F Humidity=90%

00 01110110 01 01 011011100000 11000101 00001101 - Battery=1 Channel=1 Temperature=-67.0F Humidity=92%

00 01110110 01 01 011011100000 11100101 00000111 - Battery=1 Channel=1 Temperature=-67.0F Humidity=94%

00 01110110 01 01 011011100000 11110101 00000010 - Battery=1 Channel=1 Temperature=-67.0F Humidity=95%

00 01110110 01 01 011011100000 00000110 00000001 - Battery=1 Channel=1 Temperature=-67.0F Humidity=96%

00 01110110 01 01 011011100000 00100110 00001011 - Battery=1 Channel=1 Temperature=-67.0F Humidity=98%

00 01110110 01 01 011011100000 00110110 00001110 - Battery=1 Channel=1 Temperature=-67.0F Humidity=99%

8x% READINGS!

copy paste latest readings for 8x% humidity to get in order [Battery=1 Channel=1 Temperature=-67.0F]

00 01110110 01 01 011011100000 00000101 00000100 80%

00 01110110 01 01 011011100000 00010101 00000001 81% [latest reading]

00 01110110 01 01 011011100000 00010101 10001001 81% [earlier reading - before the dryer stuff]

00 01110110 01 01 011011100000 00100101 00001110 82%

00 01110110 01 01 011011100000 00110101 00001011 83% [earlier reading]

00 01110110 01 01 011011100000 01000101 00000011 84%

00 01110110 01 01 011011100000 01010101 00000110 85%

00 01110110 01 01 011011100000 01100101 00001001 86%

00 01110110 01 01 011011100000 10000101 00001010 88%

00 01110110 01 01 011011100000 10010101 00001111 89%

00 01110110 01 01 011011100000 10100101 00000000 90%

9x% READINGS!

00 01110110 01 01 011011100000 10100101 00000000 90%

00 01110110 01 01 011011100000 11000101 00001101 92%

00 01110110 01 01 011011100000 11100101 00000111 94%

00 01110110 01 01 011011100000 11110101 00000010 95%

00 01110110 01 01 011011100000 00000110 00000001 96%

00 01110110 01 01 011011100000 00100110 00001011 98%

00 01110110 01 01 011011100000 00110110 00001110 99%