Hi guys,
once again I am in need of your opinions. I am supposed to build a set of stackable boards - i.e. each boards clicks into the last one through some kind of connector, the pin count doesn´t really matter.
Now, all the boards will have a common I2C bus and on each board there will be a slave chip, each with different address. My goal is to somehow set the connection in a way that each board gets it´s address based on where it is positioned in the stack, so that boards can be swapped randomly and you don´t need to set the address by jumpers which is prone to errors.
Any elegant suggestions on how to achieve this?
once again I am in need of your opinions. I am supposed to build a set of stackable boards - i.e. each boards clicks into the last one through some kind of connector, the pin count doesn´t really matter.
Now, all the boards will have a common I2C bus and on each board there will be a slave chip, each with different address. My goal is to somehow set the connection in a way that each board gets it´s address based on where it is positioned in the stack, so that boards can be swapped randomly and you don´t need to set the address by jumpers which is prone to errors.
Any elegant suggestions on how to achieve this?