adafruit / Adafruit-MLX90614-Library

Arduino library for the MLX90614 sensors in the Adafruit shop
Other
128 stars 97 forks source link

Why is the MLX90614 Datasheet Measurement Resolution 0.02 C but in after I try, it can be 0.01 C? #21

Closed jake-winson closed 3 years ago

jake-winson commented 3 years ago

I thought I would get even data, but it turns out I can get odd data too.

how it can be happened?

jake-winson commented 3 years ago

I couldn't provide my example, but here's the example from internet image

on the first data, the object is 27.03, but the last data, show the object temp is 27.16

ladyada commented 3 years ago

rounding effect and floating point inconsistancies! https://github.com/adafruit/Adafruit-MLX90614-Library/blob/master/Adafruit_MLX90614.cpp#L117 https://floating-point-gui.de/