11 years, 2 months ago.

TMP102

Hi All, Just to be clear (I think I've worked this one out and read previous help posts) I have a SRF08 and HMC6352 on the same I2C bus with pull up resistors. However I can't connect a TMP102 to this I2C bus because of the internal resistors on the TMP102 board so I have to use the other I2C bus for this device.

The reason I'm asking is when I bring them all together on the same I2C bus the LCD display doesn't work as expected.

Many thanks. Degs

Assuming the resistors on that TMP102 bus aren't very small it shouldnt be a problem, the range I2C pull up resistors need to be is quite large.

posted by Erik - 17 Feb 2013

1 Answer

11 years, 2 months ago.

Done as previous forum threads and put the TMP102 on pins 27 and 28 with the other I2C sensors on pins 9 and 10. I have a EM-406 on pin 14 and everything worked fine for about 30secs? When I now run this code

#include "mbed.h"
#include "TextLCD.h"
#include "TMP102.h"

TMP102 temperature(p28, p29, 0x90); //A0 pin is connected to ground
TextLCD lcd(p15, p16, p17, p18, p19, p20); // rs, e, d4-d7

int main()
{
 while (1){ printf("Temperature: %f\n", temperature.read());
            wait(5);
           } 
 // return 0;
}

I get the four mbed leds flashing?

Accepted Answer

Spotted the mistake should be p28,p27

posted by Derek Calland 17 Feb 2013