Texas Instruments

Table of Contents

Example Summary

Sample application to read temperature value from a TMP006 I2C temperature sensor.

Peripherals Exercised

Resources & Jumper Settings

Please refer to the development board’s specific Settings and Resources section in the Getting Started Guide. For convenience, a short summary is also shown below.

Development board Notes
CC3200 This example uses the onboard TMP006 temperature sensor. Close jumpers J2 and J3
DK-TM4C129X An external TMP006 Booster Pack (430BOOST-TMP006) is required to successfully complete.
EK-TM4C123GXL
EK-TM4C1294XL
EK-TM4C129EXL
MSP-EXP430F5529LP
MSP-EXP430FR5969
MSP-EXP430FR6989
MSP-EXP430FR5994
MSP-EXP432P401R

Fields left blank have no specific settings for this example.

Example Usage

Application Design Details

This application uses one tasks:

'getTempTask' - performs the following actions:

  1. Opens and initializes an I2C driver object.

  2. Uses the I2C driver to get data from the TMP006 sensor.

  3. Extracts the temperature (in Celsius) and prints the value on the console.

  4. The task sleeps for 1000 system ticks.

  5. After 20 temperature samples are recovered, the I2C peripheral is closed and the example exits.

References