Recommendation for APDS-9960 sensor color sensing feature

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ainan
 
Posts: 2
Joined: Fri Aug 19, 2022 2:58 am

Recommendation for APDS-9960 sensor color sensing feature

Post by ainan »

Hi Adafruit Support Team,

Previously, I successfully used APDS-9960 sensor and library from Adafruit and measured proximity and ambient light intensity. Now, I am planning to use APDS-9960 as basic color sensor. The colors I am planning to distunguish are white, black, yellow, red, green, blue and purple.To use APDS-9960 as color sensor, I am planning to illuminate the target surface with white led and measure the R,G,B,C values of the reflected light. Then using combinations of the R,G,B and C values and some nested if loops, I will guess the color. Do you think this strategy could work or I am missing some point? Are there any other things you recommend me when using apds-9960 for color sensing?

Thank you for your help in advance,

Best regards,
Ahmet

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

Re: Recommendation for APDS-9960 sensor color sensing feature

Post by adafruit_support_bill »

There are a number of factors that can affect the accuracy of your color sensing. Two of the more critical things are the field of view and the lighting. It helps to put a flat black shroud around the sensor to block out any light from the periphery. There is a link to an excellent tutorial here:

https://learn.adafruit.com/adafruit-col ... ing-colors

User avatar
ainan
 
Posts: 2
Joined: Fri Aug 19, 2022 2:58 am

Re: Recommendation for APDS-9960 sensor color sensing feature

Post by ainan »

Thank you for your support, the link you provided helped me a lot.

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

Return to “Other Products from Adafruit”