黑色摄像头和MLX90614至树莓派3

时间:2020-07-17 11:04:45

标签: python opencv raspberry-pi raspberry-pi3 raspbian

你好,我有覆盆子黑色相机和MLX90614。 相机连接到相机端口,mlx连接到i2c。 当我启动相机工作正常。 当我启动mlx时工作正常。 但是启用相机后,mlx90614无法正常工作,并且会显示此按摩消息

Traceback (most recent call last):
  File "sensor2.py", line 12, in <module>
    print("Ambent Temp: ", mlx.ambient_temperature+float(a))
  File "/home/pi/.local/lib/python3.7/site-packages/adafruit_mlx90614.py", line 109, in ambient_temperature
    return self._read_temp(_MLX90614_TA)
  File "/home/pi/.local/lib/python3.7/site-packages/adafruit_mlx90614.py", line 117, in _read_temp
    temp = self._read_16(register)
  File "/home/pi/.local/lib/python3.7/site-packages/adafruit_mlx90614.py", line 127, in _read_16
    i2c.write_then_readinto(self.buf, self.buf, out_end=1)
  File "/home/pi/.local/lib/python3.7/site-packages/adafruit_bus_device/i2c_device.py", line 156, in write_then_readinto
    in_end=in_end,
  File "/home/pi/.local/lib/python3.7/site-packages/busio.py", line 136, in writeto_then_readfrom
    stop=stop,
  File "/home/pi/.local/lib/python3.7/site-packages/adafruit_blinka/microcontroller/generic_linux/i2c.py", line 88, in writeto_then_readfrom
    address, buffer_out[out_start:out_end], in_end - in_start
  File "/home/pi/.local/lib/python3.7/site-packages/Adafruit_PureIO/smbus.py", line 273, in read_i2c_block_data
    ioctl(self._device.fileno(), I2C_RDWR, request)
TimeoutError: [Errno 110] Connection timed out

但是当停止相机mlx正常工作时 我能做什么 我尝试使用USB相机,但问题无法解决

0 个答案:

没有答案