Hi All,
Looking for some ideas and methods to program a safety trap for the DS18B20 temp sensors.
Have had a one sensor test system running for a while but do not know how the 18B20 typically fails, do they just stop or start to return incorrect temp values ? -must assume it could be either.
In my new Pic 18F4520 controller / Assembler , it will be used to control the winter temperature of an orchid greenhouse, so sensor failure could be very costly. ( it already has an 433mhz system sending temps, humidity and alarms back to the main house )
I thought if I used two sensors, but each on its own i/o port, then I could provide automatic failure detection and correction.
While a totally non functioning sensor can be readily detected, I’m bit lost as to how best to establish which of the two temp sensor readings would be the correct one.
( the 433 receiver is programmed to alarm should it not receive correct data / 4520 failure etc )
I'm currently sampling the temp every minute to control the heater to a temp of 15 deg C, but can see that more frequent sampling will be needed.
It would seem some method of comparing the new readings against each other and their previous readings, but if one sensor is slowly going out , unlike a sudden 10 degree shift, then the more I think about it, trends and so forth, the more I’m confusing myself - any guidance would be appreciated.
Looking for some ideas and methods to program a safety trap for the DS18B20 temp sensors.
Have had a one sensor test system running for a while but do not know how the 18B20 typically fails, do they just stop or start to return incorrect temp values ? -must assume it could be either.
In my new Pic 18F4520 controller / Assembler , it will be used to control the winter temperature of an orchid greenhouse, so sensor failure could be very costly. ( it already has an 433mhz system sending temps, humidity and alarms back to the main house )
I thought if I used two sensors, but each on its own i/o port, then I could provide automatic failure detection and correction.
While a totally non functioning sensor can be readily detected, I’m bit lost as to how best to establish which of the two temp sensor readings would be the correct one.
( the 433 receiver is programmed to alarm should it not receive correct data / 4520 failure etc )
I'm currently sampling the temp every minute to control the heater to a temp of 15 deg C, but can see that more frequent sampling will be needed.
It would seem some method of comparing the new readings against each other and their previous readings, but if one sensor is slowly going out , unlike a sudden 10 degree shift, then the more I think about it, trends and so forth, the more I’m confusing myself - any guidance would be appreciated.