0

I2C connecting multiple Adafruit TCS34725 sensors
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

I2C connecting multiple Adafruit TCS34725 sensors

by rameshgopalan on Sat Jun 17, 2017 8:01 pm

Hello, I am trying to connect 2 RGB Color sensors - Adafruit TCS34725 - to the same I2C serial bus on my Arduino Uno.
both sensors have the same address 0x19 and when I connect them in parallel to a Serial monitor it reads one of the sensors repeatedly, while reporting the second sensor occasionally - the difference in reporting does not make sense, since they are nominally connected in parallel.
Looking in other forums, the solutions seem too complicated, trying to shut off the SCL to one of the sensors while trying to read the other.

Anyone have a possibly easier solution to what seems like basic problem ? - reading 2 sensors of the same type in alternate or other prescribed sequence ..
thanks

rameshgopalan
 
Posts: 2
Joined: Sat Jun 17, 2017 7:56 pm

Re: I2C connecting multiple Adafruit TCS34725 sensors

by adafruit_support_carter on Sat Jun 17, 2017 8:11 pm

You could use one of these:
https://www.adafruit.com/product/2717

adafruit_support_carter
 
Posts: 12726
Joined: Tue Nov 29, 2016 2:45 pm

Re: I2C connecting multiple Adafruit TCS34725 sensors

by rameshgopalan on Sun Jun 18, 2017 10:21 am

Hello, I did get the TCA9548 multiplexer and trying to make to convert the Adafruit provided example with the 2 magnetometers to work for my 2 TCS34725 color sensors- except I am not able to assign different names ( like mag1 or mag2 in the magnetometer example ) with a command like
Adafruit_TCS34725_Unified tcs1 =.... - the standard TCS34725 library I have installed does not seem to include the options to add serial addresses.
Any advice?

rameshgopalan
 
Posts: 2
Joined: Sat Jun 17, 2017 7:56 pm

Please be positive and constructive with your questions and comments.