How does it work?
Color 11 Click is based on the TCS34083M, an ALS/Color sensor with selective flicker detection from ams-OSRAM. This sensor’s Ambient Light and Color Sensing function provides five concurrent ambient light sensing channels: Red, Green, Blue, Clear, and Wideband. The RGB and Clear channels have a UV/IR blocking filter. This architecture accurately measures ambient light and enables the calculation of illuminance, chromaticity, and color temperature to manage display appearance. The device integrates direct detection of 50Hz or 60Hz ambient light flicker. Flicker detection is executed parallel with ambient light and color sensing and has an independent gain configuration. The flicker detection engine can also buffer data for calculating other flicker frequencies externally.
The sensor works at 1.8V, so the Color 11 Click is equipped with the AP2112, a CMOS LDO from Diodes Incorporated. The PCA9306, a dual bidirectional voltage level translator from Texas Instruments, is used to meet higher logic levels besides additional circuits.
Color 11 Click uses a standard 2-Wire I2C interface to communicate with the host MCU, supporting clock frequency of up to 400kHz. The TCS34083M is an interrupt-driven device. Over the INT pin, the sensor will output interrupts of ALS/color according to the thresholds, flicker detection, and more.
This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via the VCC SEL jumper. This way, both 3.3V and 5V capable MCUs can use the communication lines properly. Also, this Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used as a reference for further development.
Specifications
Type
Color Sensing,Optical
Applications
Can be used for the development of brightness management for displays, color management for displays, camera image processing, flicker-immune camera operation, and more
On-board modules
TCS34083M – ALS/color sensor with selective flicker detection from ams-OSRAM
Key Features
Invisible ALS and color sensing under any glass type, unique fast ALS integration mode, integrated ambient light flicker detection on-chip, integrated status checking for all functions, low power consumption, programmable gain and integration time, tailored ALS and color response, and more
Interface
I2C
Feature
ClickID
Compatibility
mikroBUS™
Click board size
S (28.6 x 25.4 mm)
Input Voltage
3.3V or 5V
Pinout diagram
This table shows how the pinout on Color 11 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
JP1 | VCC SEL | Left | Power/Logic Voltage Level Selection 3V3/5V: Left position 3V3, Right position 5V |
Color 11 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Spectral Response (C/R/G/B/WB/FD1/FD2) | 625/615/525/465/750/770/720 | nm |
Software Support
We provide a library for the Color 11 Click as well as a demo application (example), developed using MIKROE compilers. The demo can run on all the main MIKROE development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for Color 11 Click driver.
Key functions
-
color11_get_als_data
Color 11 get ALS data function. -
color11_get_illuminance
Color 11 get illuminance function. -
color11_get_data_valid_status
Color 11 get data valid status function.
Example Description
This library contains API for the Color 11 Click driver. The demo application sets sensor configuration and reads and displays ALS data measurement results.
void application_task ( void )
{
uint8_t status = 0;
if ( COLOR11_OK == color11_get_data_valid_status( &color11, &status ) )
{
color11_als_data_t color_data;
if ( COLOR11_OK == color11_get_als_data( &color11, &color_data ) && ( COLOR11_STATUS2_AVALID & status ) )
{
log_printf( &logger, " Clear: %urn", color_data.clear );
log_printf( &logger, " Red : %urn", color_data.red );
log_printf( &logger, " Green : %urn", color_data.green );
log_printf( &logger, " Blue : %urn", color_data.blue );
log_printf( &logger, " Wideband : %urn", color_data.wideband );
log_printf( &logger, " Flicker : %urn", color_data.flicker );
log_printf( &logger, " ------------------rn" );
Delay_ms( 1000 );
}
}
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Color11
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MIKROE compilers.
mikroSDK
This Click board™ is supported with mikroSDK – MIKROE Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.