In using the DS18B20 for a couple of projects I have mostly used software snippets from others, accepting the compromises that entails; but now it's about time I took control and wrote my own code to get the best out of them.
I have read the datasheet from Maxim, though I confess I didn't understand much of it. It did prompt a few questions, and I hope you learned folk will help me with them.
-
The CONVERT command. Does issuing this command make every DS18B20 on the network do a temperature conversion?
-
During conversion would the network be 'tied-up' until the last sensor had finished?
//Background: I want to use 6 sensors, five at 10 bit resolution, one at 12 bit. -
Once conversion had finished would each hold its value in its scratchpad area? If no further commands were issued by the master would that value be held (almost) permanently?
-
Is it practical to issue a more frequent CONVERT command to an individual sensor? In doing this would all the remaining sensors retain their last readings in their scratchpads?
//Background. One sensor is used in a control loop, and needs 0.1 C resolution (so 12 bits) and to be reliably read and acted upon every 2 seconds. The other 5 sensors are room air temperature only, 0.5C resolution, and may be read much less frequently (9 bits). -
The datasheet makes claims of suitability for 'industrial applications'. Does this imply they will tolerate noisy electrical environments, and operate reliably over tens of metres of cable?
TIA
GM