OSError 5 from mcp9808

Discuss mods, hacks, tweaks, etc.

Moderators: altitude, adafruit_support_bill, adafruit, phono, hamburgers

Please be positive and constructive with your questions and comments.
Locked
User avatar
sakurasanta86
 
Posts: 2
Joined: Sun Apr 15, 2018 11:42 am

OSError 5 from mcp9808

Post by sakurasanta86 »

OSError 5 from mcp9808

by oolookai on Fri Jan 12, 2018 9:17 pm
Odd thing about this is that the whole project works perfectly for 90 minutes or so then dies.
On reset it works again until it doesn't.

After hundreds of iterations my code line:
t = (mpc.temperature * 1.8) +32

prompts the response:
Traceback (most recent call last):
File "code.py", line 58 in <module>
File "adafruit_mcp.py", line 98 in temperature
File "adafruit_mcp.py", line 97 in temperature
File "adafruit_bus_device/i2c_device.py", line 94 in write
OSError 5

This project is executed on a new CircuitPlayground Express with
fresh squeezed bundles for CircuitPython and Libraries.

The whole project is quite simple. If there were a wiring or code
problem I suppose it would not work at all, not die after more than an hour.

If anybody has half a clue that's more then me.

Locked
Please be positive and constructive with your questions and comments.

Return to “x0xm0dz”