TCS34725 Reading incident light

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
efeigenbaum
 
Posts: 98
Joined: Fri Feb 24, 2017 3:23 pm

TCS34725 Reading incident light

Post by efeigenbaum »

I am trying to use the RGB color sensor (TCS347245) to read red and green LEDs and distinguish between them. I am finding it extremely difficult because the numbers for red, green, blue, lux, etc seem to fluctuate a lot and overlap. Do I need to use interrupts? Does that turn off the built-in light? I can't find information about how to wire it or code for this and I am getting frustrated. Anyone have any ideas of where I can look for information?

User avatar
adafruit_support_bill
 
Posts: 88096
Joined: Sat Feb 07, 2009 10:11 am

Re: TCS34725 Reading incident light

Post by adafruit_support_bill »

Instructions for wiring, coding and control of the LED are all covered in the guide: https://learn.adafruit.com/adafruit-col ... g?view=all

User avatar
efeigenbaum
 
Posts: 98
Joined: Fri Feb 24, 2017 3:23 pm

Re: TCS34725 Reading incident light

Post by efeigenbaum »

Yes, I understand how to wire the LED for the example given but that is for reflected light. If I am not mistaken, I need to turn off the built-in white light on the sensor to read incident light and I don't know how to do that. Is that what the interrupt example is all about? If so, I don't know how to wire that....just add a button to digital pin 2 and run the interrupt sketch? It didn't seem to work correctly.

User avatar
adafruit_support_bill
 
Posts: 88096
Joined: Sat Feb 07, 2009 10:11 am

Re: TCS34725 Reading incident light

Post by adafruit_support_bill »

You haven't specified which version of the sensor you have. But the guide describes how to control the led for both types.
https://learn.adafruit.com/adafruit-col ... ol-the-led
https://learn.adafruit.com/adafruit-col ... ed-control

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

Return to “Arduino”