Pages: 1 [2]   Go Down
Author Topic: DUE temperature sensor API  (Read 4770 times)
0 Members and 1 Guest are viewing this topic.
Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 631
Posts: 34510
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Everybody may, use and criticize.
Thanks - I don't like your hair!  smiley-razz
Logged

Germany
Offline Offline
Full Member
***
Karma: 10
Posts: 230
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Everybody may, use and criticize.
Thanks - I don't like your hair!  smiley-razz
Strange my wife say's the same.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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).
« Last Edit: January 02, 2014, 10:48:07 pm by blink1073 » Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the code. 
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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);
Logged

Pages: 1 [2]   Go Up
Jump to: