TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (351 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136641 times)
  2. FAT32 Library (69855 times)
  3. Network Ethernet Library (55898 times)
  4. USB Device Library (46236 times)
  5. Network WiFi Library (41868 times)
  6. FT800 Library (41094 times)
  7. GSM click (28948 times)
  8. PID Library (26403 times)
  9. mikroSDK (26321 times)
  10. microSD click (25330 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

IR Grid 2 click

Rating:

5

Author: MIKROE

Last Updated: 2018-10-22

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Optical

Downloaded: 2205 times

Not followed.

License: MIT license  

IR Grid 2 click is a thermal imaging sensor. It has an array of 768 very sensitive factory calibrated IR elements (pixels), arranged in 32 rows of 24 pixels.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "IR Grid 2 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "IR Grid 2 click" changes.

Do you want to report abuse regarding "IR Grid 2 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)

mikroSDK Library Blog

IR Grid 2 click

IR Grid 2 click

Native view of the IR Grid 2 click board.

View full image
IR Grid 2 click

IR Grid 2 click

Front and back view of the IR Grid 2 click board.

View full image

Library Description

The library contains all the necessary functions for successful work with IR Grid 2 click.

Key functions :

  • void irgrid2_init() - Functions for initialization chip
  • void irgrid2_getPixelTemperature(float *Ta, float *pixelTemp) - Functions for reads Ambient temperature and pixel temperature

Example description

The application is composed of three sections :

  • System Initialization - Initializes I2C module and USB UART for data logging
  • Application Initialization - Initializes driver init and IR Grid 2 module
  • Application Task - (code snippet) - Reads the temperature of all pixels and creates a pixel temperature matrix that logs on usbuart every 500ms
  • note : The sensor needs about 4 minutes for calibration
void applicationTask()
{
 irgrid2_getPixelTemperature(&Ta,&pixelTemp[0]);

 mikrobus_logWrite("Ambient temperature: ",_LOG_TEXT);
 FloatToStr(Ta,demoText);
 mikrobus_logWrite(demoText,_LOG_LINE);
 mikrobus_logWrite(" ", _LOG_LINE);
 mikrobus_logWrite("--- Pixel temperature matrix 32x24 ---", _LOG_LINE);

 for ( cnt = 0 ; cnt < 768 ; cnt++)
 {
 FloatToStr(pixelTemp[cnt],demoText);
 demoText[ 5 ] = 0 ;
 mikrobus_logWrite(demoText, _LOG_TEXT);
 mikrobus_logWrite("|", _LOG_TEXT);
 Delay_1ms();
 if(((cnt % 32) == 0) && (cnt > 0))
 {
 mikrobus_logWrite(" ", _LOG_LINE);
 }
 }
 mikrobus_logWrite(" ", _LOG_LINE);
 Delay_ms( 500 );
}


Other mikroE Libraries used in the example:

  • I2C

Additional notes and information

Depending on the development board you are using, you may need USB UART clickUSB 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.

ALSO FROM THIS AUTHOR

6DOF IMU 15 Click

5

6DOF IMU 15 Click is a compact add-on board that contains a 6-axis MEMS motion tracking device combining a 3-axis gyroscope and a 3-axis accelerometer. This board features the ASM330LHH, automotive 6-axis MEMS motion tracking device, from STMicroelectronics.

[Learn More]

Port Demo

0

The application demonstrates Port SDK functionality.

[Learn More]

STSPIN220 click

0

STSPIN220 click is a stepper motor driver with the PWM current control and selectable microstepping up to 256 microsteps. It is based on the STSPIN220, a low voltage stepper motor driver from STSPIN2 series. It is optimized for battery-powered, low voltage motor driving applications, featuring the lowest standby current available on the market (max 80 nA). The STSPIN220 is a high-efficiency motor driver, featuring low ON resistance MOSFETs as the output stage, in a small 3x3mm QFN package. Its output stage implements the PWM current control with fixed OFF time, along with a full set of protection features. The device can be used with the step motor voltage ranging from 1.8V to 10V, and current up to 1.3A per bridge.

[Learn More]