Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
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 ?
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.
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
- include "mbed.h"
- 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); } }