| MD_TCS230 Color Sensor Arduino Library 1.2 Library to control TCS230 Color Sensor

Loading...
Searching...
No Matches
Arduino TCS230 Library

## The TCS230 Color Sensor IC

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:

- Simple blocking read from the sensor
- Simple RGB non-blocking read
- Example incorporating sensor calibration
- Color learning and matching

If you like and use this library please consider making a small donation using PayPal

IMPORTANT NOTE

This library has a dependency on the FreqCount library for frequency counting (https://github.com/PaulStoffregen/FreqCount). FreqCount imposes limitation on which pins can be used to measure the frequency and limits the use of other pins as follows:

Board | Input Pin | Pins Unusable with analogWrite()
--- | --- | ---
Arduino Uno | 5 | 3, 9, 10, 11
Arduino 2009 | 5 | 3, 9, 10, 11
Arduino Mega | 47 | 9, 10, 44, 45, 46
Sanguino | 1 | 12, 13, 14, 15

Please read the setup information in the FreqCount header file or its distribution web site, as the type of Arduino that you are running will determine which pin should be used for connecting to the sensor's output pin. This is the most commonly asked question once the library is downloaded, so read the documentation and avoid frustration!

## Topics

- Supported Hardware
- Using the Library
- Calibration
- Revision History
- Copyright