- include "mbed.h"
- include "TMP102.h"
TMP102 temperature(p28, p27, 0x90); A0 pin is connected to ground
Serial pc(USBTX, USBRX); tx, rx to PC
int main()
{
while(1) {
pc.printf("Temperature: %f\n", temperature.read());
wait(1.0);
}
}
it's the same thing for pins 9&10 i read about them that they are connected to the SD slot so i moved to 28 and 27.
could there be a problem with my breadboard or wires ? i tried to force the resistors as hard as i could into the slots without bending them too much, i think the wires go kind of hard inside, maybe because the breadboard is new.
I tried to import other ppl's codes on and the result is the same 0.000000000000 i googled it but didn't find too much info.
Thanks for trying to help.
Hi !
I design my own PCB to implement the SOT TMP102.
I connected my sda, scl, Vcc et gnd pins on my Mbed, using I2C connector.
I test the HelloWorld program of Donatien but when I implement a Serial pc communication, I don't receive what the sensor need to send.
Anyone have an idea about how to solve the issue ?