DS18B20 vs TMP36

Hello

What is the difference between those two temps and which one is better to use normally?

Thanks

  • DellBell

See attached..

sf-DS18B20.pdf (256 KB)

TMP35_36_37.pdf (335 KB)

DellBell:
What is the difference between those two temps and which one is better to use normally?

The DS18B20 is a digital temperature sensor using the Dallas 1-wire protocol. To use it, you have to include the 1-wire library:

http://playground.arduino.cc/Learning/OneWire#.UyyjS_k8Cao

The TMP36 is just an analog output temperature sensor. You connect it to your analog input pin and scale the voltage to a temperature.

Which is better? I don't know. I like the digital one better because you don't have to deal with inaccuracy in the analog line. But I'm not sure how inaccurate that is typically.

The analog sensor needs (constant) calibration, esp when power supply fluctuates.
The digital sensor is more stable.

The other thing I like about the DS18B20 is that it uses a bus, so the three sensors I have, only use one input.