The color sensor module base on tcs3200 which is a programmable color light-to-frequency converter, it could filter rgb data from source light and convert it to a square wave(50 percent 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(so, s1 selectable options 2 percent, 20 percent, 100 percent frequency),and pin s2, s3 control the filter of rgb. Digital inputs and digital output allow interface to a microcontroller or other logic circuitry directly. Output enable (oe) places the output in the high-impedance state for multiple-unit sharing of a microcontroller input line. At last, user can calculate the color of the light by rgb values.