{"product_id":"mikroe-2961","title":"Spectral 3 click","description":"\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eSpectral 3 click \u003c\/strong\u003eis a multispectral sensing device, which uses the state-of-the-art sensor IC for a very accurate near-IR (NIR) sensing. The sensor on the Spectral 3 click provides multi-spectral sensing in the NIR wavelengths from approximately 610nm to 860nm with the full width at half maximum (FWHM) of 20nm. Spectral 3 click provides a direct reading of the six different channels 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 color object.\u003c\/p\u003e\n\u003cp\u003eThe 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, Spectral 3 click can be used in various spectrometry applications, used for the product authentication applications, spectral identification, banknote and document validation, chemical analysis, food, beverage safety, etc. Essentially, for any professional grade applications that require a high degree of NIR spectral sensing accuracy and consistency.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eHow does it work?\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eThe multispectral sensor IC used on the Spectral 3 click is the \u003ca href=\"https:\/\/download.mikroe.com\/documents\/datasheets\/AS7263.pdf\"\u003eAS7263\u003c\/a\u003e, a 6 channel NIR Spectral_ID device with 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-optic deposited interference filter technology, designed to provide ranges for 6 near-IR spectral channels: R = 610nm, S = 680nm, T = 730nm, U = 760nm, V = 810nm and W = 860nm, each with 20nm FWHM. The filter characteristics are tested and measured with the diffused white 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 AS7263 IC.\u003cimg src=\"https:\/\/www.mikroe.com\/img\/cms\/spectral-3-click-inside-image.jpg\" alt=\"\"\u003e\u003c\/p\u003e\n\u003cp\u003eThe 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 color elements, the engine calculates all the calibrated values available on this device and outputs them as 32bit float values. After the specified integration time (2.8ms min), 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 AS7263 datasheet.\u003c\/p\u003e\n\u003cp\u003eThe sensor data is organized in two banks. The first bank contains readings from the S, T, U and V photodiodes, while the second bank contains readings from the R, T, U, and W 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 channels of the respective wavelengths (Channel R, Channel S, Channel T…).\u003c\/p\u003e\n\u003cp\u003eAn 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 AS7263 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 AS7263 datasheet.\u003c\/p\u003e\n\u003cp\u003eThe 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.\u003c\/p\u003e\n\u003cp\u003eThe 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 AS7263 sensor. The AT25SF041 IC communicates with the sensor via the SPI lines, internally routed on the Spectral 3 click.\u003c\/p\u003e\n\u003cp\u003eUART and I2C lines of the AS7263 sensor are routed to the mikroBUS™ respective UART pins (RX\/TX and SDA\/SCL). To select which interface will be used to drive the sensor IC, three onboard SMD jumpers labeled as COM SEL need to be moved either to the left position (to enable UART), or to the right position (to enable I2C). It should be noted that all the SMD jumpers need to be moved at once - if some of them are set as UART and some as I2C, the communication might not be possible at all.\u003c\/p\u003e\n\u003cp\u003eThere are two integrated programmable LED drivers on the AS7263 sensor. The first LED constant current driver can be programmed up to 10mA and it can be used as the status indicator. It is also activated during the sensor firmware programming. The second LED driver is intended for driving of the light source for the measurement surface illumination. It can drive high brightness LED with up to 100mA. Both of these LED drivers are available through the communication interfaces.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eSpecifications\u003c\/strong\u003e\u003c\/p\u003e\n\u003ctable\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eType\u003c\/td\u003e\n\u003ctd\u003eOptical\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eApplications\u003c\/td\u003e\n\u003ctd\u003eSpectral 3 click can be used in various spectrometry applications, for the product authentication, spectral identification, banknote and document validation, chemical analysis, food, and beverage safety, etc\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eOn-board modules\u003c\/td\u003e\n\u003ctd\u003eAS7263, a digital 6-channel spectrometer for spectral identification in the near IR (NIR) light wavelength range, with electronic shutter and smart interface, from ams; AT25SF041, a 4Mb SPI serial flash from Adesto Technologies\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eKey Features\u003c\/td\u003e\n\u003ctd\u003eCompact 6-channel near-IR spectrometry solution realized by the proprietary silicon interference filters, lifetime-calibrated sensing with no drift over time or temperature, on-chip data processing, auxiliary illumination LED drivers, smart UART interface\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eInterface\u003c\/td\u003e\n\u003ctd\u003eI2C,UART\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eInput Voltage\u003c\/td\u003e\n\u003ctd\u003e3.3V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eClick board size\u003c\/td\u003e\n\u003ctd\u003eL (57.15 x 25.4 mm)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp\u003e\u003cstrong\u003ePinout diagram\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eThis table shows how the pinout on\u003cstrong\u003e Spectral 3\u003c\/strong\u003e \u003cstrong\u003eclick\u003c\/strong\u003e corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).\u003c\/p\u003e\n\u003ctable style=\"width: 549px;\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003cth\u003eNotes\u003c\/th\u003e\n\u003cth\u003ePin\u003c\/th\u003e\n\u003cth colspan=\"4\"\u003e\u003ca href=\"http:\/\/www.mikroe.com\/mikrobus\/\"\u003e\u003cimg src=\"https:\/\/cdn.mikroe.com\/img\/mikrobus\/mikroBUS-logo-black.png\" alt=\"Mikrobus logo.png\"\u003e\u003c\/a\u003e\u003c\/th\u003e\n\u003cth\u003ePin\u003c\/th\u003e\n\u003cth\u003eNotes\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e1\u003c\/td\u003e\n\u003ctd\u003eAN\u003c\/td\u003e\n\u003ctd\u003ePWM\u003c\/td\u003e\n\u003ctd\u003e16\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eReset\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eRST\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e2\u003c\/td\u003e\n\u003ctd\u003eRST\u003c\/td\u003e\n\u003ctd\u003eINT\u003c\/td\u003e\n\u003ctd\u003e15\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eINT\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eInterrupt\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e3\u003c\/td\u003e\n\u003ctd\u003eCS\u003c\/td\u003e\n\u003ctd\u003eRX\u003c\/td\u003e\n\u003ctd\u003e14\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eTX\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eUART transmit\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e4\u003c\/td\u003e\n\u003ctd\u003eSCK\u003c\/td\u003e\n\u003ctd\u003eTX\u003c\/td\u003e\n\u003ctd\u003e13\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eRX\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eUART receive\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e5\u003c\/td\u003e\n\u003ctd\u003eMISO\u003c\/td\u003e\n\u003ctd\u003eSCL\u003c\/td\u003e\n\u003ctd\u003e12\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eSCL\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eI2C Clock\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e6\u003c\/td\u003e\n\u003ctd\u003eMOSI\u003c\/td\u003e\n\u003ctd\u003eSDA\u003c\/td\u003e\n\u003ctd\u003e11\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eSDA\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eI2C Data\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003ePower supply\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003e+3.3V\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e7\u003c\/td\u003e\n\u003ctd\u003e3.3V\u003c\/td\u003e\n\u003ctd\u003e5V\u003c\/td\u003e\n\u003ctd\u003e10\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eGround\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eGND\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e8\u003c\/td\u003e\n\u003ctd\u003eGND\u003c\/td\u003e\n\u003ctd\u003eGND\u003c\/td\u003e\n\u003ctd\u003e9\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eGND\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eGround\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp\u003e\u003cbr\u003e \u003cstrong\u003eOnboard settings and indicators\u003c\/strong\u003e\u003c\/p\u003e\n\u003ctable\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003cth\u003eLabel\u003c\/th\u003e\n\u003cth\u003eName\u003c\/th\u003e\n\u003cth\u003eDefault\u003c\/th\u003e\n\u003cth\u003e Description\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eLD1\u003c\/td\u003e\n\u003ctd\u003ePWR\u003c\/td\u003e\n\u003ctd\u003e-\u003c\/td\u003e\n\u003ctd\u003ePower LED indicator\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eLD2\u003c\/td\u003e\n\u003ctd\u003eIND\u003c\/td\u003e\n\u003ctd\u003e-\u003c\/td\u003e\n\u003ctd\u003eProgrammable constant current LED indicator\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eLD3\u003c\/td\u003e\n\u003ctd\u003eDRV\u003c\/td\u003e\n\u003ctd\u003e-\u003c\/td\u003e\n\u003ctd\u003eProgrammable constant current LED illuminator\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eJP1\u003c\/td\u003e\n\u003ctd\u003eCOM.SELL.\u003c\/td\u003e\n\u003ctd\u003eLeft\u003c\/td\u003e\n\u003ctd\u003eCommunication Interface Selection I2C\/UART, left position UART, right position I2C\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eJP2\u003c\/td\u003e\n\u003ctd\u003eCOM.SELL.\u003c\/td\u003e\n\u003ctd\u003eLeft\u003c\/td\u003e\n\u003ctd\u003eCommunication Interface Selection I2C\/UART, left position UART, right position I2C\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eJP3\u003c\/td\u003e\n\u003ctd\u003eCOM.SELL.\u003c\/td\u003e\n\u003ctd\u003eLeft\u003c\/td\u003e\n\u003ctd\u003eCommunication Interface Selection I2C\/UART, left position UART, right position I2C\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp\u003e\u003cstrong\u003eSoftware support\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eWe provide a library for Spectral 3 click on our \u003ca href=\"https:\/\/libstock.mikroe.com\/projects\/view\/2356\/spectral-3-click\"\u003eLibstock page\u003c\/a\u003e, as well as a demo application (example), developed using MikroElektronika \u003ca href=\"https:\/\/www.mikroe.com\/compilers\"\u003ecompilers\u003c\/a\u003e. The demo application can run on all the main MikroElektronika \u003ca href=\"https:\/\/www.mikroe.com\/development-boards\"\u003edevelopment boards\u003c\/a\u003e.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eLibrary Description\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eThe library carries a generic command parser adopted for AT command based modules. Generic parser.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eKey functions:\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003ccode\u003espectral3_cmdSingle \u003c\/code\u003e- Sends the provided command to the module.\u003c\/li\u003e\n\u003cli\u003e\n\u003ccode\u003espectral3_setHandler \u003c\/code\u003e- Handler assignation to the provided command.\u003c\/li\u003e\n\u003cli\u003e\n\u003ccode\u003espectral3_modulePower \u003c\/code\u003e- Turns on the module.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eExamples Description\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eThe demo application is composed of three sections:\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eSystem Initialization - Initializes all necessary GPIO pins, UART used for the communication with Spectral 3 and UART used for information logging.\u003c\/li\u003e\n\u003cli\u003eApplication Initialization - Initializes the driver, resets the module and sends commands for auto baudrate, GAIN configuration and Mode configuration.\u003c\/li\u003e\n\u003cli\u003eApplication Task (Code Snippet) - Sends the command to start reading data. Then logs to USB-UART, all six values read from Spectral 3 click. The operation is repeated every 1 second.\u003cbr\u003e \u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cpre\u003evoid applicationTask()\n{\nspectral3_process();\nspectral3_cmdSingle(\u0026amp;cmdData[0]);\nspectral3_getData(\u0026amp;rspBuffer[0],\u0026amp;readData[0]);\n\nIntToStr(readData[0],text);\nmikrobus_logWrite( \"-- R value:\", _LOG_TEXT );\nmikrobus_logWrite( text, _LOG_LINE );\n\nIntToStr(readData[1],text);\nmikrobus_logWrite( \"-- S value:\", _LOG_TEXT );\nmikrobus_logWrite( text, _LOG_LINE );\n\nIntToStr(readData[2],text);\nmikrobus_logWrite( \"-- T value:\", _LOG_TEXT );\nmikrobus_logWrite( text, _LOG_LINE );\n\nIntToStr(readData[3],text);\nmikrobus_logWrite( \"-- U value:\", _LOG_TEXT );\nmikrobus_logWrite( text, _LOG_LINE );\n\nIntToStr(readData[4],text);\nmikrobus_logWrite( \"-- V value:\", _LOG_TEXT );\nmikrobus_logWrite( text, _LOG_LINE );\n\nIntToStr(readData[5],text);\nmikrobus_logWrite( \"-- W value:\", _LOG_TEXT );\nmikrobus_logWrite( text, _LOG_LINE );\n\nmikrobus_logWrite( \"---------------------\", _LOG_LINE );\nDelay_1sec();\n}\n\u003c\/pre\u003e\n\u003cp\u003eAlong with the demo, application timer initialization functions are provided. Note that timer is configured according to default development system and MCUs, changing the system or MCU may require an update of timer init and timer ISR functions.\u003c\/p\u003e\n\u003cp\u003eThe full application code, and ready to use projects can be found on our \u003ca href=\"https:\/\/libstock.mikroe.com\/projects\/view\/2356\/spectral-3-click\"\u003eLibstock page\u003c\/a\u003e.\u003c\/p\u003e\n\u003cp\u003emikroE Libraries used in the example:\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eUART Library\u003c\/li\u003e\n\u003cli\u003eConversions Library\u003c\/li\u003e\n\u003cli\u003eC_String Library\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eAdditional notes and information\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eDepending on the development board you are using, you may need \u003ca href=\"https:\/\/shop.mikroe.com\/usb-uart-click\"\u003eUSB UART click\u003c\/a\u003e, \u003ca href=\"https:\/\/shop.mikroe.com\/usb-uart-2-click\"\u003eUSB UART 2 click\u003c\/a\u003e or \u003ca href=\"https:\/\/shop.mikroe.com\/rs232-click\"\u003eRS232 click\u003c\/a\u003e to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika \u003ca href=\"https:\/\/shop.mikroe.com\/compilers\"\u003ecompilers\u003c\/a\u003e, or any other terminal application of your choice, can be used to read the message.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003emikroSDK\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eThis click board is supported with \u003ca href=\"https:\/\/www.mikroe.com\/mikrosdk\"\u003emikroSDK\u003c\/a\u003e - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant click board demo applications, mikroSDK should be downloaded from the \u003ca href=\"https:\/\/libstock.mikroe.com\/projects\/view\/2249\/mikrosdk\"\u003eLibStock\u003c\/a\u003e and installed for the compiler you are using.\u003cbr\u003e\u003cbr\u003e\u003c\/p\u003e","brand":"MikroElektronika","offers":[{"title":"Default Title","offer_id":47400884470043,"sku":"MIKROE-2961","price":2729.0,"currency_code":"INR","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0676\/3325\/0587\/products\/spectral-3-click-large_default-22xgK7l19vxHvwle.jpg?v=1701961577","url":"https:\/\/mgsl.in\/products\/mikroe-2961","provider":"MG Super Labs","version":"1.0","type":"link"}