๐Ÿ“ฃ๐Ÿ“ช ๐Ÿšš Adafruit will not be shipping USPS orders Monday October 14, 2019 ๐Ÿ—“. Expedited USPS orders placed after 11am ET ๐Ÿ•š Friday October 11 will go out Tuesday October 15 ๐Ÿ“ฃ๐Ÿ“ช๐Ÿšš
0

i2c address change
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

i2c address change

by deryaakitis on Fri Aug 09, 2019 3:35 pm

Hi,
I have 2 Adafruit VCNL4010 Proximity sensor that I'm trying to use with my Crickit robot and Feather M0 express (with Circuitpython) at the same time. The sensors work well individually on the feather with robot, but together they don't, because their I2c address' are the same.
How can I change the I2c address of one of the sensors & modify the general code according to it?
Or if you advise another method, it would be great!
Attachments
resim-min.JPG
resim-min.JPG (633.29 KiB) Viewed 56 times

deryaakitis
 
Posts: 14
Joined: Thu Aug 08, 2019 12:54 pm

Re: i2c address change

by adafruit_support_mike on Sat Aug 10, 2019 12:01 am

The VNCL4010's I2C address is set in hardware, so you can't change it.

You can use an I2C multiplexer like the TCA9548A though:

https://www.adafruit.com/product/2717

adafruit_support_mike
 
Posts: 59116
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.