Overview

Driver for LM75 temperature sensor.

National Semiconductor is now a wholly-owned subsidiary of Texas Instruments. Many temperature sensors are compatible with the original LM75, and many of them offer higher resolution, accuracy and additional features. This driver provides a standard view of the LM75 with fixed dynamic resolution.

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/lm75a

Datasheet

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

Test hardware

This code has been tested using the LM75 of a Gravitech 7-segment shield: http://www.gravitech.us/7segmentshield.html

This was plugged into a SolderCore:

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

Specification
Parameter Supported settings
Resolution (°C) 0.5 (fixed)
Communication up to 400 kHz (I2C)

API Summary

Macros
LM75_I2C_ADDR LM75 8-bit I2C address
Functions
lm75_initialize_i2c Initialize LM75 on I2C bus
lm75_initialize_i2c_ex Initialize LM75-compatible on I2C bus