AT89C51单片机家用燃表的自动读值系统设计+源代码

,论文主要对于当前家用燃表的种类以及需求、系统软、硬件部分进行了分析,通过单片机与蓝牙等模块,实现了数据的传输与显示,设计出了一套切实可行的无线读值系统。


摘要:我国地大物博,资源丰富,然而随着一年一年的利用,很多一次性能源存储量越发的少。这个时候,清洁能源被发现并且被利用起来。人类将来的发展离不开清洁能源,而天然气作为一种存储量高、利用效率高的清洁能源,必将成为人类将来发展的主动力。随着我国燃气行业的迅速发展,西气东输等工程的实现,使得城市居民燃气使用的越来越多,燃气普及率明显升高,然而现在的燃气收费仍然是采用查表员按月入户查表,人工收费的方法,这种方法难免会出现入户抄表难、抄表数据不准确、数据更新实时性差等问题,另外,由于人工出现的问题,像偷气盗气、人为的改变燃气费用,包括燃气表出现故障造成泄露这些,都会造成燃气公司的损失。所以拥有更方便的抄表方式已经成为了燃眉之急。为解决上述问题,燃气行业出现了各种新的技术和管理办法。如使用IC卡燃气表等类型燃气表,这样可以对燃气进行预收费,统一管理;使用付款APP或者通过银行申请自动代交费;采用远程集中抄表技术,这些都能实现不进户抄表,收费合理等功能。本次研究就是将传统的机械式计数燃气表与现在的单片机技术相结合,设计出一款无线抄表系统,实现了计数显示、无线抄表、漏气报警等功能。

关键词:家用燃表;单片机;蓝牙;无线传输

Abstract:Our country has vast territory and abundant resources. But with the use of resources, a lot of disposable energy storage get more less. At this time, clean energy is found and used. The future development of mankind cannot do without clean energy. The natural gas as a high storage capacity, high efficiency and clean energy will become the driving force of human development in the future. With the rapid development of gas industry in our country, the west east gas transmission project, more and more city residents make use of gas.The gas penetration rate increased significantly.However, the present method is still to send people to pass the meter reading and collect fees. The method is difficult to meter reading.The meter reading data is not accurate, and the data has bad real-time etc. In addition, due to artificial problems, like stealing gas, gas costs change artificially, including gas meter failure cause leakage, will cause the loss of gas transmission companies. So a convenient meter reading method is needed.In order to solve the problems, the gas industry appeared a variety of new technologies and management methods. Such as IC card gas mete, which can pre-charging of gas for unified management;the use of payment through bank APP or apply for the automatic generation of the remote payment; meter reading technology.These methods can read gas meter without enter the house, charge reasonable and implement other functions. This research combine the traditional mechanical counting gas meter with the current SCM technology.Then design a wireless meter reading system to realize the functions of counting display, wireless meter reading and air leak alarm.

Key words: household combustion meter;single-chip microcomputer;bluetooth;wireless transmission

目录

第一章绪论 1

1.1课题研究的背景及意义 1

1.2家用燃表在世界范围内的使用现状 2

1.2.1智能燃气表的发展历程及趋势 2

1.2.2国内燃气行业发展现状 2

1.3机械式家用燃表 4

1.4研究方向 7

第二章燃气表系统设计 8

2.1抄表系统的组成 8

2.2系统功能设计 8

第三章硬件设计 10

3.1硬件简介 10

3.1.1AT89C51单片机 10

3.1.2蓝牙 12

3.1.3数码管 13

3.1.4蜂鸣器 14

3.2硬件电路分析 15

3.2.1电路设计框图 15

3.2.2电路设计 16

第四章软件设计 18

4.1数码管子程序 18

4.2蓝牙串口通信子程序 19

4.3主程序 21