DS18B20 sensor read dec. point

Grant Fleming

Senior Member
Hi all,
I can get the sensor to display whole numbers on screen with the "readtemp" command and "debug" but would like to know how to get it to read to at least one decimal point. In the example in programme editor there is no mention of this. I don't seem to get any indication from the datasheet-(unless I have missed something). Have also used search in this forum but just found everything else about everything else! If anyone could please point me in the right direction I will try to write the code myself.
Cheers,
Grant
 

eclectic

Moderator
Grant.

Go to
Home
Links
Peter Anderson
"Interface with DS18B20"

It works very well.

Added edit.
Use a three word "All" search, using

decimal temperature display
e.

Edited by - eclectic on 30/08/2006 07:23:39
 

Grant Fleming

Senior Member
Thanks for all the prompt replies!
Eclectic, John, I used Peter Andersons 18X code as I am only using one sensor and modified it for the 08M- it does work well!
Hippy, read the topic you suggested, all good just don't need four decimal places for my application but will keep your code in mind if I do at a later stage.
Cheers,
Grant
 
Top