Go Down

Topic: DUE temperature sensor API (Read 5 times) previous topic - next topic

neil12

I put in a request to enable the ADC15/temperature sensor. However - it is the temperature on the die - which does warm up.
To make it be close to the ambient temperature is going to require implementing a power down mode - no power no die warmup - and then on wakeup reading the temperature straight away.

mantoui




So analogRead(15) will only work if the TSON bit in ADC_ACR is set by the looks of it. So it's up to the Arduino guys to do that or I guess you can do it yourself.
_____
Rob


in hardware/arduino/sam/system/libsam/source/adc.c there is an  adc_enable_ts() that sets   ADC_ACR_TSON, and the temperature calculation is described in Chapter 46.8 of reference pdf,  2.65mv/deg and 0.8v at 27C

Graynomad

Quote
Chapter 46.8 of reference pdf

What reference PDF?

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com


Graynomad

Got it, I had an older version of the data sheet with less info.

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

Go Up