I am working with the VL6180x and I would like to connect multiple sensors via an expansion board by ST (*). Therefore I want to communicate to single sensors, so I have to change each single I2C-Device-Address via the 0x212 register. My method is contacting the first sensor via the standard value 0x29 and changing its address. Then I connect the second sensor who still has the 0x29 address and thus I change this one's address, too, and so on.... The problem is: As soon as the whole device is unplugged from my PC, the addresses become reset and hence I'd have to do the whole procedure with plugging in each sensor one by one again. Is there a better method for contacting single sensors?
I am not working with the API by ST, but I am just contacting the I2C registers listed in the data sheet.
(*) The board used is the X-NUCLEO-6180XA1