当前位置:网站首页>413【毕设课设】基于51单片机无线zigbee无线智能家居光照温湿度传输监测系统
413【毕设课设】基于51单片机无线zigbee无线智能家居光照温湿度传输监测系统
2020-11-08 08:54:00 【osc_kf7nv2km】
【资源下载】下载地址如下:
https://docs.qq.com/doc/DTlRSd01BZXNpRUxl
51单片机无线zigbee智能家居光照温湿度主从机137
本系统由主机和从机组成。
主机由ST89C52单片机、BH1750光照模块、DHT11温湿度、ZIGBEE模块及电源组成。
从机由ST89C52单片机、LCD1602液晶显示、按键、ZIGBEE模块及电源组成。
主机和从机之间通过ZIGBEE模块实现数据通讯。
1、主机上的温湿度传感器和光照传感器实时检测温湿度和光照信息,
2、然后通过ZIGBEE模块上传到从机,
2、从机接收到上报的数据,在LCD1602液晶实时显示:温湿度和光照强度。
3、从机板上有按键,可以通过按键控制主机板上的灯开关。
//主机发送给从机
*T23R34L00665#
从机发送给主机
**//打开灯
##//关闭灯
#include<reg52.h> //包含头文件,一般情况不需要改动,头文件包含特殊功能寄存器的定义
#include<stdio.h>
#include "1602.h"
#include "delay.h"
sbit key = P1^0;//按键接口
char dis0[16]; //打印数组初始化
char dis1[16]; //打印数组初始化
unsigned long time_20ms=0xaaaaaaaa; //定时器计数
bit disFlag = 0 ;//定时更新显示
float valLigh; //光照值
unsigned char firstin =0; //首次接收到标志
unsigned char tab[20]; //串口数据暂存
unsigned char Count=0; //串口接收计数
unsigned char uartbusy =0; //串口判忙
unsigned char temp ; //温度
unsigned char mhu ; // 湿度
bit rekey =0;//防止重复按下
unsigned char val = 0;//发送数据标志值
void Init_Timer0(void); //函数声明
void UART_Init(void);
void uartSendByte(unsigned char dat);
void uartSendStr(unsigned char *s,unsigned char length);
版权声明
本文为[osc_kf7nv2km]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/4320183/blog/4707901
边栏推荐
- More than 50 object detection datasets from different industries
- 成功解决An error ocurred while starting the kernel
- 模板链表类学习
- ulab 1.0.0发布
- M 端软件产品设计思虑札记 - 知乎
- Game mathematical derivation AC code (high precision and low precision multiplication and division comparison) + 60 code (long long) + 20 point code (Full Permutation + deep search DFS)
- VC6 compatibility and open file crash resolution
- 分布式共识机制
- SQL Server 2008R2 18456错误解决方案
- NOIP 2012 提高组 复赛 第一天 第二题 国王游戏 game 数学推导 AC代码(高精度 低精度 乘 除 比较)+60代码(long long)+20分代码(全排列+深搜dfs)
猜你喜欢
Mouse small hand
蓝牙2.4G产品日本MIC认证的测试要求
swiper 窗口宽度变化,页面宽度高度变化 导致自动滑动 解决方案
【原创】关于高版本poi autoSizeColumn方法异常的情况
架构师(2020年11月)
C / C + + Programming Notes: what are the advantages of C compared with other programming languages?
M-end software product design considerations - Zhihu
Qt混合Python开发技术:Python介绍、混合过程和Demo
Ulab 1.0.0 release
Learn Scala if Else statement
随机推荐
Littlest jupyterhub| 02 using nbgitpuller to distribute shared files
Learn Scala if Else statement
GET,POST,PUT,DELETE,OPTIONS用法与说明
QT hybrid Python development technology: Python introduction, hybrid process and demo
Judging whether paths intersect or not by leetcode
Cloud alibabab notes come out, the whole network detailed explanation only this one hand is slow
Macquarie Bank drives digital transformation with datastex enterprise (DSE)
Mate 40 series launch with Huawei sports health service to bring healthy digital life
An error occurred while starting the kernel was successfully resolved
Oschina plays on Sunday - before that, I always thought I was a
ulab 1.0.0发布
【总结系列】互联网服务端技术体系:高性能之数据库索引
The most detailed usage guide for perconaxtradbcluster8.0
Goland 编写含有template的程序
Template linked list learning
Is there a big difference between i5 1135g7 and i51035g1? Which is better?
C / C + + Programming Notes: what are the advantages of C compared with other programming languages?
Qt混合Python开发技术:Python介绍、混合过程和Demo
双向LSTM在时间序列异常值检测的应用
Distributed consensus mechanism