Unable to connect to COM16: could not open port ‘COM16’: PermissionError(13, ‘Access is denied.’, None, 5)
If you have serial connection to the device from another program, then disconnect it there first.
Process ended with exit code 1.
OS is Win 10, using Thony 4.0.0. even a simple I2C scan produces nothing…
Hey @dave50358 - can you tell us what version of MicroPython is running? Reports indicate that the latest version (v1.19.1) has a bug and fails to communicate over I2C.
I’ve had similar problems.
This happened after I upgraded to Thonny 4.0.
Also have one where the back end of Thonny no longer works to the device.
Found only solution was to disconnect Pico W and shutdown Thonny. Restart of Thonny sometimes worked sometimes not. In some cases had to restart PC.
Reserving my opinion on this one, yet to go back to old version of Thonny. It might be Thonny as the loading of firmware to the Pico is flacky as well.
Regards
Jim
UPDATE: Testing today on Pico and no problems, back on Pico W and happens again.
Changed my mind, don’t think it is Thonny now.
Michael, probably the same problem. I pulled down an update
MicroPython v1.19.1 on 2022-09-20; Raspberry Pi Pico W with RP2040
note the different date, same version number.
I’ve gone back to my main code and am ignoring the BME for now.
Just tried it again. same problem:
PiicoDev could not communicate with module at address 0x77, check wiring
Traceback (most recent call last):
File “”, line 4, in
File “/lib/PiicoDev_BME280.py”, line 32, in init
File “/lib/PiicoDev_BME280.py”, line 29, in init
File “/lib/PiicoDev_BME280.py”, line 64, in _read16
OSError: [Errno 5] EIO
That’s curious - where did you apply the solder bridge?
From the Factory the I2C pullups are enabled by default and can only be disabled by cutting some jumpers.
In any case, happy that things seem to have worked out.
Thanks for sharing the image @dave50358
If the I2C PU jumpers were cut previously and there are no other I2C pullups in the system then yes, the jumpers would need to be resoldered.
All PiicoDev modules feature cuttable I2C pullup jumpers - though these are connected by default.
I am assuming this is similar fix for the ESP32 issue that I have?
Have you or anyone else had luck with getting the ESP32 going with Micropython / PiicoDev BME280?
thanks @Trent5487676. I’ve put this on the back burner for the moment due work and study commitments. I’ve got the Pico W’s now that seem to be working, so will focus on that.
The issue with the Pico W was the firmware messing around with the Pico, the ESP32 is a whole other beast.
Feel free to jump back on your other topic when you have a moment as there are some other troubleshooting steps that we could try to get it working - I’ll also get my code uploaded for MQTT.
2 Likes
And you can get our latest projects and tips straight away by following us on: