TMP007 problem with begin() and reading object temp

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
rabatecola
 
Posts: 3
Joined: Mon Aug 17, 2015 1:21 am

TMP007 problem with begin() and reading object temp

Post by rabatecola »

I am working with a new TMP007 and have encountered a couple of problems. These occur whether I'm using the sample code or my own project. The controller is an Adafruit HUZZAH ESP8266.

In the sample code, the call to tmp007.begin() always returns false. As an experiment, I tried ignoring the return value and found that I get reasonable readings from readDieTempC but always get nan from readObjTempC regardless of what is within the sensor's field of view.

I have tried with and without a call to Wire.begin(4, 5) prior to calling begin() in the TMP007 library.

The TMP007 board is wired to the HUZZAH like so:
Vcc -> V+
Gnd -> Gnd
SDA -> #4
SCL -> #5
Alert -> No connection (NC)
AD1 -> NC
AD0 -> NC

Power is from an Adafruit FTDI serial cable connected to my computer's USB. IDE is Arduino 1.6.5.

Thanks for taking a look at this.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: TMP007 problem with begin() and reading object temp

Post by adafruit_support_rick »

begin will only return false if the device ID it reads from the chip is not 0x78. You can enable debugging to print out the device ID it is getting. Uncomment the symbol in Adafruit_TMP007.h

Code: Select all

// uncomment for debugging!
#define TMP007_DEBUG 1

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”