Spectral 2 Click Board™
Product Code: MIKROE-2973
The Spectral 2 Click Board™ is a multispectral colour sensing device, which uses the state-of-the-art sensor IC for very accurate colour sensing. The sensor on the Spectral 2 click provides multi-spectral sensing in the visible range of wavelengths from approximately 430nm to 670nm with the full width at half maximum (FWHM) of 40nm. The Spectral 2 Click Board™ provides a direct reading of the six different colour components with the 16bit precision, as well as the calibrated reading, that gives 32bit float values with an 8bit biased exponent and a 23bit fraction part, processed through the Spectral ID engine. The sensor also integrates two programmable LED channels with constant current drivers, useful for indication and for providing the backlight for the measured colour object. The onboard sensor has minimal drift over time and with temperature, which makes it very reliable, even after long periods of time. The integrated temperature sensor compensates for all the thermal influences from the environment.
Equipped with such an advanced multispectral sensor IC, the Spectral 2 Click Board™ can be used in various spectrometry applications, used for colour measurement, spectral identification, colour matching, colour tuning and calibration, even for counterfeit detection based on the slight colour mismatching. Essentially – for any professional-grade applications that require a high degree of colour recognition accuracy and consistency.
How Does The Spectral 2 Click Board™ Work?
The multispectral sensor IC used on the Spectral 2 Click Board™ is the AS7262, 6 channel visible spectral_ID device with an electronic shutter and smart Interface. This is a very advanced multispectral sensor, which incorporates a 6 photodiodes array element. Every photo element is filtered through the Gaussian filters, implemented through the nano-optics deposited interference filter technology, designed to provide ranges for 6 visible channels: 450nm, 500nm, 550nm, 570nm, 600nm and 650nm, each with 40nm FWHM. The filter characteristics are tested and measured with the 5700K white LED light. This technology ensures minimal drift of the readings and temperature stability. It should be noted that the filter accuracy will be affected by the angle of incidence, determined by an integrated aperture and the internal microlenses, which is ±20° for the AS7262 IC.
The measurements from the photo elements are digitized by the 16bit ADC converter and processed by the spectral_ID engine. Besides the raw values of the six colour elements, which can be read from the registers as 16bit integer values, the engine calculates all the calibrated values available on this device and outputs them as 32bit float values with an 8bit biased exponent and a 23bit fraction part. After the specified integration time, those values are available in their respective registers and are accessible via the smart high-level UART interface driven by simple AT commands, or the I2C communication protocol bus. Even the temperature sensor can be accessed via its register. A complete list of all the available color coordinates and the registers which hold these values can be found in the AS7262 datasheet.
The sensor data is organized in two banks. The first bank contains readings from the V, B, G and Y photodiodes, while the second bank contains readings from the G, Y, O and R photodiodes. Different modes allow readings to be made from each bank, as well as the combinations between these two banks. There is also a mode for one-shot reading when time-critical or triggered measurement needs to be made. The photodiode letter codes above represent the colours of the respective wavelengths (Violet, Blue, Green, Yellow, Orange, and Red)
An interrupt can be triggered when the data is ready to be read by the host, depending on the selected bank mode. If the interrupt is enabled (INT = 1), the INT line is pulled to a LOW logic level and DATA_RDY bit of the control register is set to 1. The INT line is released when the control register is read. The DATA_RDY bit will be cleared whenever the measurement registers are read. The interrupt will be generated after one or more integrating cycles are completed, depending on the selected bank mode. The INT line of the AS7262 is routed to the mikroBUS™ INT pin and can be used to trigger an interrupt on the host MCU. More about bank reading modes and the interrupts can be found in the provided AS7262 datasheet.
The RESET line of the sensor is routed to the mikroBUS™ RST pin. If this line is pulled to a LOW level for more than 100ms, it will reset the device.
The sensor firmware is kept externally, on the auxiliary flash memory IC. The AT25SF041, an SPI serial flash memory is used for storing the firmware of the AS7262 sensor. The AT25SF041 IC communicates with the sensor via the SPI lines, internally routed on the Spectral 2 click.
UART and I2C lines of the AS7262 sensor are routed to the mikroBUS™ respective UART pins (RX/TX and SDA/SCL
Visit the Debug Store website for more information on Spectral 2 Click Board™