#Pico UPS I2C problem with CircuitPython
1 messages · Page 1 of 1 (latest)
of, course, i forgot the links. Waveshare UPS HAT: https://www.waveshare.com/wiki/Pico-UPS-B
Adafruit demo for INA219: https://learn.adafruit.com/adafruit-ina219-current-sensor-breakout/python-circuitpython
can you show a photo of the bottom of the ups module, where it says "i2c1 i2c0"?
yep.
also, a photo of your pico w would help
sure, I wanted to see yours to make sure the resistors are in the right position and the pin soldering is good
it all looks good
can you upload the full code you are using?
you can use the (+) button on the side of the input field
nope
the seesaw soil sensor is connected to gp20, gp21 which is a completely different i2c bus, with different address.
what if you disconnect it completely?
same error message.
I can't see any obvious reason why it fails, it should work. If you have a multimeter at hand maybe you can check that the pins 6 and 7 of the pi pico are really connected with the pins on the module?
wait a minute
Currently not, but it was working on another project under MicroPython
looking at the schematic, there are no pull-ups on that module
one way around that that comes to my head is to move those 0Ω resistors to put both sensors on pins 20 and 21, so the pull ups from the seesaw sensor will work for both
i didn't actually saw that those were 0Ω "resistors". I could be the problem, because it just shorting the circuit then. I have no tools for soldering microscopical stuffs, but I think the Pico has some internal resistors what I can use it for this pourpose . maybe
but its kinda strange cause i didn't solder any pull ups directly to the seesaw sensor. does it have any by default?
those are not pull-up resistors, they are for selecting which pins to use for i2c
yes, adafruit modules have pull ups included
yeah, i finally realised it. but why it works under micropython then? With waveshare's code?
i mean, it proves that the module is fine. So something could be wrong with cp. I dunno.