摘要
为使帆板转角能够随风速变化而改变,且快速达到设定角度并稳定下来的要求,设计基于AT89S52的帆板控制系统。系统以AT89S52单片机为控制核心,通过键盘设定帆板角度,LED12864实时显示角度。单片机输出脉宽调制波(pulse-width modulation,PWM)控制风扇的风速,通过倾角传感器WDD35D4测量帆板的倾角反馈至单片机,采用PID控制经典算法,实现对帆板角度精确控制,在达到设定范围时进行声光报警提示。测试结果表明:在间距一定时,5 s内,帆板角度达到设定值,且最终绝对值误差不超过5。
For controlling the sailboard angle θ to change with the wind speed changing, and quickly reach the set angle and keep stability, design based on AT89S52 sailboard control system. The system takes AT89S52 MCU as the control core, use the keyboard to set the panel angle, and adopts LED12864 to display the angle in real-time. The MCU outputs pulse width modulation (PWM) wave to control the fan speed. Use inclination angle sensor WDD35D4 to measure sailboard inclination angle and feedback to microcontroller. Use PID control algorithm to realize precise control of sailboard angle. On reaching the set range, system will alarm by sound and light. The test results show that, in a certain distance, the sailboard angle will reach the set value less than 5 seconds, and the absolute error is less than 5°.
出处
《兵工自动化》
2013年第2期88-90,96,共4页
Ordnance Industry Automation