12 min

EYE ON NPI - ams OSRAM's TCS3530 True Color Sensor Adafruit Industries

    • Education

This week's EYE ON NPI is catchy like an 80's pop song (https://www.youtube.com/watch?v=LPn0KFlbqX8), it's ams OSRAM's TCS3530 True Color Sensor (https://www.digikey.com/en/product-highlight/a/ams/tcs3530-true-color-sensor) It is a new light sensor from ams OSRAM that is pre-calibrated for CIE XYZ color temperature sensing output, without a lot of gnarly math!

We're huge fans of ams's light sensors, one of our first sensor breakouts was the TSL2561, (https://www.digikey.com/en/products/detail/ams-osram-usa-inc/TSL2561T/3095179) a wide-input-range light sensor with an I2C interface. We followed that up with a breakout for the TCS34725 which can detect separate red, green, blue and clear channels. With a little math, color reflected off of objects can be calculated into RGB color-space - we used it to make an umbrella that matches whatever color it touches! (https://learn.adafruit.com/florabrella/)

Since then, ams OSRAM has worked to create better light sensors that reduce the need for end-user calibration or a lot of microcontroller lifting. The chips have carefully tuned PN diodes to not only be able to report correct color values, but ideally also have little variation from sensor-to-sensor.

The TCS3530 (https://www.digikey.com/short/qwt595fh) is the latest color sensor from ams OSRAM, and it's also their newest with XYZ color output! This means you can read CIE XYZ color values out directly from the driver, which is going to be the best way to model what a human eye sees (https://en.wikipedia.org/wiki/CIE_1931_color_space) - not just an optimal concept based on 'pure' RGB photodiodes. This makes it ideal for use with cameras, monitors, printers/copiers and other devices that have humans that are looking at the colors. By detecting ambient light temperature, monitors and camera sensors can adjust their white balance to have their color gamut appear more 'natural' even in yellowish incandescent or halogen, or blueish fluorescent light.

The TCS3530 (https://www.digikey.com/short/qwt595fh) does this by having 8 separate PN diodes, each tuned to a specific frequency band, to cover from about 400nm to 750nm. The diodes are normalized by the ALS engine so that you don't get over-sensitivity to green or IR. The diodes are arranged in a 4-way symmetric array to get fully balanced readings across all frequencies: there's probably some reasoning to how the layout is done to avoid signal from one diode from affecting a nearby one, something ams has decades of experience with. A modulator and flicker detection system can sense light pulses such as those from incandescent bulbs (at 120 Hz) or monitors (30 to 60 Hz) so that we can sample at the same times during the wave, or sample long enough to capture a full waveform worth of light.

Interfacing is fairly simple, although there are a few things to watch out for during integration. The sensor supports both I2C and I3C (https://www.youtube.com/watch?v=hC4zkvdVag4) so it's good for legacy or modern microprocessors. Note the chip requires no greater than 1.8V power and logic, so for 3.3V systems - a shifter will be necessary. Finally - the chip has a massive number of registers to tweak the settings. So while you could write a driver, you're probably best off using ams OSRAM's TCS3502 linux C kernel driver to base your implementation if you are not just using Linux/Android directly.

If you want to add precision color sensing with pre-calibrated CIE XYZ outputs to your next design, the ams OSRAM's TCS3530 True Color Sensor (https://www.digikey.com/en/product-highlight/a/ams/tcs3530-true-color-sensor) is a top choice from a world leader in light sensing. And best of all, it's in stock right now at DigiKey for immediate shipment! Order today and you will get this compact all-in-one devices shipped to your door so you can start letting your true colors shine by tomorrow afternoon.

This week's EYE ON NPI is catchy like an 80's pop song (https://www.youtube.com/watch?v=LPn0KFlbqX8), it's ams OSRAM's TCS3530 True Color Sensor (https://www.digikey.com/en/product-highlight/a/ams/tcs3530-true-color-sensor) It is a new light sensor from ams OSRAM that is pre-calibrated for CIE XYZ color temperature sensing output, without a lot of gnarly math!

We're huge fans of ams's light sensors, one of our first sensor breakouts was the TSL2561, (https://www.digikey.com/en/products/detail/ams-osram-usa-inc/TSL2561T/3095179) a wide-input-range light sensor with an I2C interface. We followed that up with a breakout for the TCS34725 which can detect separate red, green, blue and clear channels. With a little math, color reflected off of objects can be calculated into RGB color-space - we used it to make an umbrella that matches whatever color it touches! (https://learn.adafruit.com/florabrella/)

Since then, ams OSRAM has worked to create better light sensors that reduce the need for end-user calibration or a lot of microcontroller lifting. The chips have carefully tuned PN diodes to not only be able to report correct color values, but ideally also have little variation from sensor-to-sensor.

The TCS3530 (https://www.digikey.com/short/qwt595fh) is the latest color sensor from ams OSRAM, and it's also their newest with XYZ color output! This means you can read CIE XYZ color values out directly from the driver, which is going to be the best way to model what a human eye sees (https://en.wikipedia.org/wiki/CIE_1931_color_space) - not just an optimal concept based on 'pure' RGB photodiodes. This makes it ideal for use with cameras, monitors, printers/copiers and other devices that have humans that are looking at the colors. By detecting ambient light temperature, monitors and camera sensors can adjust their white balance to have their color gamut appear more 'natural' even in yellowish incandescent or halogen, or blueish fluorescent light.

The TCS3530 (https://www.digikey.com/short/qwt595fh) does this by having 8 separate PN diodes, each tuned to a specific frequency band, to cover from about 400nm to 750nm. The diodes are normalized by the ALS engine so that you don't get over-sensitivity to green or IR. The diodes are arranged in a 4-way symmetric array to get fully balanced readings across all frequencies: there's probably some reasoning to how the layout is done to avoid signal from one diode from affecting a nearby one, something ams has decades of experience with. A modulator and flicker detection system can sense light pulses such as those from incandescent bulbs (at 120 Hz) or monitors (30 to 60 Hz) so that we can sample at the same times during the wave, or sample long enough to capture a full waveform worth of light.

Interfacing is fairly simple, although there are a few things to watch out for during integration. The sensor supports both I2C and I3C (https://www.youtube.com/watch?v=hC4zkvdVag4) so it's good for legacy or modern microprocessors. Note the chip requires no greater than 1.8V power and logic, so for 3.3V systems - a shifter will be necessary. Finally - the chip has a massive number of registers to tweak the settings. So while you could write a driver, you're probably best off using ams OSRAM's TCS3502 linux C kernel driver to base your implementation if you are not just using Linux/Android directly.

If you want to add precision color sensing with pre-calibrated CIE XYZ outputs to your next design, the ams OSRAM's TCS3530 True Color Sensor (https://www.digikey.com/en/product-highlight/a/ams/tcs3530-true-color-sensor) is a top choice from a world leader in light sensing. And best of all, it's in stock right now at DigiKey for immediate shipment! Order today and you will get this compact all-in-one devices shipped to your door so you can start letting your true colors shine by tomorrow afternoon.

12 min

Top Podcasts In Education

The Mel Robbins Podcast
Mel Robbins
The Jordan B. Peterson Podcast
Dr. Jordan B. Peterson
Mick Unplugged
Mick Hunt
Law of Attraction SECRETS
Natasha Graziano
This Is Purdue
Purdue University
Digital Social Hour
Sean Kelly

More by Adafruit Industries

3D Printing Projects
Adafruit Industries
Adafruit Industries
Adafruit Industries
Raspberry Pi
Adafruit Industries
Show and Tell
Adafruit Industries
Ask an Engineer
Adafruit Industries
New Products
Adafruit Industries