8 years, 10 months ago.

About the sensor temperature LM75 on LPC4088

HI everyone~ Thank you for watching my question

i have a problem about LM75 Is it on the LPC4088 board or i need to buy it ? /media/uploads/david8251/14875799_1456918897658137_1367991063_o.jpg

i use i2C (P28、P27) the putty always display pinmap not found for peripheral

so if i buy LM75 and connect it to LPC4088 it will solve? or it has another problem?

Thank you

2 Answers

8 years, 10 months ago.

Hi,

According to the schematics of LPC4088 Experiment base board, an LM75 sensor on the board connected to P1_30 and P1_31 ports which are corresponded to p19 and p20 pins. Therefore, you need to have following definition:

I2C sensor(p19, p20);

or, you can also specify port names as below:

I2C sensor(P1_30, P1_31);

I hope this helps.

Accepted Answer

Thanks very much, i think i got wrong understanding on the document. But is the NXP provide the LM75 test code? i search this code

  1. include "mbed.h"
  2. include "LM75B.h" LM75B tmp(p27,p28);--->i fixed it to (p19, p20) but the display is always 0.38????? int main () { while (1) { printf("%.2f\n",tmp.read()); wait(1.0); } }
posted by jajn HA 30 Oct 2016
8 years, 10 months ago.

I retract my answer. Toyomasa seems to understand your setup better.

Thanks too :)

posted by jajn HA 30 Oct 2016