基于CAN总线的智能家居控制(毕业设计)

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

编号:毕业设计(论文)说明书课题:基于CAN总线的智能家居控制学院:电子工程与自动化学院专业:自动化学生姓名:学号:指导教师单位:姓名:职称:题目类型:理论研究实验研究工程设计工程技术研究软件开发2012年5月10日√摘要进入二十一世纪以来,借助计算机和互联网技术的发展,信息家电已经越来越多的出现在人们的生活之中,伴随着科学技术的进步,家居智能化正以前所未有的速度走进寻常百姓之家。以单片机为核心结合计算机构成的智能家居产品具有体积小、功能强、应用面广,使用灵活、价格便宜、工作可靠等优点。本文设计基于CAN总线的智能家居控制系统,研究其硬件电路设计、软件程序设计和CAN总线的智能家居领域的应用。该控制系统从结构上来划分,可以分为两个层次,分别为上位机监控和下位机各节点控制。上位机监控主要由监控计算机PC机和CAN-RS232总线协议转换器构成,下位机由单片机和CAN总线智能节点数据采集模块构成,完成对家居的环境状况进行实时监控。系统设计两路CAN总线节点,采用温度传感器DS18B20、湿度传感器DHT11、烟雾传感器MQ-2、BIS0001人体红外传感器,巡回检测室内温度湿度,火情盗情等环境信息。并通过CAN-RS232协议转换将数据发至PC机记录和监控,PC机可查询当前记录和历史记录,上位机和CAN节点分别设有报警功能,可以通过按键设定报警上限和下限。系统硬件包括主控芯片STC89C52RC,CAN总线通信模块,串行通信接口电路,烟雾浓度检测模块,人体移动红外检测模块,温湿度检测电路,液晶显示电路等。系统软件设计包括VB上位机监控程序,CAN-RS232总线协议转换程序,CAN总线智能节点通信程序,按键设定值程序,液晶显示程序等。关键词:智能家居;CAN总线;传感器;VisualBasicAbstractSincethebeginningofthe21stcentury,withthedevelopmentofcomputerandInternettechnology,informationapplianceshavebeenmoreandmoreinpeople'slife,alongwithadvancesinscienceandtechnology,theintelligenthomeisatanunprecedentedrateintothehomesofordinarypeopleathome.Smallsize,widerangeofapplications,theuseofflexible,cheap,reliableandadvantagesofmicrocontrollerasthecore,combinedwithcomputercomposedofsmarthomeproducts.ThedesignisbasedontheCANbussmarthomecontrolsystems,tostudythehardwarecircuitdesign,softwareprogramming,andCANbusapplicationinthefieldofsmarthome.Thecontrolsystemupfromastructuraldivisioncanbedividedintotwolevels,respectively,foreachnodeofthePCmonitoringandmachinecontrol.PCmonitoringofmonitoringcomputerPC,CAN-RS232busprotocolconverter,thenextcrewofdataacquisitionmoduleofthemicrocontrollerandtheCANbusintelligentnodetocompletethereal-timemonitoringofthestateoftheenvironmentofthehome.SystemdesignstwoCANbusnode,usingtemperaturesensorDS18B20,humiditysensorDHT11,smogsensorMQ-2,BIS0001infraredsensor,todetectcircuitlyindoortemperatureandhumidity,firePiratesofthesituationandotherenvironmentalinformation.RecordingandmonitoringofthedatasenttothePC,thePCmachinecanchecktherecordsandhistory,thehostcomputerandtheCANnodesareequippedwithanalarmfunction,alarmupperandlowerlimitscanbesetthroughthebuttonandtheCAN-RS232protocolconversion.ThesystemhardwareconsistsofthemasterchipSTC89C52RC,CANbuscommunicationmodule,serialcommunicationsinterfacecircuits,smokeconcentrationdetectionmodule,infrareddetectionmoduleofhumanmotion,temperatureandhumiditydetectioncircuit,LCDcircuits,etc..Systemsoftwaredesign,includingVBPCmonitoringprogram,theCAN-RS232busprotocolconversionprocess,theintelligentnodeoftheCANbuscommunicationprogrambuttontosetthevalueoftheprogram,LCDprogram.Keywords:SmartHome;theCANbus;sensor;VisualBasic目录引言.............................................................................................................................................................11课题研究内容................................................................................................................................21.1课题背景............................................................................................................................................21.2课题意义............................................................................................................................................22系统设计概述................................................................................................................................32.1设计任务............................................................................................................................................32.2系统设计原理...................................................................................................................................32.3系统设计方案...................................................................................................................................32.4系统可行性分析...............................................................................................................................43CAN总线概述.................................................................................................................................63.1CAN总线简介....................................................................................................................................63.2CAN总线帧类型................................................................................................................................63.2.1数据帧............................................................................................................................................63.2.2远程帧............................................................................................................................................73.2.3错误帧............................................................................................................................................83.2.4过载帧............................................................................................................................................83.3CAN报文过滤...................................................................................................

1 / 62
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功