- 2
- 0
- 约3.58万字
- 约 50页
- 2016-12-19 发布于辽宁
- 举报
摘 要
随着家用电器的越来越普及和人们生活节奏的加快,人们对电器的依赖性进一步提高,对电器的定时需求也进一步增大。定时开关插座可用于电饭煲、饮水机、电视机、电脑、电动车电池的充电、定时开关电热毯等需要定时供电的场合。定时开关插座的使用能够做到节能、安全、方便等。
本文介绍了一种基于AT89S52单片机的定时开关插座设计方案。该系统是通过AT89S52的定时器0和定时器1实现时钟的24小时制或者100小时制的时钟走时,并通过液晶12232显示出来。继电器的通、断通过比较继电器控制变量ray的值来确定。定时时间的开始或者停止是通过每分钟比较一次开始时间数组begin和结束数组end来确定,并在开始时对ray进行加1操作,在结束时对ray进行减1操作(ray的值不会出现负值);当ray为0时继电器开关断开,非0时接通。通过控制继电器的通断可以达到控制插座通断的目的。
本文首先介绍定时开关插座设计要实现的功能,接着阐述系统电路的设计及原理说明,包括设计方案选择、关键元器件介绍、电路设计说明(包括电源电路、键盘、单片机控制电路、液晶12232显示、继电器工作电路)软件设计流程以及系统的测试。最后总结了定时开关插座设计完成的任务,分析系统的不足并提出了系统的应用展望。
关键词:定时开关;继电器;AT89S52单片机;液晶12232。
Abstract
With the increasing popularity of home appliances and the People living rhythm speeding up, the dependence of people on electrical appliances further to improve, the demand of timing also become further increasing. Socket timer switch can be used in the occasions where need for regular supply such as rice cookers, water dispenser, TV, computer, electric vehicle battery charging, timer switch electric blankets. The use of socket timer switch can be energy saving, safe, healthy, and convenient and so on.
This article presents a timer switch socket design which is based on the AT89S52 microcontroller. The system is implemented the clock 24-hour clock or 100-hour travel time by Timer 0 and Timer 1 of AT89S52, and it is displayed through the LCD 12232. Relay links, broken by comparing the value of the relay control variables to determine the ray. It is to be determined the starting or stopping of regular time by compared per minute a start time with begin and an end array with end ,at the beginning of the ray to add an operation, at the end of the minus 1 on the ray action (ray’s value does not a negative); when ray is 0 relay switch off, non-0 connected. Off by controlling the relay socket can be controlled on-off purposes.
This paper introduces the function what the timer switch socket design should achieve first of all, and then describes the circuit design and principles of t
原创力文档

文档评论(0)