编号:60
基于51单片机的大气压强检测仪(BMP180)
功能描述:
本设计由51单片机+BMP180大气压强检测模块+1602液晶显示模块组成。
1、主控制器是51单片机
2、利用BMP180传感器读取大气压强、温度、海拔高度等信息
3、1602液晶显示大气压强、温度、海拔高度等信息
视频演示链接:
<iframe allowfullscreen="true" data-mediaembed="bilibili" frameborder="0" id="YKEoQEI4-1729236687601" src="https://player.bilibili.com/player.html?aid=113326134657847"></iframe>60、基于51单片机的大气压强检测仪(BMP180)
仿真图:
程序源码:
#include "reg52.h"
#include "lcd1602.h"
#include "delay.h"
#include "bmp180.h"
#include "math.h"
#include "stdio.h"
#include "string.h"
void main(void)
{
unsigned char buf[16];
Lcd1602_Init(); //LCD1602液晶初始化
BMP180_Init(); //BMP180初始化操作
while(1)
{
BMP180_Convert_UncompensatedToTrue();
sprintf((char*)buf,"Press:%7.3fkpa",True_Press/1000);
Lcd1602_String(0,0,(unsigned char*)buf);
sprintf((char*)buf,"T:%.1f%cC",True_Temp,0xdf);
Lcd1602_String(0,1,(unsigned char*)buf);
delay_ms(100);
sprintf((char*)buf,"Al:%.0fm",True_Altitude);
Lcd1602_String(9,1,(unsigned char*)buf);
delay_ms(100);
}
}
软件免费下载地址:
1、Proteus仿真软件
文件内容:Proteus7.8安装包、Proteus8.6安装包、Proteus.8.10安装包、Proteus Professional 8.11 SP0安装包
链接:https://pan.baidu.com/s/11LNUZ9BJXWvXf1C4dPc3_w
提取码:2756
2、KEIL4 C51软件安装包
链接:https://pan.baidu.com/s/1CTZBqDsPsyIbjCIjI_birA
提取码:sy2a
文件下载:
链接: https://pan.baidu.com/s/1aBgB1ggtPwY_NG4vvBKTTg?pwd=5s85
提取码: 5s85
标签:检测仪,BMP180,51,char,安装包,include,buf From: https://blog.csdn.net/bxy415655001/article/details/143054892