TCS230 color sensor is a converter IC to the frequency of light colors. There are two main components of this IC makers, namely photodioda and current to frequency converters. Each color can be drawn from the basic colors. To light, color is the color of the basic constituent Red, Green and Blue, or better known as RGB (Red-Green-Blue).
Photodiode will issue the amount of current is proportional to the level of the basic colors of light that happened. This current is then converted into a signal box with a frequency proportional to the amount of current. Output frequency can be scaled by adjusting the leg selector S0 and S1.
in the picture above
1 second place in 1000 wave means the frequency is 1000Hz or 1khz
The second way: We compute how much a period of one wave, then look for the frequency by using the formula