I2C Protocol question

Is there a way to program an I2C sensors without an address?

I am familiar with the protocol, and I know that the address is imperative to controlling an I2C device. However, I have 2 I2C devices with the same address, and I know I need 2 unique addresses in order for both devices to work. I want to know if there's a way to control them without addresses.

Thank you

There exist I2C multiplexers that allow to separate devices of the same address. Many I2C devices allow for multiple addresses, check for such sensors.

Which Arduino board do you use and which sensor ? Please give a link to where you bought the sensor module.

The I2C protocol uses a I2C address, there is no way around it.
There are options to fix the problem. Hardware multiplexers (as already mentioned by DrDiettrich) and multiple I2C buses via a software I2C library are the two most common solutions, but there are more.

Post a link to the devices. Most of them have an address selection input.

Here is a link to the sensors: https://sps.honeywell.com/us/en/products/advanced-sensing-technologies/healthcare-sensing/board-mount-pressure-sensors/trustability-ssc-series

The datasheet will provide the info.

PN: HSCDANN150PG2A5

1 Like

For multiple sensors you should use the SPI interface.

That part number indicates that the device is an I2C device with 1 fixed address. The SPI variant would have been the way to go if using several of the same device. As it's I2C then an I2C multiplexer as already suggested would be a solution.

But, if you look at figure 4 on page 13, there are 6 I2C variants with different addresses. So, the OP could order up a second device with a different address.
C

Correct. I assumed, rightly or wrongly, that @oxygen02 had already purchased 2 devices with the same part number (that was given in post #5), and was seeking a way around the problem.

But, as you say, if @oxygen02 hasn't already purchased a second device, then clearly a slightly different part number would give them a second unique address.

Don't know about you, but I almost never have "just one" of something. At a minimum, I order two. In this case, I'd have two of each of at least two addresses. Probably just me, but nothing kills a project like a simple whoopsie that fries your unique component. And it will be the unique one...
C

Most of my components are dirt cheap so I usually end up with a pack of 5 or so. Although i'm wondering what to do with the other 45 SMD pushbuttons from my 50pk that I got via Aliexpress.

Definitely. Or, the expensive device that will destroy itself in order to protect the cheap one!

But, I feel for the OP, I just saw the price for the device this thread is about. Ouch!

1 Like

Uno

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.