I'm having some trouble using the i2c bus from my ItsyBitsy RP2040 on Arduino.
I will tell my problem in case someone has happened something similar or can provide a solution or idea.
Thanks in advance:
- I am using the INA3221 module, a voltage and current sensor i2c connection.
- I have correctly installed the libraries in Arduino to use the RP2040-based boards, as indicated in the Adafruit tutorial.
I have loaded the Scanner_I2C sample code into ItsyBitsy RP2040 and then connected the INA3221 sensor. Recognizes the I2C address as 0x40. So far everything works as expected.
Then I load an example code from the INA3221 library but it does not work correctly, there is no communication with the sensor. To rule out electrical error or breakage due to static electricity, I have populated several of the ItsyBitsy RP2040 boards that I have (I have tried 3 different boards).
The point is that all the same steps I have tested on the Raspberry PICO board and it works correctly! The Scanner_i2c finds the sensor address 0x40 and later when loading the sample code from INA3221, it communicates and works great.
Why does it work on Raspberry pico board and not ItsyBitsy RP2040 if they both have the same RP2040 microcontroller?
Thanks for the help in advance.