RGB Sensor (TCS34725)

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
hwt
 
Posts: 2
Joined: Wed Apr 09, 2014 7:05 am

RGB Sensor (TCS34725)

Post by hwt »

Hi,

I am using 6 Adafruit TCS34725 sensors, connected to my Arduino via I2C. I have connected them up via a multiplexer in order to allow reading of all 6 (as they keep the same address). My question is: How can I increase the speed at which this happens?

Using the library provvided (https://github.com/adafruit/Adafruit_TCS34725) I can successfully read all sensors really well. I have looked into changing the integration time from:

Code: Select all

/* Initialise with specific int time and gain values */
Adafruit_TCS34725 tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_700MS, TCS34725_GAIN_1X);
... to some others contained within the library such as TCS34725_INTEGRATIONTIME_154MS. However, when I do this I do not get an output from the sensors. Is there a reason for this and am I approaching the task in the right/wrong way?

Any help is really appreciated.

Thanks,

Henry.

User avatar
ktownsend
 
Posts: 1447
Joined: Thu Nov 05, 2009 2:18 am

Re: RGB Sensor (TCS34725)

Post by ktownsend »

Is it possible you just don't have enough light? I just tested with the same integration time and it works fine here:

Initializer:

Code: Select all

/* Initialise with specific int time and gain values */
//Adafruit_TCS34725 tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_700MS, TCS34725_GAIN_1X);
Adafruit_TCS34725 tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_154MS, TCS34725_GAIN_1X);
Output:

Code: Select all

Color Temp: 4582 K - Lux: 556 - R: 1842 G: 1318 B: 1265 C: 2570  
Color Temp: 4582 K - Lux: 557 - R: 1845 G: 1320 B: 1267 C: 2574  
Color Temp: 4579 K - Lux: 556 - R: 1844 G: 1319 B: 1266 C: 2574  
Color Temp: 4582 K - Lux: 557 - R: 1845 G: 1320 B: 1267 C: 2575  
Color Temp: 4587 K - Lux: 558 - R: 1847 G: 1322 B: 1269 C: 2579

hwt
 
Posts: 2
Joined: Wed Apr 09, 2014 7:05 am

Re: RGB Sensor (TCS34725)

Post by hwt »

Thank you, i think this was the case. I upped the gain and started getting results!

User avatar
trexmiller
 
Posts: 2
Joined: Thu Jan 23, 2014 11:23 am

Re: RGB Sensor (TCS34725)

Post by trexmiller »

hwt
Would you mind sharing your code? I am trying to do the same thing and it is not working for some reason. All I get is
"Color View Test!
FF
No TCS34725 found ... check your connections"

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”