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
Recommendation for APDS-9960 sensor color sensing feature
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- ainan
- Posts: 2
- Joined: Fri Aug 19, 2022 2:58 am
- adafruit_support_bill
- Posts: 88099
- Joined: Sat Feb 07, 2009 10:11 am
Re: Recommendation for APDS-9960 sensor color sensing feature
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
https://learn.adafruit.com/adafruit-col ... ing-colors
- ainan
- Posts: 2
- Joined: Fri Aug 19, 2022 2:58 am
Re: Recommendation for APDS-9960 sensor color sensing feature
Thank you for your support, the link you provided helped me a lot.
Please be positive and constructive with your questions and comments.