Color Sensor TCS3200 (also known as GY-31)
The TCS230 is a color light-to-frequency converter on single CMOS integrated circuit. The output is a square wave(50% duty cycle) with frequency directly proportional to light intensity (irradiance). The full-scale output frequency can be scaled by one of three preset values via two control input pins. Output enable (OE) places the output in the high-impedance state for multiple-unit sharing of a microcontroller input.
Library example code includes:
Item size: 31*23*10mm
Net weight: 5g
A PDF file in the library folder explains the use of sensor with the library.
- Download Schematic
- Download Datasheet
- Learn how use this at the UniHobbies Learning System + Example Code
This library has a dependency on the FreqCount library for frequency counting (included in the download). Please read the setup information in the FreqCount header file or its distribution website, as the type of Arduino that you are running will determine which pin should be used for connecting to the sensor's output pin