Menu English Ukrainian russian Home

Free technical library for hobbyists and professionals Free technical library


ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING
Free library / Schemes of radio-electronic and electrical devices

The principle of operation of the electronic counter. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Electric meters

Comments on the article Comments on the article

To calculate the electrical energy consumed over a certain period of time, it is necessary to integrate the instantaneous values ​​of active power over time. For a sinusoidal signal, the power is equal to the product of the voltage and current in the network at a given time. Any electric energy meter works on this principle. On fig. 1 shows a block diagram of an electromechanical meter.

The principle of operation of the electronic counter. Block diagram of an electromechanical meter
Rice. 1. Block diagram of an electromechanical electric energy meter

The implementation of a digital electric energy meter (Fig. 2) requires specialized ICs capable of multiplying signals and providing the resulting value in a form convenient for the microcontroller. For example, an active power converter - to a pulse repetition rate. The total number of incoming pulses, counted by the microcontroller, is directly proportional to the electricity consumed.

The principle of operation of the electronic counter. Block diagram of a digital electrical energy meter
Rice. 2. Block diagram of a digital electric energy meter

An equally important role is played by all kinds of service functions, such as remote access to the meter, to information about the accumulated energy, and many others. The presence of a digital display controlled by a microcontroller allows you to programmatically set various modes of information output, for example, display information on the energy consumed for each month, at various tariffs, and so on.

To perform some non-standard functions, such as level matching, additional IS are used. Now they have begun to produce specialized ICs - power-to-frequency converters - and specialized microcontrollers containing such converters on a chip. But, often, they are too expensive for use in household induction meters. Therefore, many global manufacturers of microcontrollers are developing specialized microcircuits designed for this application.

Let's move on to the analysis of building the simplest version of a digital counter on the cheapest (less than a dollar) 8-bit Motorola microcontroller. In the presented solution, all the minimum necessary functions are implemented. It is based on the use of an inexpensive power-to-pulse frequency converter IC KR1095PP1 and an 8-bit microcontroller MC68HC05KJ1 (Fig. 3). With such a structure, the microcontroller needs to sum up the number of pulses, display information on the display and protect it in various emergency modes. The meter under consideration is actually a digital functional analogue of existing mechanical meters, adapted for further improvement.

The principle of operation of the electronic counter. The main components of the simplest digital electricity meter
Rice. 3. The main components of the simplest digital electricity meter

Signals proportional to the voltage and current in the network are taken from the sensors and fed to the input of the converter. The converter IC multiplies the input signals to obtain the instantaneous power consumption. This signal is fed to the input of the microcontroller, which converts it into Wh and, as the signals accumulate, changes the meter readings. Frequent power failures make it necessary to use an EEPROM to save the meter readings. Since power failures are the most typical emergency situation, such protection is necessary in any digital meter.

The program operation algorithm (Fig. 4) for the simplest version of such a counter is quite simple. At power-up, the microcontroller is configured according to the program, reads the last saved value from the EEPROM and displays it on the display. Then the controller enters the mode of counting pulses coming from the converter IC, and, as each Wh is accumulated, it increases the counter reading.

The principle of operation of the electronic counter. Algorithm of the electric meter program
Rice. 4. Algorithm of the program

When writing to EEPROM, the value of the accumulated energy may be lost at the moment of power failure. For these reasons, the value of the accumulated energy is written to the EEPROM cyclically one after another after a certain number of changes in the meter readings, set by the software, depending on the required accuracy. This avoids loss of stored energy data. When voltage appears, the microcontroller analyzes all the values ​​in the EEPROM and selects the last one. For minimal losses, it is sufficient to record values ​​in increments of 100 Wh. This value can be changed in the program.

The scheme of the digital calculator is shown in fig. 5. 1 V power supply and load are connected to connector X220. From the current and voltage sensors, the signals are fed to the KR1095PP1 converter microcircuit with optocoupler isolation of the frequency output. The counter is based on the Motorola microcontroller MC68HC05KJ1, manufactured in a 16-pin package (DIP or SOIC) and having 1,2 KB of ROM and 64 bytes of RAM. To store the accumulated amount of energy during power failures, Microchip's small 24C00 EEPROM (16 bytes) is used. An 8-bit 7-segment LCD is used as a display, controlled by any inexpensive controller, communicating with the central microcontroller via the SPI or I2C protocol and connected to the X2 connector.

The implementation of the algorithm required less than 1 KB of memory and less than half of the I / O ports of the MC68HC05KJ1 microcontroller. Its capabilities are enough to add some service functions, for example, networking meters via the RS-485 interface. This function will allow you to receive information about the accumulated energy in the service center and turn off the electricity in the absence of payment. A network of such meters can equip a residential multi-storey building. All readings via the network will be sent to the dispatch center.

Of particular interest is the family of 8-bit microcontrollers with on-chip FLASH memory. Since it can be programmed directly on the assembled board, the program code is protected and the software can be updated without installation work.

The principle of operation of the electronic counter. Digital calculator for digital electricity meter
Rice. 5. Digital calculator for digital electricity meter

Even more interesting is the version of the electricity meter without external EEPROM and expensive external non-volatile RAM. In it, in emergency situations, readings and service information can be recorded into the internal FLASH-memory of the microcontroller. This also ensures the confidentiality of information, which cannot be done using an external crystal that is not protected from unauthorized access. Such electricity meters of any complexity can be implemented using Motorola microcontrollers of the HC08 family with on-chip FLASH memory.

The transition to digital automatic systems for accounting and control of electricity is a matter of time. The advantages of such systems are obvious. Their price will keep dropping. And even on the simplest microcontroller, such a digital electricity meter has obvious advantages: reliability due to the complete absence of rubbing elements; compactness; the possibility of manufacturing the case, taking into account the interior of modern residential buildings; increase in the verification period by several times; maintainability and ease of maintenance and operation. With little additional hardware and software costs, even the simplest digital meter may have a number of service functions that are not available in all mechanical meters, for example, the implementation of multi-tariff payment for consumed energy, the possibility of automated metering and control of consumed electricity.

Publication: cxem.net

See other articles Section Electric meters.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

Machine for thinning flowers in gardens 02.05.2024

In modern agriculture, technological progress is developing aimed at increasing the efficiency of plant care processes. The innovative Florix flower thinning machine was presented in Italy, designed to optimize the harvesting stage. This tool is equipped with mobile arms, allowing it to be easily adapted to the needs of the garden. The operator can adjust the speed of the thin wires by controlling them from the tractor cab using a joystick. This approach significantly increases the efficiency of the flower thinning process, providing the possibility of individual adjustment to the specific conditions of the garden, as well as the variety and type of fruit grown in it. After testing the Florix machine for two years on various types of fruit, the results were very encouraging. Farmers such as Filiberto Montanari, who has used a Florix machine for several years, have reported a significant reduction in the time and labor required to thin flowers. ... >>

Advanced Infrared Microscope 02.05.2024

Microscopes play an important role in scientific research, allowing scientists to delve into structures and processes invisible to the eye. However, various microscopy methods have their limitations, and among them was the limitation of resolution when using the infrared range. But the latest achievements of Japanese researchers from the University of Tokyo open up new prospects for studying the microworld. Scientists from the University of Tokyo have unveiled a new microscope that will revolutionize the capabilities of infrared microscopy. This advanced instrument allows you to see the internal structures of living bacteria with amazing clarity on the nanometer scale. Typically, mid-infrared microscopes are limited by low resolution, but the latest development from Japanese researchers overcomes these limitations. According to scientists, the developed microscope allows creating images with a resolution of up to 120 nanometers, which is 30 times higher than the resolution of traditional microscopes. ... >>

Air trap for insects 01.05.2024

Agriculture is one of the key sectors of the economy, and pest control is an integral part of this process. A team of scientists from the Indian Council of Agricultural Research-Central Potato Research Institute (ICAR-CPRI), Shimla, has come up with an innovative solution to this problem - a wind-powered insect air trap. This device addresses the shortcomings of traditional pest control methods by providing real-time insect population data. The trap is powered entirely by wind energy, making it an environmentally friendly solution that requires no power. Its unique design allows monitoring of both harmful and beneficial insects, providing a complete overview of the population in any agricultural area. “By assessing target pests at the right time, we can take necessary measures to control both pests and diseases,” says Kapil ... >>

Random news from the Archive

Always white apple 15.08.2007

Canadian breeders have developed an apple variety that does not turn brown on the cut.

In an ordinary apple, when the integrity of its tissues is violated, phenolic compounds and the polyphenol oxidase enzyme contained in different "compartments" of the whole cell begin to contact each other. When the walls between the "compartments" are broken, a chemical reaction produces oxidized brown compounds that are not palatable to insects and have an antibacterial effect. That is, for the plant, this reaction has a protective character.

But apple lovers do not like this color change. The new variety, called Edem, is low in phenolics, so the pieces stay white in fruit salad. But the taste of the new variety is no worse than the well-known ones. And for gardeners, he has another important advantage: the fruits, even when ripe, do not fall from the branches, but wait until they are removed. This means that the percentage of losses is lower.

It remains to be seen by experience whether the absence of protective compounds will affect the health of apples.

Other interesting news:

▪ Gravitational waves fixed

▪ Bathers in the middle of the desert

▪ LG transparent display

▪ Dark matter particles can be ultralight

▪ Two wheeled electric car

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the website Electrotechnical materials. Article selection

▪ Eve article. Popular expression

▪ article How do you get a tan? Detailed answer

▪ Jaboticaba article. Legends, cultivation, methods of application

▪ article Polyethylene terephthalate film. Encyclopedia of radio electronics and electrical engineering

▪ article Loudspeaker with low-pass filter for a radio receiver or radio station. Encyclopedia of radio electronics and electrical engineering

Leave your comment on this article:

Name:


Email (optional):


A comment:





All languages ​​of this page

Home page | Library | Articles | Website map | Site Reviews

www.diagram.com.ua

www.diagram.com.ua
2000-2024