资源描述:
《定时开关插座毕业论文.docx》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、定时开关插座毕业论文基于单片机的定时开关插座设计随着家用电器的越来越普及和人们生活节奏的加快,人们对电器的依赖性进-步提高,对电器的定时需求也进一步増大。定时开关插座可用于电饭煲、饮水机、电视机、电脑、电动车电池的充电、定吋开关电热毯等需要定吋供电的场合。定吋开关插座的使用能够做到节能、安全、方使等。本文介绍了一种基于AT89S52单片机的定时开关插座设计方案。该系统是通过AT89S52的定吋器0和定时器1实现时钟的24小时制或者100小时制的时钟走时,并通过液晶12232显示出来。继电器的通、断通过比较继电器控制变量niy的值来确定。定时时间的开始或者停止是通过每分钟比较一
2、次开始时间数组begin和结束数组end来确定,并在开始时对oiy进行加1操作,在结束吋对ray进行减1操作(niy的值不会出现负值);半niy为0吋继电器开关断开,非0吋接通。通过控制继电器的通断可以达到控制插座通断的H的。木文首先介绍定吋开关插座设计要实现的功能,接着阐述系统电路的设计及原理说明,包括设计方案选择、关键元器件介绍、电路设计说明(包括电源电路、键盘、单片机控制电路、液晶12232显示、继电器工作屯路)软件设计流程以及系统的测试。最后总结了定吋开关插座设计完成的任务,分析系统的不足并提出了系统的应用展望。关键词:定吋开关;继电器;AT89S52单片机;液晶12
3、232oAbstractWiththeincreasingpopularityofhomeappliancesandthePeoplelivingrhythmspeedingup,thedependenceofpeopleonelectricalappliancesfurthertoimprove,thedemandoftimingalsobecomefurtherincreasing.Sockettimerswitchcanbeusedintheoccasionswhereneedforregularsupplysuchasricecookers,waterdispense
4、r,TV,computer,electricvehiclebatterycharging,timerswitchelectricblankets.Theuseofsockettimerswitchcanbeenergysaving,safe,healthy,andconvenientandsoon.ThisarticlepresentsatimerswitchsocketdesignwhichisbasedontheAT89S52microcontroller.Thesystemisimplementedtheclock24-hourclockor100-hourtravel
5、timebyTimer0andTimer1ofAT89S52,anditisdisplayedthroughtheLCD12232.Relaylinks,brokenbycomparingthevalueoftherelaycontrolvariablestodeterminetheray.Itistobedeterminedthestartingorstoppingofregulartimebycomparedperminuteastarttimewithbeginandanendarraywithend,atthebeginningoftheraytoaddanopera
6、tion,attheendoftheminus1ontherayaction(ray?svaluedoesnotanegative);whenrayis0relayswitchoff,non-0connected.Offbycontrollingtherelaysocketcanbecontrolledon-offpurposes.Thispaperintroducesthefunctionwhatthetimerswitchsocketdesignshouldachievefirstofall,andthendescribesthecircuitdesignandprinc
7、iplesofthesystemdescription,includingdesignchoices,concerningcomponentdescription,circuitdesigndescription(includingthepowercircuit,keyboard,singlechipcontrolcircuit,LCD12232display,therelayoperatingcircuit),softwaredesignandtestingofthesystem.Finally,it