How do I change the slave address on my optical sensor part?
Answer
The Si1132, Si1141, Si1142, Si1143, Si1145, Si1146, and Si1147 have a command that allows you to change the i2c address of the device. This change in address is only temporary and will be cleared back to the default address upon a reset.
The Si1133 and Si1153 have a hardware pin that causes the device to initialize with an alternate slave address. The pin that causes this change is Pin 6 on both devices. When this pin is pulled down to GND, the device will use its alternate slave address. On the Si1153, the use of the LED driver on this pin is lost when using its alternate slave address.
Knowledge Base Articles
Optical Sensors
Sensors
The Si1132, Si1141, Si1142, Si1143, Si1145, Si1146, and Si1147 have a command that allows you to change the i2c address of the device
how do you use that? I see no reason to change the save addres other than having two devces, otherwise with the same address. Thus such a command wuld go to two devces
0
If you have a way to control the VDD of the Si114x, either by powering it from a GPIO or controlling a mosfet on its power, you can power one up and change its address, and then power the next one up to avoid any conflicts.
Optical Sensor Slave Address
The Si1132, Si1141, Si1142, Si1143, Si1145, Si1146, and Si1147 have a command that allows you to change the i2c address of the device
how do you use that? I see no reason to change the save addres other than having two devces, otherwise with the same address. Thus such a command wuld go to two devces
If you have a way to control the VDD of the Si114x, either by powering it from a GPIO or controlling a mosfet on its power, you can power one up and change its address, and then power the next one up to avoid any conflicts.