PDA

View Full Version : MLX90614 Thermopile temp in Fahrenheit



VG
01-22-2009, 05:53 AM
Please.

Add this to your MLX90614.spin

OBJ
··Fa······ : "FloatMath"

PUB GetTempF· | Temp
· Temp := Fa.FRound(Fa.FSub(Fa.FDiv(GetTempRAW * 9 , 250 ), 459.67))
· return Temp

Any one tried to use MLX90614 in place of of TPA81?? Can you share your experiences?

Sincerely,
VG

See next post.

Post Edited (VG) : 1/23/2009 4:38:22 AM GMT

VG
01-23-2009, 12:32 PM
Simplified the above mathematically and removed FloatMath (cog saved).
However see my comments. Any one know why?
This way it is OK. But rounding.

PUB GetTempF | Temp
Temp := GetTempRAW * 9 - 114918
' (GetTempRAW * 9) - 114917.5 did not return correct value.
return (Temp / 250)
' (Temp /250) <<8 + (Temp // 250) << 1·· did not return proper values why???


Sincerely,
VG

Post Edited (VG) : 1/23/2009 4:37:42 AM GMT

Alex_NY
04-23-2009, 01:40 AM
Basic question with which commands you could utilize your MLX90614 module? I couldn't receive any reply from my modules yet...

I've tried to write to the EEPROM first. [0,"!TEMW",$5A,$2E,$1A,"z"]. And 0,"!TEMc",$5A,$07. But didn't work...

Yes, I am using a RS232-TTL converter.

VG
04-23-2009, 08:58 AM
Hi Alex_NY,

·· how are you using the MLX90614? With Propeller Proto board? or With BS2???

For propeller, I used the MLX90614·object in obex.

·Let me know if you cannot find it. I will PM my object.

Sincerely,
Venkata.