CMM2: DS18B20 Temp sensor problem


Author Message
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6210
Posted: 08:36pm 13 Mar 2025      

  Quote  The magic 473ms seems to work for all modes, but no ms less..even for mode 0

Based on my test code, your chip pretends to change mode but takes the same time for each resolution.
That is not possible.
Your chip is of uncertain accuracy and bears no resemblance to the data sheet figures.

Peter has added code to allow these dubious chips to be used more easily but it in no way makes them "genuine"
If you change the chip, you will have to determine the timing again so they are not readily replaceable. Each one needs calibrating for each resolution of interest.

Jim