Code output:
>>> %Run MCP_test-01.py
step1
step2
<property object at 0x75b312d0>
end
4) no trouble
5) started following MCP9600 “Beginner” project
After first attempt re-flashed SD card on my Raspberry Pi 3B v1.2 and re-started MCP9600 project from scratch using latest Pi OS and fresh installs of Python 3 code and Adafruit. Checked and rechecked wiring 3.3 to Vin, Gnd to Gnd, SCL to SCL, SDA to SDA.
I will admit I am new to Python programming and learning slowly.
“blinkatest.py” runs correctly both under terminal operation and when running Thonny IDE.
Any help or suggestions are welcome.
Thank-you for the help.
the output:
Python 3.9.2 (/usr/bin/python3)
>>> %Run MCP_test-01.py
step1
Traceback (most recent call last):
File "/home/pi/MCP_test-01.py", line 9, in <module>
mcp = adafruit_mcp9600.MCP9600(board.I2C())
File "/home/pi/.local/lib/python3.9/site-packages/adafruit_mcp9600.py", line 220, in __init__
tci2c.write(self.buf, end=2)
File "/home/pi/.local/lib/python3.9/site-packages/adafruit_bus_device/i2c_device.py", line 84, in write
self.i2c.writeto(self.device_address, buf, start=start, end=end)
File "/usr/local/lib/python3.9/dist-packages/busio.py", line 165, in writeto
return self._i2c.writeto(address, memoryview(buffer)[start:end], stop=stop)
File "/usr/local/lib/python3.9/dist-packages/adafruit_blinka/microcontroller/generic_linux/i2c.py", line 49, in writeto
self._i2c_bus.write_bytes(address, buffer[start:end])
File "/usr/local/lib/python3.9/dist-packages/Adafruit_PureIO/smbus.py", line 314, in write_bytes
self._device.write(buf)
OSError: [Errno 121] Remote I/O error
>>>
any more clues
12 January 2022
have spent today reloading and configuring a raspberry Pi Model 2 B v1.1 with the latest code "bullseye", loading circuit-python and the MCP9600 add ons.
the attached image shows the output when attempting to run the MCP9600-simpletest.py.
Blinkatest.py responds as expected.
Please if possible What am i doing wrong?
thank-you
Attachments
2022-01-12-RasPi2Bv1-scrot.png (171.13 KiB) Viewed 138 times
Python 3.7.3 (/usr/bin/python3)
>>> %Run board-detect-02.py
version: <property object at 0x75a514b0>
(<property object at 0x75a514e0>, <property object at 0x75a51510>)
(<property object at 0x75a514e0>, <property object at 0x75a51510>)
(<property object at 0x75a514e0>, <property object at 0x75a51510>)
(<property object at 0x75a514e0>, <property object at 0x75a51510>)
(<property object at 0x75a514e0>, <property object at 0x75a51510>)
28 January 2022 14:02 MST
MCP module shows up on first "i2cdetect -y 1" after powering the module, after that first detection request nothing.
jumpers are female to male jumpers female on Pi male on breakout board
using "T" thermocouple