Tutorial: How to Use RGB Colour Detector Sensor TCS230 With Arduino UNO




Introduction: Tutorial: How to Use RGB Colour Detector Sensor TCS230 With Arduino UNO


This tutorial will shows you a few simple steps about how to use RGB Colour Detector Sensor by using Arduino Uno. At the end of this tutorial, you will get a number of comparison results between few colours.

TCS3200 s a complete color detector, including a TAOS TCS3200 RGB sensor chip and 4 white LEDs. The TCS3200 can detect and measure a nearly limitless range of visible colors.Applications include test strip reading, sorting by color, ambient light sensing and calibration, and color matching, to name just a few.The TCS3200 GBB Color Sensor For Arduino has an array of photo detectors, each with either a red, green, or blue filter, or no filter (clear).The filters of each color are distributed evenly throughout the array to eliminate location bias among the colors.Internal to the device is an oscillator which produces a square-wave output whose frequency is proportional to the intensity of the chosen color.


  • Single-Supply Operation (2.7V to 5.5V)
  • High-Resolution Conversion of Light Intensity to Frequency
  • Programmable Color and Full-Scale Output Frequency
  • Communicates Directly to Microcontroller


  • Input Voltage: 2.7 V-5 V
  • Size: 34mm x 34mm
  • Use bright white LED lights
  • Can be connected directly with Microcontroller
  • Static detection of the measured object color
  • Best detection distance: 1cm

Step 1: Material Preparation

Step 2: Follow the Video

Step 3: Source Code

Be the First to Share


    • Big and Small Contest

      Big and Small Contest
    • Make It Bridge

      Make It Bridge
    • Game Design: Student Design Challenge

      Game Design: Student Design Challenge



    Question 1 year ago

    Hi sir, as i know the normal RGB value for white color are Red=255,Green=255,Blue=255. So, can i know how you calculate the RGB values for those colors in your coding, please. Because i decided to change it to detect only variety of red colors only. Thanks.

    (red < 10 && grn < 10 && blu < 10) =WHITE
    (red > 50 && red < 80 && grn > 70 && grn < 100 && blu > 50 && blu < 80) color =BLACK
    (red < 30 && red < grn && red < blu) color = RED
    (grn < 30 && grn < (red + 5) && grn < blu) color = GREEN
    (blu < 30 && blu < red && blu < grn) color = BLUE