Mikroelektronika d.o.o.
Color 4 Click Board
Color 4 Click Board
Couldn't load pickup availability
Key Features:
- Integrated RGBW and signal conditioning, Filtron™ technology provides real-human eye responses, supports low transmittance (dark) lens, high resolution, selectable detection range, high sensitivity, I2C interface, and more
- Based on the VEML6040 - advanced RGB/ambient light sensor from Vishay Semiconductors
- Can be used for industrial, mechanical, and consumer applications
- mikroBUS: I2C Interface
Introducing the Color 4 Click Board™ - the ultimate colour-sensing solution for all your industrial, mechanical, and consumer needs. This compact add-on board is equipped with the VEML6040, a state-of-the-art 16-bit RGBW colour sensor that boasts spectral response through a compatible I2C interface from Vishay Semiconductors. The VEML6040 is based on the revolutionary Filtron™ technology, providing the closest ambient light spectral sensitivity to real-human eye responses.
In addition to the colour sensor, this IC incorporates a signal conditioning circuit consisting of photodiodes, amplifiers, and A/D circuits, all placed into a single chip using the CMOS process. This allows for a selectable measurement range up to 16.496lx with the highest sensitivity of 0.007865lx/step.
Easily integrate the Click board™ into your system with the mikroSDK-compliant library, which includes functions that simplify software development. And with the bonus of being a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket, you can trust that the Color 4 Click Board™ will deliver the accurate and precise colour-sensing results you need. Upgrade your technology today and experience the difference with the Color 4 Click Board™.
![Mikroelektronika d.o.o. MIKROE-2220 Color 4 Click Board - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-color-4-click-board-39398663422175.jpg?v=1684928987&width=1445)
![Mikroelektronika d.o.o. MIKROE-2220 Color 4 Click Board - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-color-4-click-board-39398663454943.jpg?v=1684928993&width=1445)
![Mikroelektronika d.o.o. MIKROE-2220 Color 4 Click Board - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-color-4-click-board-39398663618783.jpg?v=1684928990&width=1445)
![Mikroelektronika d.o.o. MIKROE-2220 Color 4 Click Board - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-color-4-click-board-39398663356639.jpg?v=1684928996&width=1445)
![Mikroelektronika d.o.o. MIKROE-2220 Color 4 Click Board - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-color-4-click-board-39398663586015.jpg?v=1684928984&width=1445)
![Mikroelektronika d.o.o. MIKROE-2220 Color 4 Click Board - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-color-4-click-board-39398663389407.jpg?v=1684929003&width=1445)
![Mikroelektronika d.o.o. MIKROE-2220 Color 4 Click Board - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-color-4-click-board-39398663520479.jpg?v=1684928822&width=1445)
![Mikroelektronika d.o.o. MIKROE-2220 Color 4 Click Board - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-color-4-click-board-39398663323871.jpg?v=1684928999&width=1445)
How Does The Color 4 Click Board™ Work?
The Color 4 Click Board™ is based on the VEML6040, an advanced RGB/ambient light sensor from Vishay Semiconductors, providing fast and accurate spectral measurements. It is based on the Filtron™ technology achieving the closest ambient light spectral sensitivity to real-human eye responses. The VEML6040 senses red, green, blue, and white light and processes those signals by a signal conditioning circuit designed with CMOS technology. This digital RGBW information can be used in feedback control systems, among other things, to monitor and actively control a light source.
The Color 4 Click Board™ detects light intensity under multiple lighting conditions and through different attenuation materials, including dark glass. The VEML6040 provides a selectable measurement range from 515.4lx up to 16.496lx with the highest sensitivity of 0.007865lx/step. Its peak sensitivities for red, green, and blue are 645nm, 575nm, and 460nm, respectively. Moreover, it provides excellent temperature compensation, keeping the output stable under changing temperatures.
The Color 4 Click Board™ communicates with MCU using the standard I2C 2-Wire interface to read data and configure settings, supporting Standard Mode operation with a clock frequency of 100kHz and Fast Mode up to 400kHz. The VEML6040 contains one configuration register (00h) used for operation control and parameter setup. Its measurement results are stored in four separate registers, each for red, green, blue, and white, with addresses from 08h to 0Bh, respectively. All registers are 16-bit wide.
The board can be operated only with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before using MCUs with different logic levels. However, the Click board™ comes equipped with a library containing functions and an example code that can be used as a reference for further development.
SPECIFICATIONS
Type | Color Sensing |
Applications | Can be used for industrial, mechanical, and consumer applications |
On-board modules | VEML6040 - advanced RGB/ambient light sensor from Vishay Semiconductors |
Key Features | Integrated RGBW and signal conditioning, Filtron™ technology provides real-human eye responses, supports low transmittance (dark) lens, high resolution, selectable detection range, high sensitivity, I2C interface, and more |
Interface | I2C |
Compatibility | mikroBUS |
Click board size | S (28.6 x 25.4 mm) |
Input Voltage | 3.3V |
PINOUT DIAGRAM
This table shows how the pinout of the Color 4 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | ![]() |
Pin | Notes | |||
---|---|---|---|---|---|---|---|
NC | 1 | AN | PWM | 16 | NC | ||
NC | 2 | RST | INT | 15 | NC | ||
NC | 3 | CS | RX | 14 | NC | ||
NC | 4 | SCK | TX | 13 | NC | ||
NC | 5 | MISO | SCL | 12 | SCL | I2C Clock | |
NC | 6 | MOSI | SDA | 11 | SDA | I2C Data | |
Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | NC | |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
ONBOARD SETTINGS AND INDICATORS
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
COLOR 4 CLICK ELECTRICAL SPECIFICATIONS
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | - | 3.3 | - | V |
Spectral Response | 515.4 | - | 16.496 | lx |
Sensitivity | - | 0.007865 | - | lx/step |
Peak Wavelength (R/G/B) | - | 645/575/460 | - | nm |
Resolution | - | 16 | - | bit |
Software Support
We provide a library for the Color 4 Click Board™ as well as a demo application (example), developed using MikroE compilers. The demo can run on all the main MikroE development boards.
The package can be downloaded/installed directly from NECTO Studio The package Manager(recommended), downloaded from our LibStock™ or found on MikroE Github account.
Library Description
This library contains API for the Color 4 Click Board™ driver.
Key functions
-
color4_set_config
Color 4 set configuration function. -
color4_get_color_data
Color 4 get color data function. -
color4_get_ambient_light
Color 4 get ambient light level function.
Example Description
This library contains API for the Color 4 Click Board™ driver. This driver provides the functions for the sensor configuration and for reading RGBW and ambient light data from device. This example displays RGBW data, Ambient light level, CCT data and the light color names.
void application_task ( void )
{
if ( COLOR4_OK == color4_get_color_data( &color4, COLOR4_RED, &red_data ) )
{
log_printf( &logger, " Red: %urn", red_data );
}
if ( COLOR4_OK == color4_get_color_data( &color4, COLOR4_GREEN, &green_data ) )
{
log_printf( &logger, " Green: %urn", green_data );
}
if ( COLOR4_OK == color4_get_color_data( &color4, COLOR4_BLUE, &blue_data ) )
{
log_printf( &logger, " Blue: %urn", blue_data );
}
if ( COLOR4_OK == color4_get_color_data( &color4, COLOR4_WHITE, &white_data ) )
{
log_printf( &logger, " White: %urn", white_data );
}
log_printf( &logger, " - - - - - - - - - - - rn" );
if ( COLOR4_OK == color4_get_ambient_light( &color4, &ambient_light ) )
{
log_printf( &logger, " ALS lux level: %.2frn", ambient_light );
}
if ( COLOR4_OK == color4_get_cct( &color4, &cct ) )
{
log_printf( &logger, " CCT: %.2frn", cct );
}
log_printf( &logger, " - - - - - - - - - - - rn" );
display_color();
log_printf( &logger, " ----------------------rn" );
Delay_ms( 1000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio The 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.Color4
Additional Notes and Information
Depending on the development board you are using, you may need USB UART Click Board™, 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
The Color 4 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.
Color 4 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.
![banner Image](http://thedebugstore.com/cdn/shopifycloud/shopify/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_medium.gif)