Go Down

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

Grumpy_Mike

Quote
Everybody may, use and criticize.

Thanks - I don't like your hair!  :P

Markus_L811


Quote
Everybody may, use and criticize.

Thanks - I don't like your hair!  :P

Strange my wife say's the same.

#17
Jan 03, 2014, 04:45 am Last Edit: Jan 03, 2014, 04:48 am by blink1073 Reason: 1
A note for posterity...
Markus_L811's code works great because he is reading the temperature every 10ms.  If you wait longer between reads (say 1sec), you start to get garbage readings after 10 or so readings.  But, if you make the raw measurement (the temperatur function) twice in a row when needed, it works fine.  It takes about 90usec total for each temperature reading (with the double read).


ohruska

I'm new here.
Please take this view with caution.
I fixed this:
/ / float factor = 0.00256;
float factor = 0.0265;

Doc ATMEL= The VT output voltage linearly varies with a temperature slope dVT/dT = 2.65 mV/°C.

And added that, as previously stated,
void loop () {
temperatur ();
delay (1);

Go Up