Search found 4 matches

by curlydonkey
Tue May 04, 2021 9:07 am
Forum: Drivers for External Components
Topic: MCP9808 High Precision Temperature Sensor
Replies: 16
Views: 22809

Re: MCP9808 High Precision Temperature Sensor

I managed to get I2C.scan() to find my temp sensor at address 0x18. However, when I pass the same I2C object to the MCP9808 constructor, I still get: Traceback (most recent call last): File "<stdin>", line 7, in <module> File "/lib/mcp9808.py", line 53, in __init__ File "/lib/mcp9808.py", line 95, i...
by curlydonkey
Tue Apr 27, 2021 3:03 pm
Forum: Drivers for External Components
Topic: MCP9808 High Precision Temperature Sensor
Replies: 16
Views: 22809

Re: MCP9808 High Precision Temperature Sensor

I think that may have worked, as I'm now getting: Traceback (most recent call last): File "<stdin>", line 6, in <module> File "/lib/mcp9808.py", line 53, in __init__ File "/lib/mcp9808.py", line 94, in _check_device File "/lib/mcp9808.py", line 63, in _send OSError: [Errno 5] EIO I guess maybe I hav...
by curlydonkey
Tue Apr 27, 2021 2:41 pm
Forum: Drivers for External Components
Topic: MCP9808 High Precision Temperature Sensor
Replies: 16
Views: 22809

Re: MCP9808 High Precision Temperature Sensor

Sorry, yes, it's the driver you referenced. I will try your suggestion, thanks.
by curlydonkey
Tue Apr 27, 2021 2:12 pm
Forum: Drivers for External Components
Topic: MCP9808 High Precision Temperature Sensor
Replies: 16
Views: 22809

Re: MCP9808 High Precision Temperature Sensor

Hi Folks I'm trying to use this library with the Pi Pico running MicroPython v1.15. My code currently looks like this: from mcp9808 import MCP9808 from machine import I2C from machine import Pin i2c = I2C(0, scl=Pin(5), sda=Pin(4), freq=10000) sensor = MCP9808(i2c) However, I'm getting the following...