当前位置:网站首页>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
边栏推荐
- 双向LSTM在时间序列异常值检测的应用
- Insight -- the application of sanet in arbitrary style transfer
- 麦格理银行借助DataStax Enterprise (DSE) 驱动数字化转型
- Experience the latest version of erofs on Ubuntu
- [original] about the abnormal situation of high version poi autosizecolumn method
- scala 中 Future 的简单使用
- Adobe Prelude / PL 2020 software installation package (with installation tutorial)
- 洞察——风格注意力网络(SANet)在任意风格迁移中的应用
- wanxin金融
- 京淘项目知识点总结
猜你喜欢
成功解决An error ocurred while starting the kernel
C language I blog assignment 03
These core technology of object-oriented, after you master it, you can have a good interview
The software in your host has terminated an established connection. resolvent
Mouse small hand
Mate 40 series launch with Huawei sports health service to bring healthy digital life
双向LSTM在时间序列异常值检测的应用
5g + Ar out of the circle, China Mobile Migu becomes the whole process strategic partner of the 33rd China Film Golden Rooster Award
Unparseable date: 'mon Aug 15 11:24:39 CST 2016', time format conversion exception
Insight -- the application of sanet in arbitrary style transfer
随机推荐
ulab 1.0.0发布
What details does C + + improve on the basis of C
进程、线程和协程的区别
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)
GoLand writes a program with template
PCR and PTS calculation and inverse operation in TS stream
Insight -- the application of sanet in arbitrary style transfer
Windows下子系统Ubuntu安装
鼠标变小手
Swiper window width changes, page width height changes lead to automatic sliding solution
Judging whether paths intersect or not by leetcode
2020-11-07:已知一个正整数数组,两个数相加等于N并且一定存在,如何找到两个数相乘最小的两个数?
来自不同行业领域的50多个对象检测数据集
Cloud Alibabab笔记问世,全网详解仅此一份手慢无
The most detailed usage guide for perconaxtradbcluster8.0
16. File transfer protocol, vsftpd service
IOS learning note 2 [problems and solutions encountered during the installation and use of cocopods] [update 20160725]
PerconaXtraDBCluster8.0 最详尽用法指南
sed之查找替换
高并发,你真的理解透彻了吗?