Skip to content

Errno 5 by useing mlx90614.py #8

Description

@MartenFrehse

Hey, I tryed to use my mlx90614 but i had some issues by using it. Maybe someone can help?

So i tryed this code from you:

import mlx90614
from machine import I2C, Pin

i2c = I2C(scl=Pin(5), sda=Pin(4))
sensor = mlx90614.MLX90614(i2c)

print(sensor.read_ambient_temp())
print(sensor.read_object_temp())
if sensor.dual_zone:
print(sensor.object2_temp)

but i got this Output:

Traceback (most recent call last):
File "", line 4, in
TypeError: 'id' argument required

So i added an id = 0 and then i got:

Traceback (most recent call last):
File "", line 5, in
File "mlx90614.py", line 76, in init
OSError: [Errno 5] EIO

And i was not able to fix this until now. I would be thankful if someone would help me :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions