MLX90614 Thermopile temp in Fahrenheit
VG
Posts: 32
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
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
Comments
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
I've tried to write to the EEPROM first. [noparse][[/noparse]0,"!TEMW",$5A,$2E,$1A,"z"]. And 0,"!TEMc",$5A,$07. But didn't work...
Yes, I am using a RS232-TTL converter.
·· 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.