兵工自动化
兵工自動化
병공자동화
ORDNANCE INDUSTRY AUTOMATION
2013年
2期
88-90
,共3页
AT89S52%角度控制%WDD35D4%PWM调速%PID算法
AT89S52%角度控製%WDD35D4%PWM調速%PID算法
AT89S52%각도공제%WDD35D4%PWM조속%PID산법
AT89S52%angle control%WDD35D4%PWM debugging velocity%PID algorithm
为使帆板转角θ能够随风速变化而改变,且快速达到设定角度并稳定下来的要求,设计基于 AT89S52的帆板控制系统.系统以 AT89S52单片机为控制核心,通过键盘设定帆板角度,LED12864实时显示角度.单片机输出脉宽调制波(pulse-width modulation,PWM)控制风扇的风速,通过倾角传感器WDD35D4测量帆板的倾角反馈至单片机,采用PID控制经典算法,实现对帆板角度精确控制,在达到设定范围时进行声光报警提示.测试结果表明:在间距一定时,5 s内,帆板角度达到设定值,且最终绝对值误差不超过5°.
為使帆闆轉角θ能夠隨風速變化而改變,且快速達到設定角度併穩定下來的要求,設計基于 AT89S52的帆闆控製繫統.繫統以 AT89S52單片機為控製覈心,通過鍵盤設定帆闆角度,LED12864實時顯示角度.單片機輸齣脈寬調製波(pulse-width modulation,PWM)控製風扇的風速,通過傾角傳感器WDD35D4測量帆闆的傾角反饋至單片機,採用PID控製經典算法,實現對帆闆角度精確控製,在達到設定範圍時進行聲光報警提示.測試結果錶明:在間距一定時,5 s內,帆闆角度達到設定值,且最終絕對值誤差不超過5°.
위사범판전각θ능구수풍속변화이개변,차쾌속체도설정각도병은정하래적요구,설계기우 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 5o.