sightsdev / PyMLX90614

Python driver for MLX90614 infrared temperature sensors
MIT License
14 stars 8 forks source link

Rename get_object_2 function. #2

Open WilliamsJack opened 4 years ago

WilliamsJack commented 4 years ago

Is your feature request related to a problem? Please describe. The MLX90614 package contains two IR sensors, IR1 and IR2. PyMLX90614 has a function to read the temperature from each of these.

1 renames the IR1 function, but not IR2. We may need to rename the IR2 function.

Describe the solution you'd like We need more research and discussion in this area. What is the purpose of two identical IR sensors in the same package? Based on my understanding, IR2 may be faulty in some/many MLX90614s (binning process). IR1 should always work.

Perhaps rename the IR2 function to get_obj_temp_backup or something along those lines (keeping the current get_obj_temp as get_obj_temp).

Describe alternatives you've considered No interesting alternatives. I suppose we could remove the second function altogether, but someone may find it useful to be able to use both IR sensors.

Additional context There is some discussion in #1 about this.

WilliamsJack commented 4 years ago

Tested get_object_2 on another MLX90614 - value is constant -273.15.

mikocevar commented 2 years ago

I have bought a Generic 906 MLX90614 ESF Baa OOO Tu ND Infrared Thermometer IR Sensor from amazon and the get_object_2 returns also -273.15 which is 0K (zero kelvin). I don't have any idea why this value is present though. I'm just providing a little feedback because I questioned myself why is the data even there. Regards