0

Color sensor
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Color sensor

by filet-o-freak on Sun Feb 22, 2009 12:54 am

Hello,
I have an Arduino kit and would like to get some input from a color sensor to drive some RGB LEDs. I need the sensor to be able to pick up the color of an object, around the size of a shirt, within a 1 to 10 feet range. It does not need to be precise, I just need a general idea of the color that is passing by. I need help finding the sensor, I should be able to figure out how to do the rest. Any help for a novice is greatly appreciated.
Thanks !
Dylan
Last edited by filet-o-freak on Sun Feb 22, 2009 4:13 am, edited 1 time in total.
filet-o-freak
 
Posts: 1
Joined: Sun Feb 22, 2009 12:47 am

Re: Color sensor

by Amberwolf on Sun Feb 22, 2009 3:22 am

I think you might get by with a lens picking up the light from the shirt and sending it to a set of three simple photoresistors or phototransistors (like an Ambient Light Sensor module), each with it's own Red, Green or Blue filter over it, then creating either a formula or a lookup table in software to measure what color is being sensed based on the amount of light each one picks up.

Using a CCD would probably be even better results, but I don't know how much more complicated the hardware would be for that.
Watch me build an electric bike from assorted junk!
Alternative Energy Sources for the Home from Recycled Junk
A subsidiary of Cybernetic Necromancers, Discorporated:
"We Bring Dead Things To Life"
Amberwolf
 
Posts: 310
Joined: Wed Oct 08, 2008 2:42 am
Location: Phoenix, AZ, USA

Re: Color sensor

by oPossum on Sun Feb 22, 2009 8:13 am

I am the Possum, and I approve of this message. Sent from MacBook Wheel Sorry for my bad German.
oPossum
 
Posts: 636
Joined: Fri Oct 26, 2007 12:42 am
Location: Michigan, USA

Please be positive and constructive with your questions and comments.