Mikroelektronika d.o.o.
IR Grid Click Board
IR Grid Click Board
Couldn't load pickup availability
Key Features:
- 64 factory calibrated sensors, capable of contactless measuring of temperature up to 300˚C, integrated 2048Kbit of EEPROM for storing configuration and compensation parameters, programmable refresh rate up to 512Hz, etc.
- Based on the MLX90621, a 16x4 IR array sensor with EEPROM, from Melexis
- It can be used for thermal scanners, precise contactless thermal measurement, thermal leaks in homes, industrial temperature control of moving parts, other types of heated object localization, human presence, and other similar applications.
- mikroBUS: I2C Interface
The IR Grid Click Board™ is a thermal imaging sensor. It has an array of 64 very sensitive factory-calibrated IR elements (pixels), arranged in 4 rows of 16 pixels, each measuring an object's temperature up to 300˚C within its local Field of View (FOV). The MLX90621ESF-BAD IR sensor used on this Click Board™ has only four pins, and it is mounted inside of the industry-standard TO39 package. It is equipped with 2Kbit of EEPROM for storing the compensation and calibration parameters. The MLX90621BAD IR sensor array IC has I2C compatible digital interface, allowing it to be interfaced with a wide range of different MCUs.
The sensor used on the IR Grid Click Board™ offers 40&Deg; x 10&Deg; Field of View. The sensor can output up to 512 frames per second (FPS).
![Mikroelektronika d.o.o. MIKROE-2622 IR Grid Click Board - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-ir-grid-click-board-30250077323453.jpg?v=1685025105&width=1445)
![Mikroelektronika d.o.o. MIKROE-2622 IR Grid Click Board - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-ir-grid-click-board-29647463874749.jpg?v=1685096571&width=1445)
![Mikroelektronika d.o.o. MIKROE-2622 IR Grid Click Board - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-ir-grid-click-board-30250077257917.jpg?v=1685024955&width=1445)
![Mikroelektronika d.o.o. MIKROE-2622 IR Grid Click Board - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-ir-grid-click-board-29647464104125.jpg?v=1685120523&width=1445)
The IR Grid Click Board™ is a thermal imaging sensor. It has an array of 64 very sensitive factory calibrated IR elements (pixels), arranged in 4 rows of 16 pixels, each measuring an object temperature up to 300˚C within its local Field of View (FOV). The MLX90621ESF IR sensor used on this Click board™ has only four pins, and it is mounted inside of the industry standard TO39 package. It is equipped with 2Kbit of EEPROM for storing the compensation and calibration parameters. The MLX90621ESF-BAD IR sensor array IC has I2C compatible digital interface, allowing it to be interfaced with a wide range of different MCUs. The sensor used on this Click board™ offers 40˚ x 10˚ FOV. The sensor can output up to 512 frames per second (FPS).
Due to the small number of external components it requires, as well as the low pin count and widely used I2C digital interface, this sensor is an ideal solution for building a range of thermal detection applications. The IR Grid Click Board™ can be used for a wide range of applications, including thermal scanners, precise contactless thermal measurement, thermal leaks in homes, industrial temperature control of moving parts, other types of heated object localization, human presence, and similar applications that require accurate contactless thermal measurement, or thermal imaging.
How Does The IR Grid Click Board™ Work?
The IR Grid Click Board™ is equipped with the MLX90621ESF-BAD, a 16x4 IR array sensor, from Melexis. This sensor consists of two separate ICs in TO39 package: one IC is the sensor itself, labeled as MLX90670, while the second IC is the 2Kbit EEPROM labeled as 24AA02, used to store all the compensation and calibration parameters. These sensors can measure temperature relative to the cold junction temperature, and for this reason, the MLX90621ESF IR sensor incorporates a PTAT (Proportional to Absolute Temperature) compensation sensor. The IR sensor array, as well as the PTAT sensor readings, are sampled by fast internal ADC and stored on the RAM, which can be accessed via the I2C. The resolution of the ADC can be programmed between 15bit and 18bit. The sensor IC supports the I2C FM+ mode with transfer rate up to 1000 kbps, while the EEPROM IC supports up to Fast Rate (400 kbps).
The MLX90621ESF-BAD IR sensor used on this Click board™ offers 40˚ x 10˚ FOV, with the IR sensing elements arranged in a 4x16 grid. Each sensor measures the temperature in its individual FOV, allowing the host MCU to build a thermal image or calculate the temperature at each spot of the imaged scene. The measurement results are stored in the onboard RAM. 64 words, each 16 bits wide contains the result of the IR sensor measurements, and one word contains the PTAT measurement.
The configuration register allows configuring of the measurement parameters. This 16bit register contains bits that control the behavior of the sensor IC: the refresh rate, ADC resolution, measurement mode (continuous or step mode), sleep mode, I2C mode (FM or FM+), EEPROM disable/enable, etc. It also contains some flags, such as the POR/BOR (Power ON Reset/Brown Out Reset) indicator bit, and measurement in progress bit. For example, if the POR/BOR bit is set to 0, the initialization has to be repeated, as the calibration might not be valid any longer.
The EEPROM IC contains all the necessary calibration parameters, as well as the content of the configuration register, that may be used between the POR cycles. The manufacturer advises storing of the EEPROM content in the RAM of the MCU before measurement, especially if faster refresh rates are used. A certain workflow has to be followed when operating this sensor. The workflow includes calculation of the compensation parameters that are stored in the EEPROM for each element. Those calculations include ambient temperature calculation, pixel offset calculation, pixel to pixel sensitivity difference compensation, object emissivity compensation, and object temperature calculation. The datasheet of the MLX90621ESF-BAD IR sensor contains these equations, which use the parameters stored in EEPROM. However, the IR Grid Click Board™ is supported by the library, which contains functions that simplify working with this sensor.
It should be noted that the sensor measures the IR emissivity of an object, so it is to expect that some materials cannot be accurately measured by this sensor due to their low emissivity, such as the aluminum. To better understand the emissivity property of the materials, a person wearing clothes, can be taken as an example: the measured temperature will reflect the clothes temperature, rather than the body temperature itself, which is known to be about 37 ˚C Care should be taken not to expose the Click board™ to a cold or hot air flow, as it will cause false readings of the real temperature. This sensor requires the temperature across the sensor package to be constant.
The MLX90621ESF-BAD IR sensor uses 2.6V for optimal results. To provide 2.6V, the IR Grid Click Board™ is equipped with the SPX3819, a small low noise LDO, which converts either 3.3V or 5V from the mikroBUS™ to the required 2.6V. The input voltage is selected by the SMD jumper labeled as VCC SEL. This jumper also selects the voltage at which I2C lines are pulled up, allowing both 3.3V and 5V MCUs to be interfaced with the Click board™. Besides I2C bus lines, no additional lines of the mikroBUS™ are used. I2C bus lines are routed to the respective pins of the mikroBUS™.
SPECIFICATIONS
Type | Optical |
Applications | It can be used for thermal scanners, precise contactless thermal measurement, thermal leaks in homes, industrial temperature control of moving parts, other types of heated object localization, human presence, and other similar applications. |
On-board modules | MLX90621, a 16x4 IR array sensor with EEPROM, from Melexis |
Key Features | 64 factory calibrated sensors, capable of contactless measuring of temperature up to 300˚C, integrated 2048Kbit of EEPROM for storing configuration and compensation parameters, programmable refresh rate up to 512Hz, etc. |
Interface | I2C |
Compatibility | mikroBUS |
Click board size | L (57.15 x 25.4 mm) |
Input Voltage | 3.3V or 5V |
PINOUT DIAGRAM
This table shows how the pinout on the IR Grid Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | ![]() |
Pin | Notes | |||
---|---|---|---|---|---|---|---|
NC | 1 | AN | PWM | 16 | NC | ||
NC | 2 | RST | INT | 15 | NC | ||
NC | 3 | CS | RX | 14 | NC | ||
NC | 4 | SCK | TX | 13 | NC | ||
NC | 5 | MISO | SCL | 12 | SCL | I2C Clock | |
NC | 6 | MOSI | SDA | 11 | SDA | I2C Data | |
Power supply | 3.3V | 7 | 3.3V | 5V | 10 | 5V | Power supply |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
ONBOARD SETTINGS AND INDICATORS
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED indicator |
VCC SEL | VCC SEL | Left | Power supply voltage selection: left position 3.3V, right position 5V |
Software Support
We provide a demo application for the IR Grid Click Board™ on our Libstock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
Library performs IR and temperature measurement. The sensor gets an IR picture of the detected object (body) and measures ambient temperature, compares that two measurements and shows the IR picture as a 16x4 matrix. For more details check the documentation.
Key Functions
float irgrid_getTemperature(uint16_t ptat_data, uint16_t config_reg)
- Returns value of ambient temperature.void irgrid_getIRArray(uint16_t *pixel_data)
- Functions for reading IR pixels.void irgrid_measurement(uint8_t *Temperature)
- Functions for reading all pixels temperature.
Example Description
The application is composed of three sections:
- System Initialization - Initializes I2C module.
- Application Initialization - Initializes driver and the IR Grid Click Board™.
- Application Task - (code snippet) - Reads pixels of temperature and creates temperature matrix which logs on USB-UART every 3 sec.
void applicationTask() { irgrid_measurement(Temperature); mikrobus_logWrite("IR Grid Temperature matrix",_LOG_LINE); for (irgrid_cnt = 0; irgrid_cnt < 64; irgrid_cnt++) { if(irgrid_cnt % 16 == 0) { mikrobus_logWrite(" ",_LOG_LINE); } if(Temperature[ irgrid_cnt ] < 36) { mikrobus_logWrite("/",_LOG_BYTE); } else { mikrobus_logWrite("*",_LOG_BYTE); } Delay_10ms(); } mikrobus_logWrite(" ",_LOG_LINE); Delay_ms(3000); }
The full application code, and ready to use projects can be found on our Libstock page.
Other MikroElektronika libraries used in the example:
- I2C
- UART
Additional Notes and Information
Depending on the development board you are using, you may need a 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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
MIKROSDK
The IR Grid Click Board™ is supported with mikroSDK - MikroElektronika 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.
IR Grid Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.
![banner Image](http://thedebugstore.com/cdn/shopifycloud/shopify/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif)