I am a web programmer trying to learn a bit of Arduino.
I installed marco_c
's library (thank you!) to use with a TCS230 sensor. The vendor said it's TCS3200, but it looks like this
, so I'm guessing it's the TCS230.
I used the Calibration example and it worked, but rgb values on serial monitor translate to colors much darker than the objects sensed. I tried different libraries with the same problem, colors are too dark. For example, a green color that should be something around R=172 G=204 B=60 is being recognized as R=160 G=154 B=63.
My ultimate goal is to detect skin color, so some level of accuracy would be important.
Could this be caused by some problem with my settings or could it be sensor malfunction?
I changed pin definitions in the Calibration example to these:
#define S0 13
#define S1 12
#define S2 11
#define S3 10
And I'm calling the class like this:
MD_TCS230 CS(S2, S3, S0, S1);
OUT is set to D5
OE is set to GND
Can anyone help me?
I have little to no knowledge on hardware/electronics, but I may try to check the sensor if you have some tips.
Thank you in advance!