資源描述:
《金屬內(nèi)傷探測(cè)器設(shè)計(jì)研究論文》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在學(xué)術(shù)論文-天天文庫(kù)。
1、畢業(yè)設(shè)計(jì)(論文)金屬內(nèi)傷探測(cè)器設(shè)計(jì)研究摘要本文是基于單片機(jī)AT89S52,利用電感式接近開(kāi)關(guān)傳感器LJ18A4-10-Z/BD設(shè)計(jì)一個(gè)簡(jiǎn)易金屬探測(cè)器用于檢測(cè)金屬存在并進(jìn)行金屬個(gè)數(shù)計(jì)數(shù),包括硬件電路和軟件設(shè)計(jì)兩大部分。硬件電路由傳感器外圍電路和單片機(jī)外圍電路構(gòu)成。電感式接近開(kāi)關(guān)傳感器是一個(gè)感應(yīng)金屬物體的線性器件,型號(hào)為L(zhǎng)J18A4-10-Z/BD的接近開(kāi)關(guān)在沒(méi)有檢測(cè)到金屬時(shí)會(huì)輸出一個(gè)電流值,但當(dāng)檢測(cè)到金屬時(shí),輸出電流值會(huì)發(fā)生變化。傳感器輸出為電流信號(hào),不能直接進(jìn)行A/D轉(zhuǎn)換,應(yīng)通過(guò)電流電壓轉(zhuǎn)換電路,把傳感器輸出電流信號(hào)轉(zhuǎn)換為滿足A/D轉(zhuǎn)換器PCF8591輸入要求的電壓
2、信號(hào)。經(jīng)過(guò)A/D轉(zhuǎn)換后的數(shù)字信號(hào),送入單片機(jī)處理。軟件設(shè)計(jì)主要包括A/D轉(zhuǎn)換、數(shù)據(jù)處理、LCD顯示和報(bào)警程序四大模塊。PCF8591采集系統(tǒng)開(kāi)機(jī)電壓U0和進(jìn)入金屬檢測(cè)狀態(tài)時(shí)的電壓U(x)。數(shù)據(jù)處理主要完成電壓值的精度轉(zhuǎn)換,要求精確到小數(shù)后第二位;計(jì)算U0和U(x)差值,并判斷電壓差值和傳感器預(yù)設(shè)靈敏度是否相等,從而判斷是否檢測(cè)到金屬。當(dāng)傳感器檢測(cè)到金屬時(shí),蜂鳴器報(bào)警,同時(shí)LCD顯示已檢測(cè)到的金屬個(gè)數(shù)。關(guān)鍵詞:金屬檢測(cè);金屬計(jì)數(shù);單片機(jī)AT89S52;A/D轉(zhuǎn)換器PCF8591;電感式接近開(kāi)關(guān)LJ18A4-10-Z/BDAbstractInthispaper,itis
3、todesignasimplemetaldetectorthatcancounttheexistingmetalnumbersonthebasisofmicro-controllerAT89S52andinductiveproximityswitchsensorLJ18A4-10-Z/BD,includingthedesignofhardwarecircuitandsoftware.Thedesignofhardwarecircuitismadeupofthesensor’speripheralcircuitandthemicro-controller’sperip
4、heralcircuit.Inductiveproximityswitchislineardevicethatcaninducetheexistingofmetal.LJ18A4-10-Z/BDsensorwilloutputacurrentwithoutmeasuredobject.Untilitinducesmetal,theoutputcurrentwillbechanged.Becausetheoutputcurrentcannotbeconvertedtodigitalsignaldirectly,currenttovoltageconvertingcir
5、cuithastobeneeded,whichchangestheoutputcurrentsignalofsensorintovoltagesignalthatsatisfiestheinputrequirementsofPCF8591.Afteranalogtodigitalconverter(ADC),thedigitalsignalissenttomicro-controllerforprocessing.ThedesignofsoftwarecontainsfourpartswhichareADC,dateprocessing,liquidcrystald
6、isplay(LCD)andbeepalarming.PCF8591collectstheinitialvoltageUoandU(x).U(x)isthevoltagewhenthesensorisinconditionofdetectingmetal.Inthemoduleofdataprocessingitcompletestheprecisionchangingofcollectedvoltageandcorrectstheresultsto2decimalplaces,meanwhileitcalculatesthedifferencebetweenthe
7、valueofUoandU(x),thencomparethedifferencevaluewiththesensor’spre-establishedprecisionvaluetodecidewhetherthesensorhasinducedmetal.TheBeeperalarmsuntildetectingmetal,atthesametimetheLCDdisplaysthenumberofinducedmetals.Keywords:mentaldetection;metalnumbercounting;micro-controllerAT89S5