Page 321 - ARM Based Microcontroller Projects Using MBED
P. 321

11.3 PROJECT 1—TMP102 TEMPERATURE SENSOR             307














            FIG. 11.2  Block diagram of the project.

                      11.3 PROJECT 1—TMP102 TEMPERATURE SENSOR

            11.3.1 Description
              In this project the TMP102 temperature sensor module is used to read and display the am-
                                                          2
            bient temperature on the PC screen. This sensor is I C bus compatible.

            11.3.2 Aim
                                                  2
              The aim of this project is to show how an I C bus compatible device can be connected to the
            Nucleo-F411RE development board and also how it can be programmed using Mbed.
            11.3.3 Block Diagram

              The block diagram of the project is shown in Fig. 11.2.

            11.3.4 Circuit Diagram
              TMP102 module (see Fig. 11.3) has the following pins:

              GND: Power supply ground
              Vcc: Power supply (1.4–3.6V)
                    2
              SDA: I C data line
                    2
              SCL: I C clock line
              ALT: Alert
                      2
              ADD0: I C address select
              The ADD0 pin is used to select the device address. By default the device address is 0x48.
            Four different addresses can be selected depending on where the ADD0 pin is connected to:


                                                            2
                                    ADD0 Connection        I C Address
                                    No connection          0x90 (default)
                                    GND                    0x90
                                    Vcc                    0x91
                                    SDA                    0x92
                                    SCL                    0x93
   316   317   318   319   320   321   322   323   324   325   326