Hi!
These results are the output of the Analog to Digital Converter (ADC12). You have to make sure the ADC reference voltage: it's usually 1.5V or 2.5V. For example, if you set the reference to 2.5V, a value of 0=0V and 4095(2^12-1)=2.5V. Also you need to know the sensor transfer function (it relates the temperature with analog voltage). Are you using external temperature sensor (Sensirion) or the internal sensor (inside the CPU)? If you're using the internal sensor, this function is: Vo=0.00355*(TempC)+0.986 --> Temp(ºC)=(Vo-0.986)/0.00355. So if you get a value 1405 and your ADC12 has 2.5V of voltage reference, the temperature is -36ºC approx. --- José A. Tarifa Galisteo Telecommunication Engineer University of Seville email [1] Website [2] On Sun, 24 Jul 2011 14:22:07 +0300, Geo Gkolfin wrote: > Hello, > I am reading from a telosb temperature sensor and I get huge values, e.g. 1331, 1405 etc. I have defined a uint16_t temp variable and at readDone event I set: > temp=data; > Can anyone help? > Thank you in advance, > Georgia Links: ------ [1] mailto:[email protected] [2] http://alumno.us.es/j/jostargal/
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
