Go Down

Topic: DUE temperature sensor API (Read 5 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.

blink1073

#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).

jstampfl


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
 

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.
Name:
Email:

shortcuts: alt+s submit/post or alt+p preview