Loading...
Pages: [1]   Go Down
Author Topic: Color Sensor TCS230  (Read 1801 times)
0 Members and 1 Guest are viewing this topic.
Kent, UK
Offline Offline
Newbie
*
Karma: 0
Posts: 28
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Has anyone ever got this working, I picked one up a few days ago, and used the example code from http://www.geeetech.com/wiki/index.php/Arduino_TCS230_Color_Recognition_Sensor_module

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.

Thanks
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello

I have written the driver for this device. Here on my github: https://github.com/dalmirdasilva/ArduinoColorRecognitionDriver

 I'm still adjusting it, but you can clone the repository and test it. 

There is a example inside the library.

To install just type sudo make install (or copy into the correct "libraries" folder if you want).

To see the doc, type make doc. It uses doxygen to generate the documentation and will create a folder called "doc" inside the library.

Cheers!
Logged

Nice, France
Offline Offline
Full Member
***
Karma: 10
Posts: 232
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This is the same sensor as used in the ColorHug, which is an open hardware colorimeter for PC screen calibration (see this interview where Richard mentions the chip used).

You should note that the sensor is very sensitive to infrared, so you may need a sharp IR cut filter if you want to measure visible light only.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
You should note that the sensor is very sensitive to infrared, so you may need a sharp IR cut filter if you want to measure visible light only.

I are right.

My sensor is this one http://dx.com/p/tcs230-color-sensor-detector-module-for-arduino-148739?item=1; these 4 led on the top of the board cannot be turned off! It becomes hard to test it with black objects. I don't recommend this one. 
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: October 23, 2012, 07:31:33 pm by Fatoni » Logged

Pages: [1]   Go Up
Print
 
Jump to: