Overview

Driver for TMP102 (and compatible) temperature sensors.

Resources

All correct at time of writing, but as always, manufacturers love to move things around on their website.

Web page

http://www.ti.com/product/tmp102

Datasheet

http://www.ti.com/lit/ds/symlink/tmp102.pdf

Test hardware

This code has been tested using a SparkFun TMP102 breakout board:

http://www.sparkfun.com/products/9418

This was wired to a CoreProto and plugged into a SenseCore:

http://soldercore.com/products/sensecore/

And finally installed on a SolderCore:

http://soldercore.com/products/soldercore/

Specification
Parameter Supported settings
Resolution (°C) 0.0625 (fixed)
Range (°C) −55 to +128 (default), −55 to +150 (extended mode).
Communication up to 3.4 MHz (I2C)

API Summary

Macros
TMP102_I2C_ADDR TMP102 8-bit I2C address
TMP275_I2C_ADDR TMP275 8-bit I2C address
Functions
tmp102_initialize_i2c Initialize sensor on I2C bus
tmp102_set_extended_mode Select extended temperature range