color16
2.1.0.0
|
Color 16 Click is a compact add-on board providing an accurate color-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 centered in the visible spectrum, one near-infrared, and a clear channel.
We provide a library for the Color 16 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for Color 16 Click driver.
color16_cfg_setup
Config Object Initialization function. color16_init
Initialization function. color16_default_cfg
Click Default Configuration function. color16_read_data
This function checks if the spectral measurement data is ready and then 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. This example demonstrates the use of Color 16 click by reading and displaying the values from all 14 channels.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
Waits for the spectral measurement complete flag and then reads data from all 14 channels
in 3 cycles, and displays the results on the USB UART every 300ms approximately.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
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 MikroElektronika compilers.