SDA

hikmet1694

Newbie
Joined
Jan 15, 2024
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
14
Hello,
I'm using two bmp 581 sensors to get the pressure reading, on one arduino nano board, unfortunately I designed the pcb and didn't check the address issue with the sensors and connected sdo pin to vdd and now can't fix it, sensors have same address. Is there a way through software to assign sda and scl to another arduino pins?
 

It should be always possible to run software I2C on arbitrary Arduino GPIO pins. Don't know if there are ready made libraries supporting alternative I2C pins.
 

Hi,

ARDUINO is an IDE. And whether the I2C pins may be moved depends on the used microcontroller ... unless (not recommended) bit-banging is used.

There is Arduino (compatible) hardware (modules) but their name is "ARDUINO UNO" for example.

I use ESP32 (with Arduino IDE) and here the microcontroller is able to MUX the interface pins to almost every pin you like.

Klaus
 

The OP refers to Arduino Nano.
Thanks. Didnt see this.

Ok, then it´s a ATMEGA328 .. with only one hardware I2C perifieral.
So the workaround could just be with bit banging.

Klaus
 

Cookies are required to use this site. You must accept them to continue using the site. Learn more…