#1 DS18B20: sometimes sensor readings are wrong for 1 sample

Slēgta
Flo atvēra 2 gadi atpakaļ · 1 komentāri

When this happens the DallasTemperature lib returns a temperature reading of exactly 85 °C which seems to be some error code.

As DS18B20 sensors are used to monitor heating feed/return 85°C is a plausible value, so this needs at least some smart filtering.

Also DallasTemperature does not seem to do a CRC check. Maybe better switch to OneWireOG lib instead.

When this happens the DallasTemperature lib returns a temperature reading of exactly 85 °C which seems to be some error code. As DS18B20 sensors are used to monitor heating feed/return 85°C is a plausible value, so this needs at least some smart filtering. Also DallasTemperature does not seem to do a CRC check. Maybe better switch to OneWireOG lib instead.
Flo Kra komentēja 2 gadi atpakaļ
Īpašnieks

fixed with d5d331e05b -> filter 85° readings if last reading was <80 or >90 -> increase precision of OneWire sensors to 12 bit

fixed with d5d331e05b -> filter 85° readings if last reading was <80 or >90 -> increase precision of OneWire sensors to 12 bit
Pierakstieties, lai pievienotos šai sarunai.
Nav etiķešu
Nav atskaites punktu
Nav atbildīgā
1 dalībnieki
Notiek ielāde...
Atcelt
Saglabāt
Vēl nav satura.