convert LTC1298 output to temperature
MikeS
Posts: 131
I have an LM34 connected to a LTC1298 ADC.
Will the formula below work to calculate the temperature?
AD = output of LTC1298
819 = 1/1.22mv (AD resolution)
v1 = AD/819· (hundreds degress)
v2 = (AD//819)*10·(tens degrees)
v3 = (v2/819)·
v4 = (v2//819)*10· (ones degrees)
Anyone know of a different method?
Will the formula below work to calculate the temperature?
AD = output of LTC1298
819 = 1/1.22mv (AD resolution)
v1 = AD/819· (hundreds degress)
v2 = (AD//819)*10·(tens degrees)
v3 = (v2/819)·
v4 = (v2//819)*10· (ones degrees)
Anyone know of a different method?
Comments
degF = ADCounts ** 8002
Why 8002? The fraction 8002/65536 is a close approximation to 0.1221. To find that factor, you are simply solving this equation:
factor / 65536 = 1221 / 10000
Internally, when the Stamp sees the ** operator, it multiplies together the two numbers and divides by 65536 (2^16).
Look at the help on the ** and */ operator, and this URL:
www.emesystems.com/BS2math1.htm
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
I figured there was an easier way. You explained the ** operator very well and I posted your BS2 math link in my Stamp favorites.
I Appreciate it!
Mike