Tcs 230 measurement problem
thava
Posts: 17
Hi guys, im currently undergoing some measurement with TCS230 light to frequency converter, its actually a cmos color sensor, so the measurement result was made in period measurement.
For white the output was not almost the same, but actually according to bitmap resolution, the R,G,B value for white is 255,255,255, but through this sensor, the output frequency is not really that similar, it actually varies. and for black its suppose to be R,G,B=0,0,0 and the output of the sensor is not really similar.
same when i place the sensor on Red which is R,G,B=255,0,0 and there is no green or blue intensity on this particular color, but still im getting output reading. so i need suggestion that what would be the problem? i feel its related to physics.
here is the link for datasheet of the sensor im using. thank you.
www.w-r-e.de/robotik/data/opt/tcs230.pdf
For white the output was not almost the same, but actually according to bitmap resolution, the R,G,B value for white is 255,255,255, but through this sensor, the output frequency is not really that similar, it actually varies. and for black its suppose to be R,G,B=0,0,0 and the output of the sensor is not really similar.
same when i place the sensor on Red which is R,G,B=255,0,0 and there is no green or blue intensity on this particular color, but still im getting output reading. so i need suggestion that what would be the problem? i feel its related to physics.
here is the link for datasheet of the sensor im using. thank you.
www.w-r-e.de/robotik/data/opt/tcs230.pdf
Comments
Mark
Finally, are you using the TCS230-DB with the white LEDs and collimating lens, or just a bare TCS230 chip? If the latter, you will be getting a lot of stray ambient light that will skew your readings.
-Phil
i have just the same problems with u.
for phil,
and one more problem, how should i do "white balance" ? because i don't have any color proof that valued R,G,B=255,255,255
well so far i'm using printed ivory paper which i don't know exactly the RGB value (because i print it with CMYK printer)
and the result is, RGB value may vary during "white balance" (R,G,B = 252, 253, 255)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
oh no..
····R,G,Bcorrected = 255 * 240 / 251, 255 * 210 / 221, 255 * 31 / 195 = 243, 242, 40
-Phil
ok..but a little bit different with program i used(in attachment)
my questions:
1. i don't know the exact reason why i have to do white balance,what
the function of that, could you explain it to me?
i already do some experiments, the result with white balance
routine much closer than without white balance. but still far from it should be.
2. what should i do to make color value that viewed in PC exact same as target's color
i'm using Visual Basic to view RGB value and the color to a PC.(pic below)
for big pic HERE
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
oh no..
Post Edited (nio) : 5/12/2009 6:32:43 AM GMT
-Phil
-Phil
255 * (CurrentReading - BlackReading) / (WhiteReading - BlackReading).
Current reading need to subtract black reading, then divide with (white reading - black reading), then why should multiply 255?