Development of a new type of smart meter

Publisher:科技创客Latest update time:2006-05-07 Source: 国外电子元器件 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

    Abstract: This paper introduces a new type of smart meter application system, and explains the actual circuit and design method of the handheld unit part and the rate device part of the smart meter. The specific circuit schematic diagram and related main software design procedures are given.

    Keywords: Smart meter microcontroller EEPROM program

With the development of the national economy, smart meters are becoming more and more widely used. As an alternative and upgraded product to the widely used IC card meter system, smart meters have been widely used in developed countries such as Japan, Europe and the United States. There are also manufacturers in my country who are actively developing commercialized smart meter products. This article introduces the circuit structure and software design scheme of a new type of smart meter.

This smart meter is an electromechanical smart meter. It consists of three parts: hardware circuit, corresponding software and issuance system. It can realize the billing of different electricity prices in different time periods by a certain power company, thereby realizing intelligent power consumption supervision. This article will introduce the hardware circuit and corresponding software system.

1 Electric meter hardware device

The hardware of this meter device includes three parts: interface card, handheld unit and meter rate system. Through the interface card inserted in the expansion slot of the microcomputer, the handheld unit can be used to realize the connection with the ordinary microcomputer. The electric power company inputs the user's electricity purchase information to the handheld unit through the serial port of an ordinary microcomputer. The user then sends the electricity purchase information to the meter rate system using the handheld unit. The rate system monitors the user's electricity consumption based on the user's electricity purchase information and completes the calculation. charges and remind users to purchase electricity at appropriate times.

1.1 Handheld unit

The circuit schematic diagram of the handheld unit part is shown in Figure 1.

It has to complete the following functions:

(1) Receive the user's electricity purchase information output by the microcomputer program through the serial port, store and encrypt the user's electricity purchase information.

(2) Accurately send the user’s electricity purchase information to the rate system using infrared mode.

(3) After sending the user’s electricity purchase information, the system will automatically clear the electricity purchase information.

    In Figure 1, Intel's microcontroller 87C51 is the main device that completes this part of the function, and the functions of the handheld unit are completed by the software program stored in the 87C51. The main pin functions required for 87C51 are described as follows:

●The external crystal oscillator pins XTAL1 and XTAL2 can form an oscillation circuit with the inverting amplifier on the 87C51 chip to provide clock signals for the microcontroller.

●RST/VPP is the reset input terminal of the microcontroller and the Vpp power supply terminal of the internal RAM in power-down mode.

●The P1 pin is an input/output port. It has an internal pull-up resistor and is an 8-bit I/O port. This pin is used to receive the lower 8-bit address during EEPROM programming and program verification.

●RXD (P3.0) pin is a serial input port.

●TXD (P3.1) pin is a serial output port.

The RST pin of 87C51 is connected to an external reset circuit, the P1.2 pin is connected to an external transmitting circuit, and the P1.3 pin is connected to an external receiving circuit. 24C01A is an EEPROM produced by ATMEL Corporation of the United States. It is a two-wire serial interface CMOS memory with a capacity of 1k bits (128×8). Used to store information necessary for the software program to run. Among them, SDA is the serial data line and SCL is the serial clock line.

1.2 Electric meter rate system

The main functions that the meter rate system needs to complete are as follows:

●Receive user electricity purchase information sent by the handheld unit;

● Combine the newly received user electricity purchase information with the own user electricity consumption information of the rate system to obtain new information; ● Dynamically calculate to obtain the remaining power, and ignite the LED tube when the remaining power reaches the warning value , to remind users to purchase electricity and cut off the power supply when the excess electricity consumption reaches a certain value.

The circuit principle of the meter rate system is shown in Figure 2.

Among them, the cost-effective single-chip computer P87LPC764 of PHILIPS SEMICONDUCTORS Company is the main device to complete this part of the function. The microcontroller P87LPC764 comes with an internal 6MHz RC oscillator, internal watchdog circuit and internal reset circuit. It has strong anti-electromagnetic interference capabilities and small operating current.

PCF8583 is a clock/calendar chip from PHILIPS SEMICONDUCUORS with its own 240×8-bit RAM. It is used to provide time information for power companies to implement time-of-use electricity pricing strategies. It can store 4 years of calendar time information, and its calendar time information function can also be set through programming.

CAT24WC02 is a true 0-power EEPROM chip that uses I2C bus interface and has a lifespan of 1 million times of erasing and writing.

2 Software design of smart meters

The software program of the handheld unit includes three parts: microcomputer serial port communication, 87C51 internal working and handheld unit data transmission.

The microcomputer serial port communication part mainly completes the output of the user's electricity purchase information to the microcontroller 87C51 in the handheld unit part through the serial port asynchronous communication adapter UART. The internal working part of 87C51 mainly completes the encryption of user's electricity purchase information.

The handheld unit data transmission program mainly completes sending the encrypted user electricity purchase information to the meter rate system. And it will be automatically cleared after it is determined that the user's electricity purchase information has been correctly received by the meter rate. Its program flow chart is shown in Figure 3.

The working program of the microcontroller P87LPC764 is mainly used to receive the encrypted user's electricity purchase information, decrypt the user's electricity purchase information, and then add the user's electricity purchase information to the last remaining electricity consumption information stored in the EEPROM peripheral memory CAT24WC02 to obtain the user's electricity purchase information. The latest electricity consumption information after this electricity purchase is combined with the newly stored calendar time information in 24WC02 to dynamically calculate the user's electricity consumption information to complete the alarm to the user when the remaining power reaches the warning value and the When the set value is exceeded, the power supply is cut off, and the user's power consumption information is stored in the peripheral EEPROM chip CAT 24WC02.

Reference address:Development of a new type of smart meter

Previous article:Design of dual-channel digital voice monitor
Next article:Application circuit design of single-chip CVSDMC3418

Latest Test Measurement Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号