color18
2.1.0.0
|
Color 18 Click is a compact add-on board for accurate ambient light detection and flicker monitoring. This board features the TCS3530, a true color ambient light sensor from ams OSRAM. The TCS3530 features true color XYZ sensing, flicker detection up to 7kHz, and eight concurrent sensing channels with independent gain configurations. It also includes a UV/IR blocking filter for precise light measurements and a unique Click Snap feature, allowing the main sensor area to become movable by breaking the PCB for flexible implementation.
We provide a library for the Color 18 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 18 Click driver.
color18_cfg_setup
Config Object Initialization function. color18_init
Initialization function. color18_default_cfg
Click Default Configuration function. color18_get_int_pin
This function returns the INT pin logic state. color18_read_data
This function checks if the color measurement data are ready for all channels and reads them. color18_clear_fifo
This function clears the FIFO buffers and interrupts. This example demonstrates the use of Color 18 Click by reading and displaying the values from all 8 modulator channels.
The demo application is composed of two sections :
Initializes the driver and performs the Click default configuration.
Waits for a data ready interrupt then reads data from all 8 modulator channels and displays the results on the USB UART every 200ms 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.