Maksym Buryak
Published © MIT

Object detection with Sparkfun Grid-EYE Infrared Array

Detecting objects/people based on their temperature difference

BeginnerFull instructions provided2 hours440
Object detection with Sparkfun Grid-EYE Infrared Array

Things used in this project

Story

Read more

Schematics

Diagram

Code

Arduino Sketch

Arduino
Upload this sketch to your Arduino board
  #include <SparkFun_GridEYE_Arduino_Library.h>
  #include <Wire.h>
  
  GridEYE grideye;
  
  unsigned short crv[65];
  #define HEADSAM 0xFAFB
  
  #define CRV_HEAD crv[0]
  byte* buff;
  
  void setup() {
    CRV_HEAD = HEADSAM;
    buff = (byte*) crv;
    Wire.begin();
    grideye.begin();
    Serial.begin(115200);
  }
  
  void loop() {
    // loop through all 64 pixels on the device
    for(int i = 0; i < 64; i++){
      crv[i+1] = grideye.getPixelTemperature(i);
    }
    Serial.write(buff, 65*2);
    delay(25);
  }

Power-KI Package

Plain text
No preview (download only).

SparkFun GridEYE Arduino Library

Credits

Maksym Buryak
3 projects • 1 follower

Comments