ptvoinfo / zigbee-configurable-firmware

PTVO firmware for CC2530, CC2531, and CC2652 Zigbee chips
https://ptvo.info/zigbee-configurable-firmware-features/
MIT License
210 stars 22 forks source link

Issue with the accuracy of DS18B20 sensor #251

Closed alienos closed 12 months ago

alienos commented 1 year ago

Issue with the accuracy of DS18B20 sensor.The measurement is sent with an accuracy of 0.5 degrees Celsius, but it should be more precise.I'm not sure if it's a problem with PTV0 or something else. Below is a fragment of the Zigbee2MQTT log. I'm not sure if it's a problem with PTV0 or something else. Below is a fragment of the Zigbee2MQTT log.

Zigbee2MQTT:info 2023-11-26 11:16:47: MQTT publish: topic 'zigbee2mqtt/0x00124b00096c9fca', payload '{"device_l1":"28-FF-EB-72-65-15-01-90","l1":18,"linkquality":81,"state_l1":"OFF","temperature_l1":18}'

Zigbee2MQTT:info 2023-11-26 11:17:35: MQTT publish: topic 'zigbee2mqtt/0x00124b00096c9fca', payload '{"device_l1":"28-FF-EB-72-65-15-01-90","l1":18,"linkquality":81,"state_l1":"OFF","temperature_l1":18}'

Zigbee2MQTT:info 2023-11-26 11:17:47: MQTT publish: topic 'zigbee2mqtt/0x00124b00096c9fca', payload '{"device_l1":"28-FF-EB-72-65-15-01-90","l1":18,"linkquality":81,"state_l1":"OFF","temperature_l1":19}'

Zigbee2MQTT:info 2023-11-26 11:17:47: MQTT publish: topic 'zigbee2mqtt/0x00124b00096c9fca', payload '{"device_l1":"28-FF-EB-72-65-15-01-90","l1":19,"linkquality":81,"state_l1":"OFF","temperature_l1":19}'

Zigbee2MQTT:info 2023-11-26 11:18:47: MQTT publish: topic 'zigbee2mqtt/0x00124b00096c9fca', payload '{"device_l1":"28-FF-EB-72-65-15-01-90","l1":19,"linkquality":68,"state_l1":"OFF","temperature_l1":20}'

Zigbee2MQTT:info 2023-11-26 11:18:47: MQTT publish: topic 'zigbee2mqtt/0x00124b00096c9fca', payload '{"device_l1":"28-FF-EB-72-65-15-01-90","l1":20,"linkquality":68,"state_l1":"OFF","temperature_l1":20}'

Zigbee2MQTT:info 2023-11-26 11:19:47: MQTT publish: topic 'zigbee2mqtt/0x00124b00096c9fca', payload '{"device_l1":"28-FF-EB-72-65-15-01-90","l1":20,"linkquality":65,"state_l1":"OFF","temperature_l1":20.5}'

Zigbee2MQTT:info 2023-11-26 11:19:47: MQTT publish: topic 'zigbee2mqtt/0x00124b00096c9fca', payload '{"device_l1":"28-FF-EB-72-65-15-01-90","l1":20.5,"linkquality":68,"state_l1":"OFF","temperature_l1":20.5}'

Zigbee2MQTT:info 2023-11-26 11:20:47: MQTT publish: topic 'zigbee2mqtt/0x00124b00096c9fca', payload '{"device_l1":"28-FF-EB-72-65-15-01-90","l1":20.5,"linkquality":47,"state_l1":"OFF","temperature_l1":21}'

Zigbee2MQTT:info 2023-11-26 11:20:47: MQTT publish: topic 'zigbee2mqtt/0x00124b00096c9fca', payload '{"device_l1":"28-FF-EB-72-65-15-01-90","l1":21,"linkquality":47,"state_l1":"OFF","temperature_l1":21}'

Tested for a long time. I touched the sensor to increase the temperature, and the measurement was always with an accuracy of 0.5 degrees instead of, for example, 12.33 or other values. I have a CC2530.

alienos commented 12 months ago

Sorry problem solved. Earlier in the Arduino I set the ds18b20 to a measurement resolution of 9 and I guess then in the ptvo it should set to 12 which didn't happen.(Unless I'm wrong) Anyway I connected once to the arduino and set it to 12 and after switching to the ptvo it already measures with that accuracy.