• 大小: 727KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-16
  • 语言: 其他
  • 标签: MLX90614  

资源简介

基于51单片机的非接触式红外温度传感器测温程序

资源截图

代码片段和文件信息

//Calculate Temperature based on hex data
#include “CalTem.h“
//---------------------------------------
//Name: CALTEMP
//Function: Calculate Temperature
//Parameters: unsigned long int TEMP(Data read from MLX90614)
//Return:     unsigned int mah 
//            mah is the head address of mah[5]
//Comments: The equation for conversion Hex code to Temperature data is T=(Data)*0.02-273.15

//---------------------------------------
float CALTEMP(unsigned  int TEMP)
{
unsigned int T;
    float temperater;
T = TEMP*2;

if(T>=27315)
{
        temperater = T - 27315;
}
    else
    {
  temperater =27315 - T;
  temperater = - temperater;
    }

temperater = temperater/100;

return temperater;
    
}

/*
void CALTEMP(unsigned long int TEMP unsigned int *mah )
{
      unsigned long int T;
  unsigned int ab;
      unsigned int A4A5A6A7A8;
      T=TEMP*2;
    
      if(T>=27315)
            {
               T=T-27315;
               a=T/100;
               b=T-a*100;

               if(a>=100)
                   {
                      A4=a/100;
                      a=a%100;
                      A5=a/10;
                      a=a%10;
                      A6=a;
                    }
               else if(a>=10)
                    {
                      A4=0;
                      A5=a/10;
                      a=a%10;
                      A6=a;
                    }

               else 

                    {
                      A4=0;
                      A5=0;
                      A6=a;
                    }
               if(b>=10)
                    {
                      A7=b/10;
                      b=b%10;
                      A8=b;
                    }
                else
                    {
                      A7=0;
                      A8=b;
                    }
             }

         else
               {
                  T=27315-T;
                  a=T/100;
                  b=T-a*100;
                  A4=9;

                  if(a>=10)
                      {
                         A5=a/10;
                         a=a%10;
                         A6=a;
                      }
                  else 
                      {
                         A5=0;
                         A6=a;
                      }
                  if(b>=10)
                      {
                         A7=b/10;
                         b=b%10;
                         A8=b;
                      }
                  else
                      {
                         A7=0;
                         A8=b;
                      }
                }
                *(mah + 4)=A4;
 *(mah + 3)=A5;
 *(mah + 2)=A6;
 *(mah + 1)=A7;
*mah=A8;

}
*/

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2849  2014-06-25 10:24  STC12C5A60S2 MLX90614 源程序\C Files\CalTem.c

     文件         52  2014-06-25 09:54  STC12C5A60S2 MLX90614 源程序\C Files\CalTem.H

     文件       1046  2010-04-30 09:01  STC12C5A60S2 MLX90614 源程序\C Files\dec2hex.c

     文件         39  2010-02-11 13:59  STC12C5A60S2 MLX90614 源程序\C Files\dec2hex.H

     文件        666  2014-11-27 13:46  STC12C5A60S2 MLX90614 源程序\C Files\Delay.c

     文件         67  2014-06-25 10:06  STC12C5A60S2 MLX90614 源程序\C Files\Delay.H

     文件         61  2010-02-09 11:58  STC12C5A60S2 MLX90614 源程序\C Files\digitalLED.H

     文件       6189  2014-12-03 15:42  STC12C5A60S2 MLX90614 源程序\C Files\main.c

     文件       9064  2014-05-07 13:38  STC12C5A60S2 MLX90614 源程序\C Files\reg51.h

     文件       5182  2014-11-28 13:25  STC12C5A60S2 MLX90614 源程序\C Files\SMBus_CM.c

     文件        630  2014-11-28 13:36  STC12C5A60S2 MLX90614 源程序\C Files\SMBus_CM.H

     文件       6577  2014-12-03 15:41  STC12C5A60S2 MLX90614 源程序\C Files\SMBus_OP.c

     文件        284  2014-12-03 15:41  STC12C5A60S2 MLX90614 源程序\C Files\SMBus_OP.H

     文件       5762  2014-12-03 15:42  STC12C5A60S2 MLX90614 源程序\CalTem.lst

     文件       1464  2014-12-03 15:42  STC12C5A60S2 MLX90614 源程序\CalTem.obj

     文件       3051  2014-12-03 15:42  STC12C5A60S2 MLX90614 源程序\dec2hex.lst

     文件       3602  2014-12-03 15:42  STC12C5A60S2 MLX90614 源程序\dec2hex.obj

     文件       1955  2014-12-03 15:42  STC12C5A60S2 MLX90614 源程序\Delay.lst

     文件       2027  2014-12-03 15:42  STC12C5A60S2 MLX90614 源程序\Delay.obj

     文件       8128  2014-10-04 15:29  STC12C5A60S2 MLX90614 源程序\digitalLED.lst

     文件       3213  2014-10-04 15:29  STC12C5A60S2 MLX90614 源程序\digitalLED.obj

     文件       2971  2014-10-04 15:27  STC12C5A60S2 MLX90614 源程序\Emissivity.lst

     文件      13675  2014-12-03 15:42  STC12C5A60S2 MLX90614 源程序\main.lst

     文件      15367  2014-12-03 15:42  STC12C5A60S2 MLX90614 源程序\main.obj

     文件       4096  2014-11-27 10:27  STC12C5A60S2 MLX90614 源程序\mlx.IAB

     文件        368  2014-11-27 10:27  STC12C5A60S2 MLX90614 源程序\mlx.IAD

     文件       8192  2014-11-27 13:44  STC12C5A60S2 MLX90614 源程序\mlx.IMB

     文件        408  2014-11-27 13:44  STC12C5A60S2 MLX90614 源程序\mlx.IMD

     文件         52  2014-12-03 15:42  STC12C5A60S2 MLX90614 源程序\mlx.PFI

     文件        776  2014-12-03 15:42  STC12C5A60S2 MLX90614 源程序\mlx.PO

............此处省略34个文件信息

评论

共有 条评论