I’m trying to connect the PiicoDev Pressure Sensor to the Pico and for my project I need to wire them directly. I’m just having trouble with which pins I should be connecting to.
I’ve tried connecting SDA and SCL to both pins 1 & 2 and 5 & 6 and when I run the provided code I get the following error:
Traceback (most recent call last):
File "<stdin>", line 8, in <module>
File "PiicoDev_MS5637.py", line 69, in __init__
File "PiicoDev_Unified.py", line 56, in write8
OSError: [Errno 5] EIO
Having a bit of a dig around and I can’t see if I should be connecting to something else.
You’ll also need to make sure you’ve connected the I2C power pin to 3.3v output on the Pi Pico (physical pin 36), and not VBUS (Physical Pin 40) as this is connected to the +5v V_BUS pin from the USB power input, and doing so may damage your Piicodev module, and/or your Pico.
You have connected the ground wire haven’t you ???
You have not mentioned that and at this end we have no way of knowing. All the software fiddles in the world will not help if basic connections are not correct.
You can refernce the green pinout card you should have received in your order as a quick sanity check - making sure to solder all of the connections that Olver and Bob have mentioned ensuring that there arent any shorts. Yellow being SCL or clock and blue being SDA or Data for the PiicoDev cables.
If you could send through a photo of how you have everything connected that would be great to make sure your hardware is all good!