According to data sheet Temperature coefficient of 22.5mV/ deg C
Since it has o/p at 0.25V (which would be the offset) at -50 deg C therefore
formula derived form that is Vout = (Measured temp +50)*0.0225+0.25
Transposing for measure temp (T)
T=50*(8*Vout-11)/9
With variable asigned as Int. If I replace Vout with ADC count I get
T = 50*(8*(5/1023*ADC Count)-11)/9
This works great on excel or a calculator, just not in a formula for a micocontroller.
To test
at 4.75V = ADC of about 971 Temp Approx 150 deg C
at 1.87V = ADC of about 382 Temp Approx 22 deg C
Edit Ive just worked out :
T=(2000*ADC)/9207-(550/9).....Getting better, any one can help please?
I would be really greatful.
Thank you.