Subtotal: 0
View Cart

mandm_sorter2.gifM Sorter

Appeared in the 2003 Product Catalog.

Texas Advanced Optical Systems TCS230
Sorting M&Ms Just Got a Bit Easier with this RGB Color Sensor

Identifying color is easy with the new Texas Advanced Optical Systems (www.taosinc.com) TCS230 frequency to color sensor. This is a high-sensitivity low-noise light-to-voltage optical converter that incorporates on board blue, green, and red optical filters. The sensor combines a photodiode and an amplifier on a single monolithic CMOS integrated circuit with a color filter over the photodiode. What’s really neat about this sensor is that it provides standard RGB color values with 90% accuracy!

mandm_sorter.gifFor this project you need the following parts:

  • BASIC Stamp® 2 Module (#BS2-IC)
  • Board of Education® programming board (#28150)
  • TCS230 Color Sensor (#30054)
Reading the sensor is a matter of enabling the device, selecting the color to read by configuring two bits and counting for 10 ms on the I/O pin. The TCS230 outputs a frequency that is proportional to the 8-bit value of R,G, or B. The following example shows how to read the TCS230’s red value:


TCSS0 CON 15
TCSS1 CON 14
TCSS2 CON 11
TCSS3 CON 12
OE CON 13
TCSFreq CON 10
Red VAL byte

‘ Measure Red Value
Start:
LOW TCSS2
LOW TCSS3
COUNT TCSFreq,10,Red
DEBUG Home, ”Red =”, dec Red

mandm_software.gif

M&Ms is a registered trademark of Mars, Inc.

Home    |    Contact Us    |    Job Opportunities    |    About Parallax    |    Privacy Statement    |    Terms Of Use    |    Copyright 2008 by Parallax, Inc.