PiThermalCam
PiThermalCam copied to clipboard
Python Error when Running file
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.