基于AT89C51单片机的可燃气体报警器设计

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

I摘要本设计利用GS系列传感器,将置于测试环境中待测气体的浓度转换为模拟电压,再通过ADC0809将模拟电压转换为数字信号,送入单片机AT89C51中进行处理。为了用户对气体浓度进行实时了解,将AT89C51外接3片74LS164作为3位LED显示器的静态显示接口,把单片机的RXD作为数据输出线,TXD作为移位时钟脉冲。74LS164为TTL单向8位移位寄存器,可实现串行输入,并行输出,通过8位移位寄存器74LS164可进行静态显示。通过设置报警值,用单片机控制发光二极管和音乐IC同时报警。利用单片机控制技术,制作了程控一氧化碳报警器。该仪器对一氧化碳(CO)进行实时监控,当一氧化碳的浓度超过允许值时,控制电路进行报警,并通过外接排风扇与电磁阀对其进行程控,以防事故的发生。另外为了防止程序陷入死循环,还利用x25045芯片组成的看门狗电路在程序陷入死循环时让单片机复位,而不用整个系统断电,从而保护了硬件电路。由于所设计的数字气体报警器采用单片机AT89C51,其价格便宜,性能稳定,易于产品化。以GS气体传感器和AT89C51单片机为核心,设计气体泄漏报警器,该报警器设计方法简单易行,使用效果良好,下面给出了气体泄漏报警器的总体设计原理,关键的硬件电路和所有的软件程序设计。关键词:一氧化碳;气体泄露报警器;AT89C51单片机;GS气体传感器IIAbstractThedesignoftheGSseriesofsensors,willbeplacedonthetestenvironmentmeasuredtheconcentrationofgasconvertedtoanalogvoltage,andthenthroughtheADC0809willbeconvertedtoanalogvoltagedigitalsignal,intotheSCMAT89C51intheprocess.Tousersofgasconcentrationsinreal-timeunderstanding,AT89C51willbelinkedthree74LS164externallyasthethreeLEDdisplaystaticdisplayinterface,andtheMCURXDastheoutputdataline,TXDasashiftclockpulse.74LS164TTLisaone-way8-bitregisterdisplacementwhichcanberealizedenterserial,paralleloutput,throughthe8-bitshiftregister74LS164canbestaticdisplay.Bysettingthealarmlevel,theMCUcontrolLEDandmusicICalarmatthesametime.SCMcontroluseoftechnology,producedaprogram-controlledcarbonmonoxidealarm.Theinstrumentofcarbonmonoxide(CO)forreal-timemonitoring,whentheconcentrationofcarbonmonoxideismorethanallowedvalue,thecontrolcircuitforalarm,andthroughanexternalelectromagneticvalverowfansandtheirprogram-controlled,topreventaccidents.Inadditionprocedurestopreventacycleofdeath,alsousedx25045watchdogcircuitchipcomposedofadeathintheprocesssothatwhentheMCUresetcycle,insteadofthewholesystemoff,therebyprotectingthehardwarecircuit.AsdesignedbythenumberofgasalarmusingSCMAT89C51,itischeap,stableperformance,easy-production.GStogassensorsandAT89C51microcontrollerasthecoredesignofgasleakagealarm,thealarmsystemdesignmethodissimple,usegoodeffect,thefollowingisagasleakagealarmthegeneraldesignprinciples,thekeyhardwareandallThesoftwareprogramdesign.Keywords:CO;Leakinggasesalarm;AT89C51microcomtuper;GSGasesSensorsIII目录摘要································································································IAbstract····························································································II1绪论·····························································································11.1研究背景及意义·······································································11.2研究目标及实现功能·································································21.3研究方案·················································································31.4我国报警器行业的发展······························································42单片机相关知识介绍·······································································62.1单片机中断与复位····································································62.1.1单片机中断系统····································································2.1.2单片机复位电路····································································2.2AT89C51单片机对ADC0809的接口··············································82.3AT89C51的介绍·········································································3硬件部分的设计及调试····································································93.1硬件部分的设计·······································································93.1.1系统的组成········································································93.1.2系统各模块功能··································································93.1.3系统的控制········································································123.1.4系统主要器件的介绍····························································3.2硬件电路的调试·······································································124软件部分的设计及调试···································································134.1软件部分的设计·······································································134.1.1主程序··············································································144.1.2调零子程序········································································154.1.3显示子程序········································································164.1.4报警子程序········································································174.1.5中断取值子程序··································································194.2软件程序的调试·······································································22结论································································································41致谢································································································23参考文献··························································································24IV附录································································································25科技文章摘译····················································································351第1章绪论1.1研究背景及意义随着我国燃气的变革及西气东输工程的进行,煤气或天然气已成为多数家庭的燃料。每年因煤气泄漏造成的煤气中毒事故中,因使用热水器不当或产品本身的质

1 / 50
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功