当前位置:网站首页>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
边栏推荐
- Simple use of future in Scala
- Bili Bili common API
- 进程、线程和协程的区别
- Review the cloud computing application scenarios you didn't expect (Part 1)
- 解决RabbitMQ消息丢失与重复消费问题
- Wechat nickname Emoji expression, special expression causes the list not to be displayed, export excel error report and other problems solved!
- How can a technician take over a complex system?
- 京淘项目知识点总结
- November 07, 2020: given an array of positive integers, the sum of two numbers equals N and must exist. How to find the two numbers with the smallest multiplication?
- C expression tree (1)
猜你喜欢
M-end software product design considerations - Zhihu
SQL Server 2008R2 18456错误解决方案
QT hybrid Python development technology: Python introduction, hybrid process and demo
Review the cloud computing application scenarios you didn't expect (Part 1)
UCGUI简介
What? Your computer is too bad? You can handle these moves! (win10 optimization tutorial)
Qt混合Python开发技术:Python介绍、混合过程和Demo
Daily challenges of search engines_ 4_ External heterogeneous resources - Zhihu
i5 1135g7和i5 1035g1参数对比区别大吗? 哪个好
China Telecom announces 5g SA commercial scale in 2020
随机推荐
1.深入Istio:Sidecar自动注入如何实现的?
Bili Bili common API
leetcode之判断路径是否相交
Interface
VC6兼容性及打开文件崩溃问题解决
技术人员该如何接手一个复杂的系统?
你的主机中的软件中止了一个已建立的连接。解决方法
Goland 编写含有template的程序
阅读心得:FGAGT: Flow-Guided Adaptive Graph Tracking
wanxin金融
Six key points of data science interview
微信昵称emoji表情,特殊表情导致列表不显示,导出EXCEL报错等问题解决!
Do you really understand the high concurrency?
M-end software product design considerations - Zhihu
November 07, 2020: given an array of positive integers, the sum of two numbers equals N and must exist. How to find the two numbers with the smallest multiplication?
【总结系列】互联网服务端技术体系:高性能之数据库索引
Unparseable date: 'Mon Aug 15 11:24:39 CST 2016',时间格式转换异常
Application of bidirectional LSTM in outlier detection of time series
What? Your computer is too bad? You can handle these moves! (win10 optimization tutorial)
GET,POST,PUT,DELETE,OPTIONS用法与说明