LM75B Temperature Sensor

Table of Contents

  1. Hello World!
  2. Library

The LM75B is an I2C digital temperature sensor that is available in various packages. It has a range of -55^C to +125^C, with a 0.125C resolution.

Featured on the mbed application board

http://tempsensors.interfacechips.com/tpl/capsensor/img/chip-lm75.png/media/uploads/chris/app_board_front_small.png

Hello World!

LM75mbed
VccVout
SDAp28
SCLp27
GndGnd

» Import this program

#include "mbed.h"
#include "LM75B.h"

LM75B tmp(p28,p27);

int main ()
{
    while (1) {
        printf("%.2f\n",tmp.read());
        wait(1.0);
    }
}

Library

» Import this library into a programLM75B

A simply library for the LM75B I2C temperature sensor





1 comment:

08 Mar 2013

i want to use the module MTP81 with I2C connection can you give me some informations please !!