【正文】
參考文獻(xiàn) [1] 姜志海、黃玉清、劉連鑫編著 ,單片機(jī)原理及應(yīng)用(第 2版 )[M].電子工業(yè)出版社 , [2] 童詩白、華成英主編 ,模擬電子技術(shù)基礎(chǔ)(第四版) [M].高等教育出版社, [3] 李剛民、曹琳琳主編 ,單片機(jī)原理及接口 [M]. 清華大學(xué)出版社 ,1999 [4] 張大電主編 ,單片微機(jī)控制應(yīng)用技術(shù) [M]. 機(jī)械工業(yè)出版社 ,2022 [5] 沈紅衛(wèi)著,基于單片機(jī)的智能系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn) [D]. 電子工業(yè)出版社 ,2022 2022 屆電子信息工程專業(yè)畢業(yè)設(shè)計(jì) (論文) 21 [6] 王兆安、黃俊主編 ,電力電子技術(shù) [M].機(jī)械工業(yè)出版社, 2022 The Signal Detecting Technology of PCF Sensors LIULu (Physics and Electronic Engineering Dept. Chongqing Three Ges University, Wanzhou 404000) ABSTRACT: With the development of industry, the development of social productive forces in the industrial production of people unable to meet the original industrial production, and a variety of electronic products replaced human labor, the rapid development of industry. In the production process, the production of raw materials in the length measurement is an effective method to control the quality of the products. With a cloth to a factory mattress production length measuring manual measurement as the research background, bined with the requirements for measuring the length of the actual production process, research and development of an automatic measuring cotton length device for accurate measurement of raw materials, the actual production process. The counting device using AT89C51 single chip design of 6 bit digital display counter, and gives the related circuit design and source code, the use of ISIS a tension sensing device feedback cloth tension, through the slide rheostat by change of force resistance, regulating motor drive circuit voltage regulating speed, solve the problems in the production of cloth tension. KEY WORDS: counting device microcontroller AT89C51 slide rhostat motor speed ISIS 。 再次我要感謝學(xué)校和學(xué)院給了我提供了一個(gè)能順利完成畢業(yè)設(shè)計(jì)的環(huán)境,使我在設(shè)計(jì)中所需的參考文獻(xiàn)都能在圖書館和資料室找到。 另外我還要感謝在設(shè)計(jì)過程中 ,給予我?guī)椭氖矣押屯瑢W(xué),他們?cè)谏詈蛯W(xué)習(xí)方面給了我巨大的幫助 ,也為我提供了一些畢業(yè)設(shè)計(jì)的方向與思路。廖老師不知疲倦的敬業(yè)精 神和精益求精的治學(xué)要求,端正了我的學(xué)習(xí)態(tài)度,使我受益匪淺。在畢業(yè)設(shè)計(jì)過程中,我一直得到廖老師的悉心指導(dǎo),這樣既豐富了我的理論知識(shí),還增強(qiáng)了我的實(shí)際操作能力。我已盡了自己最大努力來完成的這篇論文,盡管仍有許多不足之處,但是這是一個(gè)展示自己所學(xué)的平臺(tái),我沒有遺憾。比如計(jì)數(shù)裝置模擬電路的設(shè)計(jì),放大電路的選取及張力感應(yīng)裝置的設(shè)計(jì)等。在對(duì)該裝置的開發(fā)過程中,進(jìn)一步熟練了對(duì) ISIS、 Protel 軟件的操作,加深了對(duì)一些電路元件應(yīng)用的理解。通過仿真實(shí)驗(yàn)可以看出,當(dāng)導(dǎo)軌的滾筒周長(zhǎng)一定時(shí), 通過信號(hào)采集裝置輸入直流電信號(hào)(仿真時(shí)以觸發(fā)電路代替),可有效地對(duì) 1000m以內(nèi)的布料長(zhǎng)度進(jìn)行計(jì)數(shù),且可通過觸發(fā)電路進(jìn)行清零。顯示器為 6位顯示器,精確到 1mm,最高位為 調(diào)節(jié)則通過對(duì)三種調(diào)節(jié)方式的對(duì)比,分析三種方式的特點(diǎn),采用電樞電壓調(diào)節(jié)電機(jī)轉(zhuǎn)速的方法。如當(dāng)電機(jī)轉(zhuǎn)速的變化會(huì)使計(jì)數(shù)周期產(chǎn)生變化。 該計(jì)數(shù)裝置共分為兩部分:計(jì)數(shù)器與電機(jī)轉(zhuǎn)速調(diào)節(jié)。又由于布料的多種多樣,這就要求計(jì)數(shù)裝置易于調(diào)節(jié)控制。且在盡可能的提高計(jì)數(shù)精度的前提下,還能夠使該效果更加明顯,能夠有效地達(dá)到生產(chǎn)成本可控化的目的。在生產(chǎn)過程中的布料拉伸問題,也會(huì)導(dǎo)致上述的問題,且還會(huì)損傷原材。 若采用逐個(gè)測(cè)量后投入生產(chǎn),則會(huì)導(dǎo)致效率低且仍會(huì)有耗損。在生產(chǎn)過程中,由于計(jì)數(shù)不精確導(dǎo)致無法合理分配生產(chǎn)資源,如將原布長(zhǎng)為 120M 的布料,測(cè)量為 110M,而制作床墊的布料需,若將 原布分為 52 份,則會(huì)有 的耗損。該裝置整體硬件材料成本不會(huì)2022 屆電子信息工程專業(yè)畢業(yè)設(shè)計(jì) (論文) 19 超過 300元人民幣。 就生產(chǎn)投入來看,該裝置分為兩部分:計(jì)數(shù)器與電機(jī)調(diào)速裝置。因生產(chǎn)線的連續(xù)性使計(jì)數(shù)不會(huì)發(fā)生中斷,若意外中斷,也可通過外部觸發(fā)電路對(duì)后續(xù)布料重新計(jì)數(shù)。因?yàn)樾盘?hào)采集裝置 的信號(hào)輸出周期與滾筒轉(zhuǎn)動(dòng)一周的時(shí)間相等,所以通過對(duì)直流脈沖信號(hào)的處理計(jì)數(shù),可得出滾筒轉(zhuǎn)動(dòng)的圈數(shù)進(jìn)而得到通過滾筒處布料的總長(zhǎng)度。該計(jì)數(shù)器最大可計(jì)數(shù)到,當(dāng)計(jì)數(shù)完成后通過外接觸發(fā)電路(觸發(fā)清零)對(duì)該單片機(jī)計(jì)數(shù)器進(jìn)行清零操作。因單片機(jī) AT89C51 的計(jì)數(shù)頻率可以達(dá)到幾十 ms 每次,且直流電機(jī)的轉(zhuǎn)速不可能達(dá)到幾十 ms/圈,所以該計(jì)數(shù) 器可以很精確地進(jìn)行計(jì)數(shù)。 } } } 5 系統(tǒng)調(diào)試結(jié)果 圖 14 系統(tǒng)仿真電路圖 該 6位計(jì)數(shù)器裝置使用 AT89C51單片機(jī)作為核心,對(duì)觸發(fā)電路輸入的直流脈沖信號(hào)進(jìn)行處理,實(shí)現(xiàn)計(jì)數(shù)功能。 num=0。 } } else if(key1==0) //清零程序 { delay(10)。 if(key==0) { while(key==0)。 } /*主程序 */ void main() { key = 1。 P2=wei[5]。 P2=0xff。 P2=wei[4]。 P2=0xff。 P2=wei[3]。 P2=0xff。 P2=wei[2]。 P2=0xff。 否 中斷 返回 計(jì)數(shù) 是否處于低電平計(jì)數(shù) 顯示 布料長(zhǎng)度計(jì)數(shù)裝置的開發(fā) 16 P2=wei[1]。 P2=0xff。 P2=wei[0]。 } /*顯示程序 */ void display(long int k)