How to Interface the TMP102 & TMP112 Temperature Sensors with Arduino
The TMP102 is a digital temperature sensor with a typical accuracy of 0.5C. The device is guaranteed to have an accuracy of 3C (max) from -40C to 125C without any calibration. The TMP102 is available in a 1.6mmx1.2mm SOT-563 package and has a low quiescent current of 10uA (max), making it suitable for a number of portable and battery-powered applications.
Since TMP112 (higher accuracy temperature sensor) is software compatible with TMP102, the tutorials, code, and examples are applicable to both.
In this tutorial, you will learn how to configure and read from the TMP102/TMP112, as well as how to output the room temperature in Celsius to a standard 16x2 LED display. We will go over the basic functionality of the TMP102/TMP112 and the specifics on using I2C and Arduino to both control and read from registers on the device. A working demonstration of the TMP102/ TMP112 and the LCD display will be provided, as well as a step-by-step through the code so that you can reproduce these results with the TMP102/ TMP112 on your own.