Color 16 Click Board
Color 16 Click Board
Key Features:
- 14 optical channels distributed over visible spectrum, near-infrared, and clear channel, dedicated functions such as flicker detection, high senistivity, fast measurements, low power consumption, interrupt, and more
- Based on the AS7343 - multi-purpose spectral sensor from ams AG
- Can be used for reflective, transmissive, and emissive light applications
- mikroBUS: I2C Interface
The Color 16 Click Board™ is a compact add-on board providing an accurate colour-sensing solution. This board features ams AG’s AS7343, a 14-channel multi-purpose spectral sensor offering spectral response through a compatible I2C interface. It has a built-in aperture that controls the light entering the sensor array to increase accuracy, alongside precise optical filters integrated into standard CMOS silicon via deposited interference filter technology. The spectral response is defined by individual channels covering approximately 380nm to 1000nm with 11 channels centred in the visible spectrum, one near-infrared, and a clear channel. This Click board™ is suitable for reflective, transmissive, and emissive light applications.
The Color 16 Click Board™ is supported by a mikroSDK-compliant library, which includes functions that simplify software development. This Click board™ comes as a thoroughly tested product, ready to be used on a system equipped with the mikroBUS™ socket.
Software Support
We provide a library for the Color 16 Click Board™ and 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 the MikroE Github account.
Library Description
This library contains API for the Color 16 Click Board™ driver.
Key functions
-
color16_read_data
This function checks if the spectral measurement data is ready and reads data from all channels along with the STATUS and ASTATUS bytes. -
color16_set_wait_time_ms
This function sets the wait time in milliseconds by setting the WTIME register. -
color16_set_integration_time_ms
This function sets the integration time in milliseconds by setting the ATIME and ASTEP registers.
Example Description
This example demonstrates the use of the Color 16 Click Board™ by reading and displaying the values from all 14 channels.
void application_task ( void )
{
color16_data_t color_data;
if ( COLOR16_OK == color16_read_data ( &color16, &color_data ) )
{
log_printf ( &logger, " STATUS: 0x%.2Xrn", ( uint16_t ) color_data.status );
log_printf ( &logger, " ASTATUS: 0x%.2Xrn", ( uint16_t ) color_data.astatus );
log_printf ( &logger, " ------- Cycle 1 -------rn" );
log_printf ( &logger, " Channel FZ: %urn", color_data.ch_fz );
log_printf ( &logger, " Channel FY: %urn", color_data.ch_fy );
log_printf ( &logger, " Channel FXL: %urn", color_data.ch_fxl );
log_printf ( &logger, " Channel NIR: %urn", color_data.ch_nir );
log_printf ( &logger, " Channel 2xVIS_1: %urn", color_data.ch_2x_vis_1 );
log_printf ( &logger, " Channel FD_1: %urn", color_data.ch_fd_1 );
log_printf ( &logger, " ------- Cycle 2 -------rn" );
log_printf ( &logger, " Channel F2: %urn", color_data.ch_f2 );
log_printf ( &logger, " Channel F3: %urn", color_data.ch_f3 );
log_printf ( &logger, " Channel F4: %urn", color_data.ch_f4 );
log_printf ( &logger, " Channel F6: %urn", color_data.ch_f6 );
log_printf ( &logger, " Channel 2xVIS_2: %urn", color_data.ch_2x_vis_2 );
log_printf ( &logger, " Channel FD_2: %urn", color_data.ch_fd_2 );
log_printf ( &logger, " ------- Cycle 3 -------rn" );
log_printf ( &logger, " Channel F1: %urn", color_data.ch_f1 );
log_printf ( &logger, " Channel F5: %urn", color_data.ch_f5 );
log_printf ( &logger, " Channel F7: %urn", color_data.ch_f7 );
log_printf ( &logger, " Channel F8: %urn", color_data.ch_f8 );
log_printf ( &logger, " Channel 2xVIS_3: %urn", color_data.ch_2x_vis_3 );
log_printf ( &logger, " Channel FD_3: %urn", color_data.ch_fd_3 );
log_printf ( &logger, " -----------------------rnn" );
Delay_ms ( 300 );
}
}
The complete application code and ready-to-use projects can be installed directly from NECTO Studio The package Manager(recommended) is downloaded from our LibStock™ or found on the MikroE Github account.
Other MikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Color16
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 16 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 16 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.