- 1、本文档共94页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基于单片机的多功能电能表的设计
摘要
本电能表系统以FM3307/8单片机为核心,对8户居民的用电量进行测量。8路脉冲输出电能计量芯片AD7755能够把居民的用电量转换为一定数量的脉冲,单片机对脉冲进行计数,经过一定的数学运算可以算出用电量。74HC164串入并出8位移位寄存器和LED显示器能够实时循环显示8户居民的用电量。AT24C16通过I2C总线和单片机连接,单片机将居民的用电量实时写入AT24C16,当断电时AT24C16仍能保存数据,再次上电后单片机将其保存的数据读出,从而实现掉电保护。电能表通过RS-485总线与抄表集中器相连,接收抄表集中器下达的抄表(或预付费)、清零等命令。抄表集中器内有GPRS通信模块(MC55),通过GPRS通信网与中心计算机联系,实现数据的上传或命令的下达。
中心计算机根据一天中电费不同价格的时间分割点读取用户的用电量,从而可以实现电能表的复费率功能。如果在电能表外围接入电平控制的低压断路器就可以实现预付费功能(与复费率电能表的程序不同)。中心计算机将用户提前购买的电量写入电能表中,当电量减到0时,控制口(P4)动作切断供电。
关键词:单片机,AD7755,GPRS,复费率,预付费
ABSTRACT
The FM3307 / 8 MCU is core of the meter system which measure the power consumption of the eight residents。The power consumption of the residents can be converted to a certain number of pulses by the 8 energy measurement chip AD7755.The microcontroller count the pulses and we can calculate the power consumption after a certain mathematical operations. The 8-bit shift register, 74HC164 and the LED monitor can achieve to show the electricity consumption of the eight residents circularly. The AT24C16 connected to the microcontroller via the I2C bus.The MCU write the power consumption of the residents in AT24C16. AT24C16 can still save the data when power is broken off and the MCU will read the data out after power recovering.So the data can be saved when the power is broken.The energy meter is connected to the meter reading concentrator by RS-485 bus,receiving reading(or prepaiding) Clearing and other command. The meter reading concentrator with GPRS communication module (MC55), communicate with the center computer through the GPRS Communication network achieving to upload data or issue order.
The central computer read the users electricity according to division poin of different prices in one day,thus we can realize double rate function. If the electric energy meter peripheral is accessed low voltage circuit breaker,we can realize the prepayment function ( the Program is Difference to the double rate). The center computer will write the power advanced purchased int
文档评论(0)