IC卡燃气表的设计

摘要:本文设计了一个智能IC卡燃气表,IC卡燃气表在正常工作时可以通过控制电路对天然气的流量加以控制,也可以随时通过IC卡燃气表自身的显示器查询剩余的燃气金额。当燃气用户的剩余燃气金额低于一个警报值或者剩余的燃气金额为零时,IC卡燃气表将会产生声音警报提醒燃气用户进行缴费。本文的设计采用单片机中的AT89C52芯片为处理器核心,当IC卡插入IC卡燃气表,经过IC卡检测系统检测通过后,IC卡燃气表通过单片机的控制系统正常运作。流量传感器将通过的燃气流量计算得出一个电流值,再传送给I/V转换器得到需要获得的电压信号。电压信号再经过A/D转换器转换之后,将会以数字量的形式储存在于单片机AT89C52的存储单元中。被累计的量值将会与设定的数值一定存在一些相差的数值,这样需要系统经过一次PID调节,将调节的信息重新传送给单片机AT89C52的储存单元中。最后由单片机AT89C52发出控制信号控制IC卡燃气表的运行还是关闭。

关键词:燃气表;IC卡;单片机

 

 

Design of IC Card Gas eter

 

AbstractThis paper designs a intelligent IC card gas meter, IC card gas table in normal work can through the control circuit of the gas flow controlled, also can at any time through the IC card gas meter’s display query of the gas remaining amount. The IC card gas meter will generate a sound alarm to remind the gas user to pay when the amount of gas remaining gas is less than one alarm value or the remaining amount of gas is zero. In this paper, the design using microcontroller AT89C52 chip as the core processor, when the IC card is inserted into the IC card gas meter, after through the IC card detection system, IC card gas table through the normal operation of the system controlled by single chip microcomputer. Flow sensor will calculate the gas flow through a current value, and then transmitted to the I/V converter to get the need to get the voltage signal. After the voltage signal is converted by the A/D converter, it will be stored in the storage unit of the single chip microcomputer AT89C52 in the form of digital quantity. The amount of value will be accumulated with the set value must exist some difference between the value, so that the system needs to be a PID adjustment, the information will be adjusted to re transfer to the microcontroller AT89C52 storage unit. In the end, the control signal is sent out by the single chip microcomputer AT89C52 to control the operation of the IC card gas meter.

Key words: Gas meter   IC card  Singlechip

 

 

目录

第1章 绪论……………………………………………….. 1

1.1课题研究的目的和意义…………………………………. 1

1.2 国内发展现状及发展动态……………………………….. 2

1.3 国外发展现状及发展动态……………………………….. 2

1.4本文的主要内容………………………………………. 3

第2章 智能IC卡燃气表的总体设计方案及原理……………………. 4

2.1 IC卡燃气表的设计方案………………………………… 4

2.1.1系统总体的控制过程………………………………. 4

2.1.2 智能IC卡燃气表的控制算法………………………. 5

2.2 IC卡燃气表的原理及功能……………………………… 5

2.3 IC卡燃气表系统结构………………………………….. 5

第3章 智能IC卡燃气表系统的硬件组成………………………… 8

3.1 传感器的功能及其技术参数…………………………….. 8

3.2(RCV420)变换器的设计………………………………… 9

3.3 A/D转换器的设计…………………………………… 10

3.4  TLC549与89C51芯片的连接方法……………………… 11

3.5  单片机的设计 …………………………………… 11

3.5.1 AT89C52芯片及片内功能…………………………. 11

3.5.2  AT89C52各引脚功能…………………………… 12

3.6 储存器的设计………………………………………. 14

3.6.1  AT24C02内部芯片结构及使用方法………………… 14

3.6.2  AT24C02与单片机的连接……………………….. 14

3.7  LCD显示部分…………………………………….. 15

3.7.1  LCD显示及显示器接口…………………………. 15

3.7.2 显示器与单片机的连接………………………….. 15

3.8  报警装置设置…………………………………….. 16

3.9   电源…………………………………………….. 17

3.10复位电路………………………………………….. 17

3.11 IC卡读写器……………………………………….. 18

3.12 电磁阀控制电路…………………………………….. 18

3.13硬件测试………………………………………….. 19

第4章 智能IC卡燃气表的软件设计……………………………. 21

4.1 主程序……………………………………………. 21

4.2  IC卡检测读写程序………………………………… 22

结 论…………………………………………………… 23

致谢…………………………………………………….. 25

参考文献…………………………………………………. 26

附录…………………………………………………….. 27

附录一………………………………………………… 27

附录二………………………………………………… 28

附录三………………………………………………… 32

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。

最常见的情况是下载不完整: 可对比下载完压缩包的与网盘上的容量,若小于网盘提示的容量则是这个原因。这是浏览器下载的bug,建议用百度网盘软件或迅雷下载。 若排除这种情况,可在对应资源底部留言,或联络我们。

对于会员专享、整站源码、程序插件、网站模板、网页模版等类型的素材,文章内用于介绍的图片通常并不包含在对应可供下载素材包内。这些相关商业图片需另外购买,且本站不负责(也没有办法)找到出处。 同样地一些字体文件也是这种情况,但部分素材会在素材包内有一份字体下载链接清单。

如果您已经成功付款但是网站没有弹出成功提示,请联系站长提供付款信息为您处理

源码素材属于虚拟商品,具有可复制性,可传播性,一旦授予,不接受任何形式的退款、换货要求。请您在购买获取之前确认好 是您所需要的资源