Go Down

Topic: 433 MHz RF - Temperature and humidity sensor (Read 39 times) previous topic - next topic

Riva

Glad it's working for you with a few small modifications.
Did you also change
Code: [Select]
#define allDataBits 42                                    // Number of data bits to expect
to 36 else I would expect it to never set F_GOOD_DATA

allanayr


Riva


Yes, sorry, you're quite right.

No problem, just so others reading your post will not have issues. Glad the code works on your sensor with little modification. If your having problems working out temperature >25.5 then post a few readings with the displayed temperature and maybe someone can work it out for you.

allanayr

Bizzarely I haven't experienced any temperatures above 25.5 in the recent past!

But I think these are some readings from the wrong side of 0 celsius:

1 1 1 1 1 1 1 1 1 0 0 0
-0.8

1 1 1 1 1 1 1 0 1 1 0 1
-1.9

1 1 1 1 1 1 1 0 0 1 0 1
-2.7

It kinda looks like an inversion of .1 of a degree less than the absolute of the actual reported temp. ie if you invert all the bits you get 7, 18 and 26 I think. I'll give it some thought.

Riva

#44
Feb 11, 2013, 03:52 pm Last Edit: Feb 12, 2013, 08:56 am by Riva Reason: 1
See http://en.wikipedia.org/wiki/Two%27s_complement It seems unreasonable the sensor only goes up to 25.5C there must be other bits.

Go Up