Dear all,
I am new to this forum and have a question that has been bothering me for a while.
My approach might be wrong and your advise would be much appreciated.
I am trying to build a network of components with unique IDs where I can address on component and request its neighbouring component IDs. The network should work in a 'plug and play' manner.
I have been exploring the idea of using I2C as they are simple components that can have a unique identifier and a value that can be read or written. On connecting a component - is it possible to pass this component's ID or values to its neighbouring I2C?
Basic example:
I2C/A (id: A, value: 0)
I2C/B (id: B, value: 0)
I am new to this forum and have a question that has been bothering me for a while.
My approach might be wrong and your advise would be much appreciated.
I am trying to build a network of components with unique IDs where I can address on component and request its neighbouring component IDs. The network should work in a 'plug and play' manner.
I have been exploring the idea of using I2C as they are simple components that can have a unique identifier and a value that can be read or written. On connecting a component - is it possible to pass this component's ID or values to its neighbouring I2C?
Basic example:
I2C/A (id: A, value: 0)
I2C/B (id: B, value: 0)
- I2C is connected to an arduino
- I2C/A is connected to I2C/B
- I2C/A transfers its ID to I2C/B resulting in I2C/B (id: B, value: A)
- I2C/B’s value is read via arduino as A.