摘要
本系统以单片机89C52为核心,以键盘为输入系统,其中键盘系统为矩阵式按键系统。按键选定执行要测试的旗杆高度参数,按开始键执行升旗程序,并将旗帜高度和升旗所用时间显示在LCD液晶显示屏上。测试的参数有3个:h(旗子的高度),t(升旗所用时间)以及v(步进电机的转速),通过秒表和米尺的方式来实现时间长短、旗杆高度及速度3个参数的获取。要求旗杆高度为1.8m、升降旗时间均各为43s,显示高度与实际高度之间的误差不大于2cm。
The system design is based on 89C52 ,and the keyboard is input system, button system is matrix keyboard. Button is selected to test the implementation of the flagpole height parameters, the flag--raising process by the beginning of the implementation of the key,the flag high and the time of the rise as shown in the LCD screen. The test has three parameters, there are h (the height of the flag) and t (time spent flag) and v (stepper motor). And the use of direct measurement method of measuring time by stopwatch and the ruler realize length, height and speed of three flagpoles parameter measurements. The flagpole height was 1.8 m, the flag raising lasts 43 seconds,and showed a high degree of error between the actual height of not more than 2 cm.
出处
《现代电子技术》
2007年第11期115-119,共5页
Modern Electronics Technique
基金
泰山学院科研资助立项项目(Y05-2-11)