当前位置:网站首页>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
边栏推荐
猜你喜欢

Littlest jupyterhub| 02 using nbgitpuller to distribute shared files

VC6 compatibility and open file crash resolution

How can a technician take over a complex system?

ASP.NET A complete solution based on exception handling in MVC

wanxin金融

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?

Application of bidirectional LSTM in outlier detection of time series

Blazor 准备好为企业服务了吗?

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)

iOS上传App Store报错:this action cannot be completed -22421 解决方案
随机推荐
Experience the latest version of erofs on Ubuntu
Littlest jupyterhub| 02 using nbgitpuller to distribute shared files
What? Your computer is too bad? You can handle these moves! (win10 optimization tutorial)
Unparseable date: 'Mon Aug 15 11:24:39 CST 2016',时间格式转换异常
What details does C + + improve on the basis of C
Ulab 1.0.0 release
QT hybrid Python development technology: Python introduction, hybrid process and demo
C/C++编程笔记:C语言相比其他编程语言,有什么不一样的优势?
搜索引擎的日常挑战_4_外部异构资源 - 知乎
c# 表达式树(一)
Review the cloud computing application scenarios you didn't expect (Part 1)
Face recognition: attack types and anti spoofing techniques
UCGUI简介
架构师(2020年11月)
2020天翼智能生态博览会中国电信宣布5G SA正式规模商用
Privacy violation and null dereference of fortify vulnerability
Windows subsystem Ubuntu installation
wanxin金融
进程、线程和协程的区别
Littlest JupyterHub| 02 使用nbgitpuller分发共享文件