基于单片机温湿度PT100热敏传感器检测仿真-毕设课设资料

【资源下载】下载地址如下1527:
https://docs.qq.com/doc/DTlRSd01BZXNpRUxl

可以检测温湿度,温度检测分别用PT100热敏温度传感器和ds18b20作为温度检测传感器。

#include<reg51.h>
#include <intrins.h>
#include <math.h>    //Keil library 
#include <stdio.h>	 //Keil library
#define unchar unsigned char 
#define unint unsigned int
#define port P1			      //LCD12864的8位数据口


typedef union		   //定义共同类型
{ unsigned int i;	   //i表示测量得到的温湿度数据(int 形式保存的数据)
  unsigned char c;
 float f;			   //f表示测量得到的温湿度数据(float 形式保存的数据)
} value;

/******************************************12864函数声明******************************************/
void delay_12864();				   //延时函数
void check_busy();				   //检查是否“忙”
void write_cmd(unchar cmd);		   //给LCD12864写命令。
void set_page(unchar page);		   //设置显示的“页”。
void set_line(unchar 
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值