-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSError: [Errno 5] Input/output error in raspberry pi 4 #33
Comments
How is the camera attached to the Pi? |
hi, @caternuson Is it possible to make the Vin attached with the other power supply instand of GPIO 3.3V on Pi ,and attached the GND of camera/power supply/Pi all toghther? |
Wiring is nominally correct: But need to see photos of your actual setup and connections. |
Hi, @caternuson This is the connection on MLX90640 I connect the dupont line again with same color (pin to pin) to make it longer And here is the original connection on Pi GPIO RED> PIN1(3.3V) Then I fix the mistake to let Brown(VIN) connected to GPIO PIN1(3.3V) |
Correct - the 3Vo pin should not be connected to anything. It's an output from the camera module. Are these timing repeatable? Or is the amount of time random?
|
@caternuson |
@caternuson |
It could be related. Were you changing the I2C speed by modifying i2c = busio.I2C(board.SCL, board.SDA, frequency=800000) |
@caternuson |
@yuehshienlin i have exactly the same problem you encountered. And also it occured on my Rasperry pi and mlx90640 interface. |
@Electricutionerr |
Without any modifications to The The need to increase the I2C clock speed to achieve higher MLX90640 refresh rates is generally expected - if there is an attempt to actually also read the sensor data back at this same rate. It sounds like this issue is generally being resolved by setting the Raspberry Pi I2C clock speed in combination with adjusting the MLX90640's refresh rate as needed? |
Hi. I try the sample code and modify it for measure process time
When it run 2833 sec after start ,I got the error 'OSError: [Errno 5] Input/output error '
And the second try to got the same error with 594 sec
Do you know how can I fix it?
here is my code:
and here is the error report:
Traceback (most recent call last):
File "", line 18, in
File "/usr/local/lib/python3.9/dist-packages/adafruit_mlx90640.py", line 126, in getFrame
status = self._GetFrameData(mlx90640Frame)
File "/usr/local/lib/python3.9/dist-packages/adafruit_mlx90640.py", line 140, in _GetFrameData
self._I2CReadWords(0x8000, statusRegister)
File "/usr/local/lib/python3.9/dist-packages/adafruit_mlx90640.py", line 828, in _I2CReadWords
i2c.write_then_readinto(
File "/usr/local/lib/python3.9/dist-packages/adafruit_bus_device/i2c_device.py", line 141, in write_then_readinto
self.i2c.writeto_then_readfrom(
File "/usr/local/lib/python3.9/dist-packages/busio.py", line 192, in writeto_then_readfrom
return self._i2c.writeto_then_readfrom(
File "/usr/local/lib/python3.9/dist-packages/adafruit_blinka/microcontroller/generic_linux/i2c.py", line 90, in writeto_then_readfrom
readin = self._i2c_bus.read_i2c_block_data(
File "/usr/local/lib/python3.9/dist-packages/Adafruit_PureIO/smbus.py", line 275, in read_i2c_block_data
ioctl(self._device.fileno(), I2C_RDWR, request)
OSError: [Errno 5] Input/output error
The text was updated successfully, but these errors were encountered: