Basic Color Sensor Overview

PrintIn the past, color sensors emitted light using red, green and blue LEDs’. The sensors were then able to distinguish colors using the RGB components of the reflected light back to the sensor’s receiver. As technology has progressed true color sensors have been developed that not only can compare colors but measure them more accurately than the human eye.

Color sensors are based on diffuse technology and can be compared to a fixed focus or convergent sensor because of the focused light spot. Unlike color contrast sensors that only detect the difference between two colors based on brightness, color sensors can detect a wide range of colors.

cielabTrue color sensors typically use white LED’s which allow for a greater color spectrum evaluation. Combine this with the CIELAB color system which is one of the most versatile color systems and the result is a color sensor that equals or exceeds the human eye. The CIELAB color system is a three-dimensional independent infinite representation of colors. The L component for lightness and a and b components for color are predefined absolute values. Lightness varies from black (0) to the brightest white (100). Color channel a varies from green negative 100 to red positive 100. Color channel b varies from blue negative 100 to yellow positive 100 with gray values at a=0 and b=0.

Due to the technology, color sensors can check only a small spot of color but can check this spot amazingly fast – up to 1.5 kHz in case of the Balluff’s fiber optic BFS 33M which also has a range of 400mm. Unlike a color sensor camera, which will focus on the object’s surface pattern and may cause false readings the true color sensor will ignore patterns thus providing more accurate color detection. In addition the true color sensor will have more outputs than the color camera.

Smart color cameras are working with RGB but could work also with HSV color models. They could be used to check larger areas for the same color or color codes on a part, but have slower update rate of 50 Hz. Special cameras for faster applications are available in the market but at higher costs. It is important that the light source for the smart color cameras be a white light with a standardized white balance, and that this light must kept constant for all checks to avoid errors.

The sophistication on the front end of the color sensor can be much more advanced and still remain a cost effective option for industrial use due to the fact that a camera requires a much larger processing system. The more sophisticated the sensors are in the camera the more robust the processor must be in order to process or map the data into an image.

To learn more visit www.balluff.us.

You can also request a digital copy of our Photoelectric Handbook here.

3 Replies to “Basic Color Sensor Overview”

  1. Hello Jack!

    I am a student currently conducting experiments on a color sensor included in a Lego set and would love your insight to how sensing colors work. As my sensor emits all three colors when reading I’m wondering why a white light wouldn’t suffice. Does red, green and blue reflect differently on different surfaces or what makes the sensor able to differentiate the colors?

    1. Balluff Webmaster says:

      Hi Mans,

      Yes the red, green and blue color (RGB) is reflected differently based on the color placed in front of the sensor not necessarily the surface.

      Color sensors are based on diffuse technology and can be compared to a fixed focus or convergent because of the focused light spot. Generally they are classified as RGB or true color sensors. Unlike color contrast sensors that only detect the difference between two colors based on brightness, color sensors can detect a wide range of colors.

      In the past, color sensors emitted light using red, green, and blue LEDs. The sensors could distinguish colors from the objects reflected light using the RGB components which limits the number of colors that can be detected to 16.7 million colors. More advanced color sensors emit a white light allowing for a greater color spectrum evaluation.

      As technology has progressed, true color sensors have been developed that not only can compare colors, but measure them more accurately than the human eye. Balluff’s true color sensors use white LEDs to provide a greater color spectrum evaluation. Combine this with the CIELAB Lab color space, which is one of the most versatile color systems, and the result is a color sensor that meets or exceeds the human eye which is about 7,000,000. Lab color space includes all possible colors exceeding the RGB color model.

      The CIELAB color system is a three-dimensional independent infinite representation of colors. The L component for lightness and a and b components for color are predefined absolute values. Lightness varies from black (0) to the brightest white (100). Color channel a varies from green negative 100 to red positive 100. Color channel b varies from blue negative 100 to yellow positive 100 with gray values at a=0 and b=0.

      Due to the technology, a true color sensor can check only a small spot of color, but it can check this spot amazingly fast—up to 1.5 kHz with a range of 400 mm. Unlike a color sensor camera, which will focus on the object’s surface pattern and might cause false readings, the true color sensor will ignore patterns, thus providing more accurate color detection.

      1. Thanks for the answer, really interesting stuff!

Leave a Reply