Color Sensor
DigitalDj
Posts: 207
I don't know if this is the best place to post this but i'll give it a try!
I have the Color Sensor and I want to make some changes to it. I am using it to calibrate some squares in a grid that have rgb leds For one I would like to add dimming for the white leds from within the code and add a control. The reason I want to do this is the light from the white leds want to wash out my light from my rgb squares. With the white leds off on the color sensor there is not enough light from the grid to activate the sensor for it to work properly, so I am looking for a happy medium.
Second I was wondering if there is a way to get a more defined color sensing? Maybe a decimal on each one of the rgb color bars on the computer program where it also reads up to the 255. This may be something for someone at Parallax to help on.
I attached a pic of the grid!
I actually think this will work good it just needs some tweaking with what I am doing.
Thanks,
Kevin
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Post Edited (DigitalDj) : 11/8/2007 1:34:36 AM GMT
I have the Color Sensor and I want to make some changes to it. I am using it to calibrate some squares in a grid that have rgb leds For one I would like to add dimming for the white leds from within the code and add a control. The reason I want to do this is the light from the white leds want to wash out my light from my rgb squares. With the white leds off on the color sensor there is not enough light from the grid to activate the sensor for it to work properly, so I am looking for a happy medium.
Second I was wondering if there is a way to get a more defined color sensing? Maybe a decimal on each one of the rgb color bars on the computer program where it also reads up to the 255. This may be something for someone at Parallax to help on.
I attached a pic of the grid!
I actually think this will work good it just needs some tweaking with what I am doing.
Thanks,
Kevin
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Post Edited (DigitalDj) : 11/8/2007 1:34:36 AM GMT
Comments
-Phil
Where in the code can I change the sample time?
Will try! Thanks!
Kevin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
At the very bottom of the program TCS230DB_Demo.bpe is a line that looks like this:
These are the acquisition periods for red, green, and blue, respectively. By changing these values to larger numbers, you can increase the sample times for each color component. Try increasing them in proportion to the values already there.
You can run this program separately, without running the color match PC program, to read the raw color values in your DEBUG screen.
-Phil