In my previous post, I showed how to add a real-time clock (RTC) to Raspberry Pi via the I2C bus. Another device that is simple to interface with the Raspberry Pi via the I2C bus is the TMP102TMP102 temperature sensor. Technically, its datasheet states "Two-Wire Interface", but TWI can be treated as synonymous with I2C in this context. For convenience, I bought SparkFun's TMP102 breakout board:
Unlike with the DS1307 RTC in my previous post, this device can run at 3.3V so no logic level converter is needed. I was able to add the TMP102 to my existing broadboard configuration with the RTC. I simply added to the SDA and SCL lines on the 3.3V side of the logic level converter that is used for the DS1307 RTC:
(From Left to Right: Adafruit 4-channel I2C-safe logic level converter, Adafruit DS1307 RTC board, TMP102 temperature senor, SparkFun logic level converter board [connected to FTDI cable for serial console])
TI TMP102 I2C temperature sensor on breakout board
TI / Sparkfun electronics
*Products and resources listed are listed to help members build their own Pi Projects. They are suggestions and listed for educational purposes. For substitutions of any parts, please post a question asking the original author.