0

Problem in using Tcs34725 and arduino to detect the color te
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Problem in using Tcs34725 and arduino to detect the color te

by thaicn0108 on Tue Jun 08, 2021 9:21 pm

Hi everyone, im using the tcs34725 sensor and arduino to detect the color temperature of a light bulb. But im having a problem, i tried it on a yellow light bulb, so its color temperature should be about 2000-3000K. But the result shows that the color temperature is around 5000-6000K, which is blue light's color temperature, and i did this in my room with no other light sources but the bulb. So im very confuse, please help me with the project, Thank you so much. Im using the code here: https://www.google.com/amp/arduinolearn ... sensor.php

thaicn0108
 
Posts: 3
Joined: Sun Jun 06, 2021 5:03 am

Re: Problem in using Tcs34725 and arduino to detect the colo

by blnkjns on Wed Jun 09, 2021 12:13 am

5000-5500K is not blue, but daylight-white (cloudy sky). White on your monitor is probably more blu-ish, although this gets better, it often was 9300K but many screens nowadays are 6500K.
Try to give some raw output:
what are the R, G and B values for your bulb, for cloudy sky and for your monitor for example.

Are you sure it is an incandescent light bulb, and not some sort of CCFL/LED bulb?
Especially the CCFL ones can look warm white, yet their spectrum has very rough spikes, that could interfere with the spectral sensivity curves of the sensor.

blnkjns
 
Posts: 663
Joined: Fri Oct 02, 2020 3:33 am

Re: Problem in using Tcs34725 and arduino to detect the colo

by thaicn0108 on Wed Jun 09, 2021 6:12 am

Thank you for your help, i checked the light bulb again and turned out its color was white. Sorry.

thaicn0108
 
Posts: 3
Joined: Sun Jun 06, 2021 5:03 am

Please be positive and constructive with your questions and comments.