Reading colors


Closed Thread
Results 1 to 3 of 3

Thread: Reading colors

  1. #1
    Join Date
    Nov 2003
    Location
    Sao Paulo - Brazil
    Posts
    92

    Question Reading colors

    Hi friends,

    I would like to know if it´s possible to read colors with a PIC and a Photodiode.

    What I need to do is read a color in the video monitor showed in a small picture box, convert it in a Voltage level and via a lookup table, print the basic color in the LCD.

    Have someone ever seen something like this ?

    Regards

    Sérgio

  2. #2
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hi Sergio,

    Goto www.parallax.com and look for Sensors then at the bottom of that page there is Color and Light. They have the TCS230 Color Sensor Evaluation Kit for $79.00. Since the programs they offer are based on their product the Basic Stamp, they are also PIC compatible through PBP. There is also an application article from Nuts & Volts magazine available at that site also.

    TAOS, the actual manufacturer of the Kit also makes RGB sensors that can be configured to detect colors. There has been a schematic published in Nuts and Volts magazine that shows how to get logic outputs for different colors using standard CMOS 4000 series logic gates. Not complicated stuff at all.

    Have a nice day!

    BobK

  3. #3
    Join Date
    Feb 2004
    Location
    Michigan, USA
    Posts
    305


    Did you find this post helpful? Yes | No

    Wink

    Around the end of last year I was commisioned to design the circuit for a color detecting device for a paint company. The circuit was based around a DSP running at 32MHz and 7 TAOS color sensors and 7 calibrated ceramic LED modules that were custom designed. To do it right, there isnt a PIC available thats even close to powerful enough. Massive amounts of data need to be processed to determine color, shade, hue, contrast, refelectivity, age fade etc etc. You also need to calibrate with Carbon Black otherwise data gets screwy over time. Unless you have access to propriatory information, you are going to struggle to build a nice device.

    I did not program this device, just designed the circuit and did the 6 layer pcb layout. This thing was modelled in MATLAB for months before a schematic was even started. Your housing will determine amount of ambient light and thus interfere with your result.

    Can you tell its a pain in the butt to do it right?

Similar Threads

  1. Reading temperature using multi DS18B20
    By KVLV in forum Code Examples
    Replies: 16
    Last Post: - 3rd November 2017, 19:48
  2. Stable Adc Reading Routine
    By gebillpap in forum General
    Replies: 27
    Last Post: - 13th May 2015, 02:18
  3. DS18B20 error reading
    By Gaetano in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 29th August 2007, 16:21
  4. Pot reading jumping like crazy!!!
    By champion in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 20th November 2006, 21:24
  5. Reading Timer1 value
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 19th June 2006, 16:21

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts