Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Temperature Offset
#5

Hi Derek,

I completely agree with Zdenek about avoid of doing temperature compensation of the software, especially for the outdoor temperature sensor, our efforts should be focused in trying to get the most precise reading directly from the sensor.
Obviously that its possible to add a fixed offset (that option is available for the indoor temperature sensor), however doing it for the outdoor sensor in the RX software is not so simple, and will require a lot of changes on the code. The easier and more reliable way to do it, is by editing the TX software, and adding a fixed amount (positive or negative) to the reading of the sensor.

Since you are using an SHT21, you can try this in your TX the software. Search for this code:

Code:
// -----  Read temperature from SHT21 (in celsius) -------
void read_SHT21()
{
  T_ExtS0 = SHT2x.GetTemperature() * 100.0;
  H_ExtS0 = SHT2x.GetHumidity() * 100.0;
}

and change to:

Code:
// -----  Read temperature from SHT21 (in celsius) -------
void read_SHT21()
{
  T_ExtS0 = (SHT2x.GetTemperature() + YOUR OFFSET IN DEGREES CELSIUS) * 100.0;
  H_ExtS0 = SHT2x.GetHumidity() * 100.0;
}

I'm suggesting this without having tested it, but it should work.

Reply


Messages In This Thread
Temperature Offset - by Derek - 12-12-2017, 15:53
RE: Temperature Offset - by hornychz - 12-12-2017, 16:48
RE: Temperature Offset - by Derek - 12-12-2017, 21:04
RE: Temperature Offset - by hornychz - 13-12-2017, 00:28
RE: Temperature Offset - by werk_ag - 13-12-2017, 05:12
RE: Temperature Offset - by Derek - 13-12-2017, 17:40
RE: Temperature Offset - by f4aii - 13-12-2017, 09:56
RE: Temperature Offset - by hornychz - 13-12-2017, 20:37



Users browsing this thread: 1 Guest(s)