Please be aware of all shipping deadlines before placing your order - we cannot guarantee orders will arrive before Christmas!

Reading temperature data on a Chronodot?
Moderators: adafruit_support_bill, adafruit

Reading temperature data on a Chronodot?

by sjn3 on Sun Nov 18, 2012 11: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.requestFrom(0x68, 2); // read 11h & 12h
while(Wire.available()) {
tempMSB =; //get signed integer: MSB=sign, 7 LSB = integer
tempLSB =; //get binary decimal: 2 MSB = data, 6 LSB = 0
Posts: 15
Joined: Fri Nov 19, 2010 12:36 pm

Re: Reading temperature data on a Chronodot?

by macegr on Mon Nov 19, 2012 12:52 am

11 is not the same as 11h :)
macetech LLC -
User avatar
Posts: 290
Joined: Fri Apr 04, 2008 4:46 pm