Home › Magazines › 2009 › March › Another Brisk Day Today!

Another Brisk Day Today!

Temperature measurement with the ATM18 and a 1-wire bus

Published in issue 387, March 2009

Another Brisk Day Today!
If we define 'cold' as the absence of heat, we’re heading in the right direction in terms of physics. Like darkness, cold is not ‘real’, but in subjective human terms we can certainly talk about cold, dark nights. A more objective approach is to measure the temperature, which is what we have in mind this time with our ATM18 system.

Extra info, Updates

February 18, 2009

owing to a pagination error the final text block of the article was not printed on page 52. It is rendered below.

 

You can now read out a single byte, or all eight bytes at once in order to increase the temperature resolution (Rom(1) = 1wread(8)).

You can increase the temperature resolution by evaluating the seventh byte (COUNT REMAIN) of the set of read bytes. It contains a value in the range of 1 to 16, which must be interpreted as sixteenths of a degree. However, you must be careful here because the least significant bit of the low byte of the ‘regular’ temperature reading (0.5 degree) is the same as the most significant bit of the Count Remain register. This means that you must first round to whole degrees and then add the sixteenths count.

The best possible resolution is thus 0.06 degree, so the result is displayed with two digits after the decimal point. Naturally, the final digit should be treated with caution, since you should always make a clear distinction between accuracy and resolution. The actual accuracy is approximately 0.5 °C in the range from –55 °C to + 85 °C. However, the enhanced resolution makes it easier to recognise very small temperature changes. If you hold two sensors in close thermal contact and compare their displayed readings, you will see that the difference is usually less than 0.1 °C.

(080641-I)

 

[1] http://en.wikipedia.org/wiki/Temperature

[2] www.elektor.com/080641

[3] http://datasheets.maxim-ic.com/en/ds/DS18S20.pdf

 

  

Click below to download a PDF copy of this article from Elektor magazine.

 

Downloads 

Article PDF
10 Elektor Credits
 

Order this magazine 

Magazine March 2009
UK387 (USD 6.70)
 

Free downloads 

Software

Free download

Please note. In view of the complexity of international markets, Elektor cannot guarantee the availability of components for this project.

Subscribe now

Subscribe to our free
E-weekly Newsletter!

Enter your Email address:

Follow Elektor

      

Act now!

Sponsored

FAQ

Before submitting questions, review our FAQ section!

Bestseller

Controller Area Network Projects

The aim of this book is to teach you the basic principles of CAN networks and in addition the development of microcontroller based projects using the CAN bus.

Package Deals

Elektor Bundles

Check our Package Deals and save money! Discounts up to 19% now available!

Price Slashed

Elektor OSPV

This Open Source People Vehicle is perfect for factory halls, warehouses, hospitals, colleges, schools etc.