Shop OBEX P1 Docs P2 Docs Learn Events
MLX90614 Thermopile temp in Fahrenheit — Parallax Forums

MLX90614 Thermopile temp in Fahrenheit

VGVG Posts: 32
edited 2009-04-23 00:58 in Propeller 1
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

Comments

  • VGVG Posts: 32
    edited 2009-01-23 04:32
    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_NYAlex_NY Posts: 3
    edited 2009-04-22 17:40
    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. [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.
  • VGVG Posts: 32
    edited 2009-04-23 00:58
    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.
Sign In or Register to comment.