自动控制升降旗系.doc
文本预览下载声明
自动控制升降旗系统
?
摘 要
本系统是由单片机(AT89S52)、步进电机、ISD2560语音芯片、时钟芯片PCF8563、显示电路、遥控电路、按键等基本的部分组成的控制国旗升降系统。采用由单片机控制的步进电机带动国旗升降,实现对国旗升降的自动控制。采用接近开关FR12-4DN,防止旗帜在最高点或最低点误动作,从而实现了双重保险的作用。使用抱闸装置保证步进电机在不通电的时候静止不动。本系统具有以下特点:
1、可手动、可遥控。即可以通过按键来控制旗帜的匀速升降,也可以通过遥控器来实现远距离控制;
2、可以按照用户的要求上升或下降到指定位置,并可在任意位置停止;
3、国旗在上升过程中能准确与国歌乐曲同步;
4、能实现半旗的升降功能;
5、具有断电保护功能;
在实现以上功能的过程中,升降旗时间在30~120秒内可调,通过改变步进电机的转动速度来改变旗帜上升或下降的速度,并通过LED显示上升或下降时间和旗帜所在高度。旗帜达到顶端后,由鼓风机提供风源使旗帜始终处于飘扬的状态。
测试表明,该系统无论在功能上、性能上都完全达到了题目的要求,(包括发挥部分的设计要求),并设计了其他创新功能,且误差较小,操作方便,经济实用,美观大方。
关键字:单片机 步进电机 遥控 接近开关 抱闸装置
ABSTRACT
?
The national movements control system is made up of MCU (AT89S52), stepper motor, ISD2560 voice chip, clock chip PCF8563 and display circuits, remote control circuit, keyboards and other basic components. With the stepper which is controlled by MCU, to driver the flag rising and lowering, thus to achieve the flag automatic controlling. With automatic approach device FR12-4DN to prevent the flag malfunction at the highest or lowest point, thus realizing the dual role. Brake device used in stepper motor to ensure the static electricity. The system has the following features:?
First .Can be manually operated, can be remote-controlled. That is, through the buttons to control movements can be achieved, and through remote control device can also achieved.
Second. in accordance with the requirements of the user to the designated location and may increase or decrease in any position to stop;??
Third. Arrive the appoint position according to customers require, and stop at the any position.
Forth. Achieve the half-mast to functional movements;?
Fifth. Power outages protective function;??
In the process of achieving the above functions, 30-120 seconds for the flag rising is adjustable, by changing the rotational speed of the step motor, the flag raising speed can be changed, and the time tallness will be showed on the LED. After the flag reached the top, the wind provided by the blower will make the flag in fluttering sta
显示全部