I tested the code but could not get it working correct, it would not see red at any point, and could not see the reading correct from the green and blue.ALSO ... Some how, without changing a thing I killed my Duemilanove. It started to stop talking via USB/serial back to the PC then it would start again, and so on.Then it just stopped and I can not get it to work at all now, I get a power light, but will not let me upload anything to it from the PC.Lucky for me, I got another one, "but not to hand" but I do have a Mega to hand but do not want to take the chance of braking that too.

So any advice/help would be great on the sensor, I'll ask in the correct place about seeing if I can pull my Duemilanove back from the dead.

Using the same reference you're written, my TCS230 just print unknown character in port windows, and I try using another example code, posted in http://www.elecfreaks.com/wiki/index.php?title=Color_Sensor_Module, it work well.Note: by using the example download from http://elecfreaks.com/store/download/datasheet/sensor/TCS230/TCS230.zip as mention in the text of the given link, the color sensor didn't work. So you better follow the code written in the text, it has a little different wiring configuration, but I think this is important, for the "out" pin of TCS230

hello,I am so new at Arduino and I got one TCS230. exactly this one https://www.kartalotomasyon.com.tr/modules/catalog/products/pr_01_10006_max.jpg . I downloaded your library now trying to get some results but couldnt get anything on screen. Can you tell me the pic connections with arduino and TCS230 please?

Thanks so much. it worked well now I got values for example: Red: 255Green:34Blue:127

but when i put something totally red, it must be Red:255 Green:0 Blue:0 but it is not like this in results. what should i do for accurate results? Cover around the LEDs to protect them from outside light sources?

It is almost impossible to get values 100% accurate. But protecting the sensor from infrared light is one thing you can do to minimize the problem. Also, when it is adjusting the white and the black frequencies, is difficult to point it to something really white or black. My experience: it will never be totally accurate!

The sensors need to be calibrated in your software. If you look at the pdf that comes with a library that I wrote for the sensor, you can see an explanation of how you can do that. The library is in my code repository (link below in the signature). Once calibrated they are pretty good at discriminating colors.

I already did it but couldnt get any result. when i start the Calibrate_TCS230 example, I am getting this weird result ''eanIé?*?VEÎoB² ''...and result for ColorMatch_TCS230 example is ''ãBèôºáê±?)¿1Iÿ''...I have this one, https://www.kartalotomasyon.com.tr/modules/catalog/products/pr_01_10006_max.jpg Mine seems a bit different from yours. Problem could be pin connections? how should i do the connections according to mine?

Pin connections do not matter as long as they match what you tell the library when you start. The only pin that is important is the frequency pin, so make sure you are using the right pin as per the header file table.