Color 4 Click Board
Color 4 Click Board
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™.
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.