Multiple VL6180X

Hello.

You can find what code we have available for the VL6180X, namely an Arduino library, under the Resources tab of the VL6180X product page. This application note on ST’s product page gives an example of how to use multiple VL6180X on the same I²C bus. The process is basically to reset all VL6180X connected to a bus, then individually take each unit out of reset by making GPIO0/CE HIGH, and write a new I²C device address to each particular unit. Then, you should be able to send commands to each individual unit using their unique slave addresses. While we do not have an example sketch that does that, you can follow this thread on our forum, where the original poster uploaded a snippet of code that does that.

By the way, what short distances are you planning on measuring and what accuracy do you need?

-Jon