【正文】
...............................................11 4.系統(tǒng)調(diào)測試 ..................................... 12 調(diào)試方法 .......................................................................................................... 12 調(diào)試結(jié)果 .......................................................................................................... 12 測試數(shù)據(jù) .......................................................................................................... 12 測試結(jié)果 .......................................................................................................... 13 附錄:主要程序 .................................... 13 2 摘要: 本設(shè)計(jì)以 STC89S52 單片機(jī)為核心控制系統(tǒng),由輸入模塊、角度傳感器、液晶顯示模塊等組成帆板檢測控制系統(tǒng)。 Abstract: The design for STC89S52 central control system, the input module, angle sensor, liquid crystal display module and other ponents. With the MCU control of the DC motor drives the fan speed control panel rotation angle, using LCD 12864 to display the rotation angle. Through the keys to the signal, the output signal of the SCM control DC motor, abuzzer ,indicating and an angle sensor. Give full play to the role of software programming convenience and flexibility, to meet the system design requirements. In the process of making our best efforts to ensure that the circuit is simple and elegant, to further the realization of various functions。 ( 3)當(dāng)間距 d=10cm 時(shí),通過操作鍵盤控制風(fēng)力大小,使帆板轉(zhuǎn)角 θ 穩(wěn)定 在 45176。 ( 2) 間距 d 在 7~15cm 范圍內(nèi)任意選擇,通過鍵盤設(shè)定帆板轉(zhuǎn)角,范圍為 0~60176。 ②、 輸出模式:模擬輸出模式;輸出范圍: ~+ ③、 分辨率: 12 位;精度: 10 位 ④、 供電電壓: 5V+10%; ⑤、 用于磁鋼位置監(jiān)控的故障檢測模式; ⑥、 寬溫度范圍: 40176。綜合考慮各方面因素,我們采用方案二。 實(shí)測表明帆板轉(zhuǎn)動(dòng)角度的精度會(huì)受到多種因素影響,如風(fēng)扇和帆板之間的距離;電機(jī)的機(jī)械運(yùn)動(dòng)周期頻率;帆板硬件的制作工藝等。 *注釋 ,因此在不需要經(jīng)常復(fù)位的場合可將該端懸空。 adc_test=read2543(0)。 else djmk。 表 2. 測試數(shù)據(jù) 測試次數(shù) 設(shè)定角度 測試結(jié)果 測試誤差 風(fēng)扇據(jù)帆板距離 完成時(shí)間 1 15 13 2 10 2 28 24 4 10 3 45 42 3 10 4 60 55 5 10 5 33 29 4 10 6 50 52 2 10 7 10 11 1 15 8 53 55 2 15 9 45 44 1 15 13 我們對測驗(yàn)的結(jié)果進(jìn)行了分析,分析發(fā)現(xiàn)測量的結(jié)果總是與標(biāo)準(zhǔn)值有一定誤差值但均未超過允許范圍。 sbit k3=P2^5。 sbit bjd=P3^3。//功能項(xiàng) 14 uchar t=0。 uchar xdata dis3[] = {當(dāng)前角度: 度