Infrared_thermometer_(SKU_SEN0093) - jimaobian/DFRobotWiki GitHub Wiki

Introduction

The TNm infrared thermometer module is a long distance thermometer specially designed for a high sensitivity, high accuracy,low noise and low power consumption. MEMS thermopile detector and a high accurate ambient temperature compensation technique are used for the TNm infrared thermometer module.

Specifications

  • Operating Voltage: 3V or 5V
  • Measurement Range: -33220C / -27428F
  • Operating Range: -1050C / 14122F
  • Accuracy Tobj=15~35C, Tamb=25C : +/-0.6C
  • Full Range Accuracy #AC: +/-2%, 2C
  • Resolution: 1/16C=0.0625 (full range)
  • Size: 12x13.7x35mm
  • Weight: 9g

Documents

diagram.png size diagram User Manual Sample code

Connection Diagram

Connection Diagram for Infrared Thermometer

Sample Code


/*

www.DFRobot.com

Author: Lauren
Version:0.1

*/


////////////////Arduino例子程序///////////////////////////////////////
#define  ClockPin  6  // clock in
#define  DataPin   7  //data in
#define  TestPin   8 //driver pin  set pin low to start deliver data

void setup() {
  Serial.begin(9600);
  pinMode(DataPin,INPUT);
  pinMode(ClockPin,INPUT);
  pinMode(TestPin,OUTPUT);
  digitalWrite(TestPin, HIGH);
  delay(100);
}

void data_read(int *p)
{
  int i,j,PinState,tempData;

  digitalWrite(TestPin, LOW);
  for(i=0;i<5;i++)
  {
    for(j=0;j<8;j++)
    {
      do{
        PinState = digitalRead(ClockPin);
      }while(PinState);
      delayMicroseconds(100);
      PinState = digitalRead(DataPin);
      if(1 == PinState)
         tempData = (tempData<<1 & 0xfe)+1;
      else
         tempData = (tempData<<1 & 0xfe);
       do{
        PinState = digitalRead(ClockPin);
      }while(PinState != 1);
    }
    *p++ = tempData;
  }
  digitalWrite(TestPin, HIGH);
}

void loop()
{
  int data_buf[5] = {0};
  int tempData = 0;
  while(1)
  {
  data_read(data_buf);
  tempData = data_buf[1]*256 + data_buf[2];
  float realTemp = (float)tempData/16-273.15;
  Serial.print("Temp[C]=");
  Serial.println(realTemp);
  delay(500);
  }
}

image:nextredirectltr.pngGo shopping infrared thermometer (sku:sen0093) category: Product Manual category: SEN Series category: Sensors category:source category:Diagram