Grid-EYE Click Board
Grid-EYE Click Board
The Grid-EYE Click Board™ is an 8x8 thermal array sensor-detector that carries the AMG8853 infrared array sensor from Panasonic.
The Click Board™ is designed to run on either a 3.3V or 5V power supply. It communicates with the target MCU over the I2C interface.
Use the Grid-EYE Click Board™ to detect absolute surface temperature without any contact. Or use it to detect the movement of people and objects.
Software Support
Code examples for the Grid-EYE Click Board™, written for MikroElektronika hardware and compilers are available on Libstock.
CODE SNIPPET
This code converts the grid array sensor data to temperature [in C] and fills the grid array drawn on the TFT display by the appropriate color, depending on the temperature detected.
01 void main() { 02 // Initialize pins as digital I/O 03 AD1PCFG = 0xFFFF; 04 JTAGEN_bit = 0; 05 06 // Initialize I2C2 module 07 I2C2_Init(100000); 08 Delay_ms(100); 09 10 // Draw screen 11 DrawScreen(); 12 13 // variable declaration 14 x_start = 80; 15 element_dimension = 20; 16 j = 0; 17 18 // Set AMG88 sensor registers 19 GridEye_WriteByte(0x00,0x00); // Normal mode 20 GridEye_WriteByte(0x01,0x30); // Flag reset 21 GridEye_WriteByte(0x02,0x00); // Frame mode 10FPS 22 Delay_ms(100); // small delay 23 24 GridEye_WriteByte(0x08,0x30); // INTHL 25 GridEye_WriteByte(0x09,0x00); // INTHH 26 27 GridEye_WriteByte(0x0A,0x15); // INTLL 28 GridEye_WriteByte(0x0B,0x00); // INTLH 29 30 GridEye_WriteByte(0x0C,0x20); // IHYSL 31 GridEye_WriteByte(0x0D,0x00); // IHYSH 32 Delay_ms(100); // small delay 33 34 // Temperature register value 35 register_address = 0x80; 36 37 while(1) { 38 // Reading grid temperature 39 for(i = 0; i < 64; i++) { 40 // multiply the values with 0.25 to get temperature in [C] 41 gridArray[i] = (float)GridEye_ReadWord(register_address) * 0.25L; 42 // increment register address by 2 43 register_address = register_address + 2; 44 } 45 46 // draw grid 47 for(i = 0; i < 64; i++) { 48 // set row position 49 Set_Row_Position(); 50 51 // set color 52 color = Set_Color(); 53 54 // set grid element number 55 j++; 56 57 // fill grid element with color 58 TFT_Set_Brush(1, 0, 1, LEFT_TO_RIGHT, color, color); 59 60 // draw grid element 61 TFT_Rectangle(x_start + (element_dimension * (j - 1)), y_start , x_start + (element_dimension * j), y_end); 62 63 // if more than 8 elements in the row, reset counter 64 if (j >= 8) { 65 j = 0; 66 } 67 } 68 } 69 }
Grid-EYE Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.