金属内伤探测器设计研究论文

金属内伤探测器设计研究论文

ID:338076

大小:524.50 KB

页数:45页

时间:2017-07-25

金属内伤探测器设计研究论文_第1页
金属内伤探测器设计研究论文_第2页
金属内伤探测器设计研究论文_第3页
金属内伤探测器设计研究论文_第4页
金属内伤探测器设计研究论文_第5页
资源描述:

《金属内伤探测器设计研究论文》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库

1、毕业设计(论文)金属内伤探测器设计研究摘要本文是基于单片机AT89S52,利用电感式接近开关传感器LJ18A4-10-Z/BD设计一个简易金属探测器用于检测金属存在并进行金属个数计数,包括硬件电路和软件设计两大部分。硬件电路由传感器外围电路和单片机外围电路构成。电感式接近开关传感器是一个感应金属物体的线性器件,型号为LJ18A4-10-Z/BD的接近开关在没有检测到金属时会输出一个电流值,但当检测到金属时,输出电流值会发生变化。传感器输出为电流信号,不能直接进行A/D转换,应通过电流电压转换电路,把传感器输出电流信号转换为满足A/D转换器PCF8591输入要求的电压

2、信号。经过A/D转换后的数字信号,送入单片机处理。软件设计主要包括A/D转换、数据处理、LCD显示和报警程序四大模块。PCF8591采集系统开机电压U0和进入金属检测状态时的电压U(x)。数据处理主要完成电压值的精度转换,要求精确到小数后第二位;计算U0和U(x)差值,并判断电压差值和传感器预设灵敏度是否相等,从而判断是否检测到金属。当传感器检测到金属时,蜂鸣器报警,同时LCD显示已检测到的金属个数。关键词:金属检测;金属计数;单片机AT89S52;A/D转换器PCF8591;电感式接近开关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

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。