The Color Sensor

Color Sensor Types

The color sensor is used to show the paper moving in front of the distance sensor in the right color. Just like in case of the RGB LEDs different models can be found on the market. There are essentially two different types, using different sensor chips built onto a variety of breakout boards.

The GY-31 board based on the TCS2300

This board is built around the TCS34725 chip

Both chips implement color filters which let only one of the base colors pass onto a photo diode, whose intensity is then measured before switching to the next base color. The TCS2300 converts the photo diode signal into a frequency proportional to the light intensity. This board comes with 4 white LEDs to illuminate the colored object in front of it. Certain modules switch these LEDs permanently on while others (like the one shown on the photo) have a pin enabling the LEDs by software. This particular board also has a plastic ring protecting the sensor from direct light from the LEDs.

The TCS34725 does essentially the same thing but has an I2C interface in addition providing easy interfacing with a micro-controller. Here we have a single, less intense white LED, the yellow device on the photo.

-- Uli Raich - 2018-01-31

Comments

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng GY-31.png r1 manage 76.3 K 2018-01-31 - 10:24 UliRaich  
PNGpng tcs3200.png r1 manage 199.3 K 2018-03-06 - 13:14 UliRaich  
PNGpng tcs34725.png r1 manage 191.1 K 2018-01-31 - 10:24 UliRaich  
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2018-03-08 - UliRaich
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback