PiThermalCam icon indicating copy to clipboard operation
PiThermalCam copied to clipboard

Python Error when Running file

Open shikharsingh2499 opened this issue 1 year ago • 0 comments

Hi,

I am a beginner to Raspberry Pi and I'm trying to connect an MLX90640 Thermal Camera to a Raspberry Pi 4B via the I2C bus to get a live thermal imaging video. I am using the Pi_Therm_Cam.py file to get a visual output. However, I keep receiving the following error:

RuntimeWarning: I2C frequency is not settable in python, ignoring! warnings.warn(

After this is displayed, nothing happens.

I have even set the baudrate by accessing the sudo nano /boot/config.txt and done the following: dtparam=i2c_arm=on,i2c_arm_baudrate=400000

I have tried to resolve it by removing the frequency parameter from when the 'self.i2c' variable is declared, but that still doesn't let the code run. I also cannot remove that whole line of code, as the following variables('mlx', 'mlx.refresh_rate',etc.) all refer to the 'i2c' variable.

Would appreciate guidance regarding the above. Thanks.

shikharsingh2499 avatar Nov 20 '23 15:11 shikharsingh2499