Quote Originally Posted by lerameur View Post
Hi
This is a project I did a while ago, it was not working at 100%, I am back into it now and I cannot resolve the issue. The I am using two modules, One sending and one receiving (wireless). The sending modulesends the raw data, and the receiving module decodes it and interprets it onto a LCD screen..
I do get the right temperature, but it just keep changing to extrem values, . Lets say it 21 degrees, then it would chnge to -6500 then to 320 then back to 21. I tried changing the baudrate, faster and slower, no success.
here are both programs.
In the sending program i used to have a LCD to see what was sending, But the final version do not have a LCD, but by removing all the lines corresponging to the LCD, it even worst, I barely see the real temperature, and most of the time its random numbers..
thanks for the help.
I remember this...
How often do you actually NEED to send the temperature?
How about adding a bit of simple 'software' filtering in the receiver code?
Something like:

If current_temp_from_sensor > last_temp_reading then
displayed_temp = displayed_temp + 1
else
displayed_temp = displayed_temp - 1
endif
last_temp_reading = displayed_temp
goto where_ever_your_loop_goes_to...

With a little bit of a software-filter-slower-downer-thingy, you're received temperature reading won't respond to extreme flucuations nearly as quickly, but will still respond to a slow-ish moving temperature reading.