Anyone used the TMP102 temperature sensor (I2C interface)


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2008
    Location
    Maine, USA
    Posts
    81

    Default Anyone used the TMP102 temperature sensor (I2C interface)

    I'm struggling to get this apparently simple TMP102 thermometer chip to respond to I2C reads. I'm using the SparkFun breakout board: http://www.sparkfun.com/products/9418
    And working with a 12F675. Just trying to get temperature readings from it, but it is not ACKnowledging the I2Cread commands like this:

    I2Cread SDA,SCL,tmpcon,tmpaddr,[temperature.highbyte,temperature.lowbyte]

    Anyone used this pesky chip before?
    "Do or do not, there is no try" Yoda

  2. #2
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default Re: Anyone used the TMP102 temperature sensor (I2C interface)

    There has been work done with the TMP100 series. Not sure of the differences.

    Check out http://www.picbasic.co.uk/forum/cont...as-Instruments

    Walter

  3. #3
    Join Date
    Sep 2008
    Location
    Maine, USA
    Posts
    81


    Did you find this post helpful? Yes | No

    Default Re: Anyone used the TMP102 temperature sensor (I2C interface)

    There are some differences between these chips, but this may help a bit - thanks.
    Still can't get and ACK from the darned chip though. Will order a spare - I may have smoked it....
    "Do or do not, there is no try" Yoda

  4. #4
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Default Re: Anyone used the TMP102 temperature sensor (I2C interface)

    Quote Originally Posted by tekart View Post
    I'm struggling to get this apparently simple TMP102 thermometer chip to respond to I2C reads. I'm using the SparkFun breakout board: http://www.sparkfun.com/products/9418
    And working with a 12F675. Just trying to get temperature readings from it, but it is not ACKnowledging the I2Cread commands like this:

    I2Cread SDA,SCL,tmpcon,tmpaddr,[temperature.highbyte,temperature.lowbyte]

    Anyone used this pesky chip before?
    tekart,
    I am also trying to use the Sparkfun breakout for the TMP102, but with a PIC18F2550. Having similar problems in using the I2C bus to read a temperature from the device. Did you ever resolve your problem with the TMP102? If so, could you please share your PICBASIC code and any circuit schematic you are using with the breakout to make it work? Thanks!
    jellis00
    Last edited by jellis00; - 24th June 2011 at 22:11.

  5. #5
    Join Date
    Sep 2008
    Location
    Maine, USA
    Posts
    81


    Did you find this post helpful? Yes | No

    Default Re: Anyone used the TMP102 temperature sensor (I2C interface)

    Here's what worked for me:

    I2CWRITE SDA,SCL,%10010000,$01,[%11100101] ' get one-shot sample
    pause 350 ' wait for conversion to complete
    I2Cread SDA,SCL,%10010000,$00,[tempH,tempL] ' read the temperature as 2 bytes

    hope this helps
    "Do or do not, there is no try" Yoda

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts