I just had no idea same can be applied to DS18B20 readings![]()
I just had no idea same can be applied to DS18B20 readings![]()
you may have read the DS18B20 datasheet but you are using code for a DS18S20 so the first step is work out what you really have and then use the correct methodWhat should be fixed there to display negative temperature properly?
As I've read DS18B20 datasheet, negative temperature output will always have 4 MSB bits set to 1111. But what's wrong with the above conversion formula?
Warning I'm not a teacher
Well I have it running with DS18B20 and it displays positive temperatures just fine...
I also used this:
https://melabs.com/samples/LABX1-16F...emp_DS1822.htm
But it is much slower.
And I don't need high precision, this is just room temperature thermometer, 1C precision is ok.
Bookmarks