Reading temperature data on a Chronodot?

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Reading temperature data on a Chronodot?

Postby sjn3 » Sun Nov 18, 2012 10:42 pm

Has anyone tried reading the temperature data registers in a Chronodot? I'm getting good time and date data off the chip using the appropriate register offset & quantity with this code so I believe I _am_ addressing registers 11h & 12h; but tempMSB is always 2h and tempLSB is always 12h even while heating or cooling the chip (which automatically updates the registers every 64 seconds).

Any ideas/comments? Thanks.

My code:
Wire.beginTransmission(0x68); // 0x68 is DS3231 device address
Wire.write((byte)11); // start at register 11h
Wire.endTransmission();
Wire.requestFrom(0x68, 2); // read 11h & 12h
while(Wire.available()) {
tempMSB = Wire.read(); //get signed integer: MSB=sign, 7 LSB = integer
tempLSB = Wire.read(); //get binary decimal: 2 MSB = data, 6 LSB = 0
}
sjn3
 
Posts: 12
Joined: Fri Nov 19, 2010 11:36 am

Re: Reading temperature data on a Chronodot?

Postby macegr » Sun Nov 18, 2012 11:52 pm

11 is not the same as 11h :)
macetech LLC - http://www.macetech.com
User avatar
macegr
 
Posts: 285
Joined: Fri Apr 04, 2008 3:46 pm


Return to Other Arduino products from Adafruit

Who is online

Users browsing this forum: No registered users and 2 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [105]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
Android[6]
 
BeagleBone[24]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]