Thermal Sensor MLX90640: Python example not working

Hi there,

my MLX90640 is working in the sense that gives me the expected rows of pure data.
Anyway, the Python example (executed via ircamera ISC MLX90640) starts a blank window, but is terminating soon. Here’s the error code:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/", line 99, in run
  File "/usr/local/lib/python3.9/dist-packages/", line 87, in i2cRead
  File "/usr/local/lib/python3.9/dist-packages/", line 125, in getFrame
    status = self._GetFrameData(mlx90640Frame)
  File "/usr/local/lib/python3.9/dist-packages/", line 154, in _GetFrameData
    raise RuntimeError("Too many retries")
RuntimeError: Too many retries

Any hints?
Thanks in advance!

Hi, my English is not very good, please forgive me, do you run in python?
In my tests there were no similar issues with the use of arduino on wiki.

Hi @Seeed_Jostar ,
thanks a lot for your fast reply.
I’m running in python on a Raspberry Pi.
I discoverd by accident a solution: Changing RefreshRate from 8 Hz to 4 Hz did the trick.
I’m assuming that’s because I’m running a pretty old hardware: A Raspberry Pi 2 from 2014 - good old days. :slight_smile:

Here is what I did:
and changing

Thanks again and good bye!