1.. _ti_tmp11x_sample: 2 3TI_TMP11X Sample 4################ 5 6Description 7*********** 8 9This sample application periodically takes temperature readings using the ti_tmp11x 10sensor driver. The result is written to the console. This sample also included the code 11to use the features provided by TMP117 and TMP119, which are sensors similar to TMP116. 12 13Requirements 14************ 15 16This sample needs a TI TMP116, TI TMP117 or TI TMP119 sensor connected to the target board's I2C 17connector. 18 19 20Wiring 21****** 22 23This sample is tested with Nucleo STM32F401RE board. 24 25The sensor operates at 3.3V and uses I2C to communicate with the board. 26 27External Wires: 28 29* Breakout **GND** pin <--> Nucleo **GND** pin 30* Breakout **VCC** pin <--> Nucleo **3V3** pin 31* Breakout **SDA** pin <--> Nucleo **CN5-D14** pin 32* Breakout **SCL** pin <--> Nucleo **CN5-D15** pin 33 34Building and Running 35******************** 36 37In order to build the sample, connect the board to the computer with a USB cable and enter the 38following commands: 39 40.. zephyr-app-commands:: 41 :zephyr-app: samples/sensor/tmp11x 42 :board: nucleo_f401re 43 :goals: build flash 44 :compact: 45 46Sample Output 47************* 48The output can be seen via a terminal emulator (e.g. minicom). Connect the board with a USB cable 49to the computer and open /dev/ttyACM0 with the below serial settings: 50 51* Baudrate: 115200 52* Parity: None 53* Data: 8 54* Stop bits: 1 55 56The output should look like this: 57 58.. code-block:: console 59 60 Device TMP11X - 0x200010a8 is ready 61 temp is 26.7031250 oC 62 temp is 26.7109375 oC 63 ... 64