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 program

00001 #include "mbed.h"
00002 #include "LM75B.h"
00003 
00004 LM75B tmp(p28,p27);
00005 
00006 int main ()
00007 {
00008     while (1) {
00009         printf("%.2f\n",tmp.read());
00010         wait(1.0);
00011     }
00012 }

Library

Import libraryLM75B

A simply library for the LM75B I2C temperature sensor


All wikipages