Metering module for controlling and protecting switching device

By introducing current transformers, voltage transformers, resistor dividers, and microcontrollers into the control and protection switching appliances, the problem of accurate metering in the metering module is solved, and high-precision power metering and remote monitoring are realized.

CN223870738UActive Publication Date: 2026-02-03ZHEJIANG ZHONGKAI SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202423319039.8
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2026-02-03
Estimated Expiration
2034-12-31

AI Technical Summary

Technical Problem

Existing control and protection switchgear lacks metering functions, making it difficult to meet the market's demand for accurate metering.

Method used

Current transformers and voltage transformers are used for signal acquisition, and a resistor divider unit and microcontroller are used for signal conversion and measurement. A filter circuit is added to remove noise, and information exchange is achieved through a communication interface.

Benefits of technology

It improves data acquisition accuracy and metering accuracy, enables remote monitoring and parameter modification, and meets the needs of enterprise users for power monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223870738U_ABST
    Figure CN223870738U_ABST
Patent Text Reader

Abstract

The utility model relates to the technical field of electric energy metering, and discloses a metering module for controlling and protecting a switching device, which comprises a current transformer, a voltage transformer, a first resistance voltage dividing unit, a second resistance voltage dividing unit and a microcontroller, the current transformer is used for collecting a current analog signal of alternating current in the CPS; the voltage transformer is used for collecting a voltage analog signal of alternating current in the CPS; the first resistance voltage division unit is used for performing voltage division on the collected current analog signal to obtain a first voltage analog signal suitable for metering; the second resistance voltage division unit is used for performing voltage division on the acquired voltage analog signal to obtain a second voltage analog signal suitable for metering; and the microcontroller is used for respectively converting the first voltage analog signal and the second voltage analog signal into a first voltage digital signal and a second voltage digital signal, and then metering the electric energy of the alternating current in the CPS. According to the utility model, the electric energy of the alternating current inside the CPS can be accurately metered.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This utility model relates to the field of metering technology, specifically to a metering module for controlling and protecting switching electrical appliances. Background Technology

[0002] In related technologies, control and protective switching devices (CPS) rarely have metering functions, making it difficult to meet market demands for accurate metering of control and protective switching devices. Utility Model Content

[0003] In view of this, the present invention provides a metering module for controlling and protecting switching electrical appliances to solve the technical problems in the related art.

[0004] This utility model embodiment provides a metering module for controlling and protecting switching electrical appliances, including: a current transformer, a voltage transformer, a first resistor voltage divider unit, a second resistor voltage divider unit, and a microcontroller;

[0005] The current transformer is used to collect the analog current signal of the AC power inside the CPS;

[0006] The voltage transformer is used to collect the voltage analog signal of the AC power inside the CPS;

[0007] The first resistor voltage divider unit is connected to the current transformer and is used to divide the acquired current analog signal to obtain a first voltage analog signal suitable for measurement.

[0008] The second resistor voltage divider unit is connected to the voltage transformer and is used to divide the acquired voltage analog signal to obtain a second voltage analog signal suitable for measurement.

[0009] The microcontroller is connected to the first resistor voltage divider unit and the second resistor voltage divider unit respectively, and is used to convert the first voltage analog signal and the second voltage analog signal into a first voltage digital signal and a second voltage digital signal respectively, and to measure the electrical energy of the AC power inside the CPS according to the first voltage digital signal and the second voltage digital signal.

[0010] In one alternative implementation, the microcontroller includes: a storage unit;

[0011] The storage unit is used to store electrical energy measured by the internal AC power meter of the CPS.

[0012] In one alternative implementation, the microcontroller includes: a clock unit;

[0013] The clock unit is used to record the time data corresponding to the pulse;

[0014] The microcontroller is also used to count the total number of pulses within a preset time period, and to obtain the electrical energy corresponding to the internal AC power of the CPS within the preset time period based on the total number of pulses, the preset pulse constant, the first voltage digital signal, and the second voltage digital signal.

[0015] In one alternative implementation, it further includes: a communication interface;

[0016] The communication interface is connected to the CPS controller and the microcontroller respectively, and is used to realize information interaction between the CPS controller and the microcontroller.

[0017] The microcontroller is also used to acquire or modify information related to electrical energy according to the control instructions generated by the CPS controller.

[0018] In one optional implementation, the first resistor divider unit includes four resistors;

[0019] One end of the first resistor is connected to one end of the second resistor and one end of the current transformer. The other end of the first resistor is connected to the microcontroller. The other end of the second resistor is connected to one end of the third resistor and the ground terminal. The other end of the third resistor is connected to the other end of the current transformer and one end of the fourth resistor. The other end of the fourth resistor is connected to the microcontroller.

[0020] In one optional implementation, it further includes: a first filter circuit and a second filter circuit;

[0021] The first filtering circuit is connected between the first resistor divider unit and the microcontroller, and is used to filter the first voltage analog signal suitable for measurement.

[0022] The second filter circuit is connected between the second resistor divider unit and the microcontroller, and is used to filter the second voltage analog signal suitable for measurement.

[0023] In one optional implementation, the first filter circuit includes a first capacitor and a second capacitor;

[0024] One end of the first capacitor is connected to one end of the second capacitor and the ground terminal, respectively. The other ends of the first capacitor and the second capacitor are both connected to the microcontroller and the first resistor divider unit.

[0025] In one optional implementation, the clock unit includes a third capacitor, a fourth capacitor, a fifth resistor, and a crystal oscillator;

[0026] One end of the third capacitor is connected to one end of the fourth capacitor and the ground terminal. The other end of the third capacitor is connected to one end of the fifth resistor and one end of the crystal oscillator. The other end of the fourth capacitor is connected to the other end of the fifth resistor and the other end of the crystal oscillator. Both ends of the crystal oscillator are also connected to the microcontroller.

[0027] As can be seen from the above technical solutions, this utility model has the following advantages:

[0028] 1. By acquiring current and voltage data using high-precision current and voltage transformers, the accuracy of data acquisition can be greatly improved. Furthermore, by using a resistor voltage divider unit to divide the voltage, the current signal is converted into a voltage signal with strong anti-interference capabilities, enabling accurate measurement under safe conditions.

[0029] 2. A filter circuit is connected after the resistor voltage divider unit to remove noise and interference from the electrical signal, thereby smoothing the data and further improving the accuracy and reliability of the metering module's power metering.

[0030] 3. By adding a communication interface, information interaction between the CPS controller and the microcontroller is realized, allowing users to control the metering module's parameters and view related information through the CPS controller, thereby achieving remote monitoring and benefiting enterprise users in monitoring electricity. Attached Figure Description

[0031] To more clearly illustrate the specific embodiments of this utility model or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this utility model. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0032] Figure 1 This is a structural block diagram of the metering module for controlling and protecting switching electrical appliances provided in this embodiment of the utility model.

[0033] Figure 2 This is a pin diagram of the microcontroller chip provided in this embodiment of the utility model;

[0034] Figure 3 This is a circuit schematic diagram of the clock unit provided in an embodiment of the present invention;

[0035] Figure 4 This is a circuit diagram of the first resistor voltage divider unit and the first filter unit of phase A provided in this embodiment of the utility model;

[0036] Figure 5This is a circuit diagram of the first resistor voltage divider unit and the first filter unit of phase B provided in this embodiment of the utility model;

[0037] Figure 6 This is a circuit diagram of the first resistor voltage divider unit and the first filter unit of phase C provided in this embodiment of the utility model;

[0038] Figure 7 This is a circuit diagram of the second resistor voltage divider unit and the second filter unit of phase A provided in this embodiment of the utility model;

[0039] Figure 8 This is a circuit diagram of the second resistor voltage divider unit and the second filter unit of phase B provided in this embodiment of the utility model;

[0040] Figure 9 This is a circuit diagram of the second resistor voltage divider unit and the second filter unit of phase C provided in this embodiment of the utility model. Attached image description:

[0042] 1. Current transformer; 2. Voltage transformer; 3. First resistor voltage divider unit; 4. Second resistor voltage divider unit; 5. Microcontroller; 501. Storage unit; 502. Clock unit; 6. Communication interface; 7. First filter circuit; 8. Second filter circuit; C3. First capacitor; C4. Second capacitor; C15. Third capacitor; C16. Fourth capacitor; C9. Fifth capacitor; C10. Sixth capacitor; R5. First resistor; R6. Second resistor; R7. Third resistor; R8. Fourth resistor; R33. Fifth resistor; R17. Sixth resistor; R18. Seventh resistor; R20. Eighth resistor; R21. Ninth resistor; CR1. Crystal oscillator. Detailed Implementation

[0043] The technical solution of this utility model will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this utility model. Based on the embodiments of this utility model, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this utility model.

[0044] In the description of this utility model, it should be noted that the terms "upper," "lower," "left," "right," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing this utility model and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this utility model. Furthermore, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0045] In the description of this utility model, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can also refer to the internal connection of two components; and they can refer to a wireless connection or a wired connection. Those skilled in the art can understand the specific meaning of the above terms in this utility model based on the specific circumstances.

[0046] Furthermore, the technical features involved in the different embodiments of this utility model described below can be combined with each other as long as they do not conflict with each other.

[0047] This utility model provides a metering module for control and protection switching devices, which is suitable for energy metering of control and protective switching devices (CPS).

[0048] Figure 1 This is a structural block diagram of a metering module for controlling and protecting switching electrical appliances according to an embodiment of the present utility model, as shown below. Figure 1 As shown, this utility model embodiment provides a metering module for controlling and protecting switching electrical appliances, including: a current transformer 1, a voltage transformer 2, a first resistor voltage divider unit 3, a second resistor voltage divider unit 4, and a microcontroller 5.

[0049] Specifically, current transformer 1 is used to acquire the analog current signal of the AC power inside the CPS; voltage transformer 2 is used to acquire the analog voltage signal of the AC power inside the CPS; a first resistor voltage divider unit 3 is connected to current transformer 1, and the first resistor voltage divider unit 3 is used to divide the acquired analog current signal to obtain a first analog voltage signal suitable for measurement; a second resistor voltage divider unit 4 is connected to voltage transformer 2, and the second resistor voltage divider unit 4 is used to divide the acquired analog voltage signal to obtain a second analog voltage signal suitable for measurement; a microcontroller 5 is connected to the first resistor voltage divider unit 3 and the second resistor voltage divider unit 4 respectively, and the microcontroller 5 is used to convert the first analog voltage signal and the second analog voltage signal into a first digital voltage signal and a second digital voltage signal respectively, and to measure the electrical energy of the AC power inside the CPS based on the first digital voltage signal and the second digital voltage signal.

[0050] The internal AC power of the CPS can be the AC power used to control and protect the operation of the switching device. In one example, the internal AC power of the CPS can be 220V 50Hz AC mains power.

[0051] The current transformer 1 operates based on the law of electromagnetic induction. Internally, it contains a primary winding and a secondary winding. When a primary current flows through the primary winding of the current transformer 1, an alternating magnetic field is generated in the iron core. This alternating magnetic field induces an electromotive force in the secondary winding, thus generating a secondary current. Since the number of turns in the secondary winding is much greater than that in the primary winding, the secondary current is proportional to the primary current, but its value is much smaller. In other words, the turns ratio of the primary to secondary windings is inversely proportional to the voltage ratio between the primary and secondary sides. In one example, the turns ratio of the current transformer is 5:1000, meaning that when the primary current is 1000A, the secondary current is 5A. Therefore, by measuring the secondary current, the magnitude of the primary current can be indirectly determined.

[0052] The voltage transformer 2 operates based on the principle of electromagnetic induction. Internally, it includes a primary winding, a secondary winding, and a closed iron core. The primary winding receives the AC current from the CPS (Cyclic Switched Power Supply), while the secondary winding is the output winding. When a voltage is applied to the primary winding, an AC current flows through it, generating an alternating magnetic flux in the iron core with the same frequency as the AC current inside the CPS. According to the law of electromagnetic induction, the secondary winding generates an induced electromotive force (EMF) with the same frequency but a different value. The difference in the number of turns results in different induced EMFs between the two windings, specifically, N1 / N2 = U1 / U2, meaning the turns ratio of the primary and secondary windings is directly proportional to the voltage ratio between the primary and secondary sides. In one example, the turns ratio of the voltage transformer is 1000:5, meaning that when the primary voltage is 1000V, the secondary current is 5V. Therefore, by measuring the secondary voltage, the magnitude of the primary voltage can be indirectly determined.

[0053] Since the internal AC current of a CPS is usually high voltage and high current, it can easily damage the measuring equipment or endanger personnel safety. This utility model embodiment uses current transformer 1 and voltage transformer 2 to convert high current into low current and high voltage into low voltage, so as to achieve accurate measurement under the premise of safety.

[0054] It should be noted that the current analog signal of the internal AC power of the CPS collected by current transformer 1 is a current analog signal that has been converted to a small current on the secondary side, and the voltage analog signal of the internal AC power of the CPS collected by voltage transformer 2 is a current analog signal that has been converted to a low voltage on the secondary side.

[0055] Since voltage signals are more stable and reliable in transmission and processing, the first resistor voltage divider unit 3 converts the current analog signal output from the secondary side of the current transformer 1 into a first voltage analog signal suitable for measurement, making measurement and signal processing more convenient. In addition, the voltage signal has strong anti-interference ability, which can improve the accuracy of measurement.

[0056] The second resistor voltage divider unit 4 converts the voltage analog signal output from the secondary side of the voltage transformer 2 into a first voltage analog signal suitable for measurement, which can ensure that the output voltage value is reduced to the voltage value range required by the microcontroller, thereby avoiding overvoltage.

[0057] like Figure 2 As shown, the microcontroller 5 may include programmable logic control components (such as PLC or CPU), memory, and electronic components connected to the programmable logic control components, which are well known to those skilled in the art and will not be described in detail here.

[0058] As an example, microcontroller 5 can obtain the voltage value before voltage division, i.e., the secondary voltage value, based on the second voltage digital signal and the resistance values ​​of each resistor in the second resistor divider unit. Then, based on the turns ratio of voltage transformer 2, it can obtain the primary voltage value (measured value). Microcontroller 5 can obtain the current value before voltage division, i.e., the secondary current value, based on the first voltage digital signal and the resistance values ​​of each resistor in the first resistor divider unit. Then, based on the turns ratio of current transformer 1, it can obtain the primary current value (measured value). At this time, given the primary voltage value and primary current value, the real-time active power is calculated and converted into pulses. Simultaneously, the microcontroller 5 records the time data corresponding to the pulses according to the clock unit inside the microcontroller 5. The microcontroller 5 counts the number of pulses within the target time period based on the time data to obtain the corresponding pulse count. And based on the corresponding pulse count and the preset pulse constant, the electrical energy within the target time period is obtained.

[0059] In one alternative implementation, the microcontroller 5 includes a storage unit 501.

[0060] Specifically, storage unit 501 is used to store electrical energy measured by AC power within the CPS.

[0061] In one alternative implementation, the microcontroller 5 includes a clock unit 502.

[0062] Specifically, the clock unit 502 is used to record the time data corresponding to the pulse.

[0063] The microcontroller 5 is also used to count the total number of pulses within a preset time period, and to obtain the electrical energy corresponding to the internal AC power of the CPS within the preset time period based on the total number of pulses, the preset pulse constant, the first voltage digital signal, and the second voltage digital signal.

[0064] It should be noted that the preset time period and preset pulse constant can be set according to actual needs, and no specific limitations are made here.

[0065] In one alternative implementation, such as Figure 3As shown, the clock unit 502 includes a third capacitor C15, a fourth capacitor C16, a fifth resistor R33, and a crystal oscillator CR1;

[0066] One end of the third capacitor C15 is connected to one end of the fourth capacitor C16 and the ground terminal. The other end of the third capacitor C15 is connected to one end of the fifth resistor R33 and one end of the crystal oscillator CR1. The other end of the fourth capacitor C16 is connected to the other end of the fifth resistor R33 and the other end of the crystal oscillator CR1. Both ends of the crystal oscillator are also connected to the microcontroller 5.

[0067] In one alternative implementation, one end of the crystal oscillator CR1 is connected to pin 37 (OSCI pin) of the microcontroller 5, and the other end of the crystal oscillator CR1 is connected to pin 36 (OSCO pin) of the microcontroller 5.

[0068] In one optional implementation, the metering module for controlling and protecting switching electrical appliances further includes: a communication interface 6;

[0069] Communication interface 6 is connected to both the CPS controller and the microcontroller 5 to enable information exchange between the CPS controller and the microcontroller.

[0070] The microcontroller 5 is also used to acquire or modify energy-related information based on control instructions generated by the CPS controller.

[0071] In one alternative implementation, the communication interface 6 is preferably an SPI interface.

[0072] In one alternative implementation, such as Figure 4 As shown, the first resistor voltage divider unit 3 includes: four resistors;

[0073] One end of the first resistor R5 is connected to one end of the second resistor R6 and one end of the current transformer 1 (CT2). The other end of the first resistor R5 is connected to the microcontroller 5. The other end of the second resistor R6 is connected to one end of the third resistor R7 and the ground terminal. The other end of the third resistor R7 is connected to the other end of the current transformer 1 and one end of the fourth resistor R8. The other end of the fourth resistor R8 is connected to the microcontroller 5.

[0074] In one alternative implementation, the other end of the first resistor R5 is connected to pin 4 (IAP pin) of the microcontroller 5, and the other end of the fourth resistor R8 is connected to pin 5 (IAN pin) of the microcontroller 5.

[0075] It should be noted that the internal AC power of the CPS is three-phase AC, namely phase A, phase B, and phase C. Its current transformer 1 can collect the current analog signal of any one of phases A, B, or C. The circuit structure of the first resistor voltage divider unit 3 mentioned above only takes phase A as an example. The circuit structures of the first resistor voltage divider units 3 corresponding to the other phases B and C are the same as those of phase A, as follows: Figure 5 and Figure 6 As shown, the only difference is that the pins connected to microcontroller 5 are different.

[0076] In one example, one end of the first resistor voltage divider unit 3 of phase B is connected to pin 7 (IBP pin) of the microcontroller, and the other end is connected to pin 8 (IB N pin) of the microcontroller 5.

[0077] In one example, one end of the first resistor divider unit 3 of phase C is connected to pin 10 (ICP pin) of the microcontroller, and the other end is connected to pin 11 (ICN pin) of the microcontroller 5.

[0078] In one alternative implementation, such as Figure 7 As shown, the second resistor voltage divider unit 4 also includes four resistors;

[0079] One end of the sixth resistor R17 is connected to one end of the seventh resistor R18 and the third pin of the voltage transformer 2 (U1). The other end of the sixth resistor R17 is connected to the microcontroller 5. The other end of the seventh resistor R18 is connected to one end of the eighth resistor R20 and the ground terminal. The other end of the eighth resistor R20 is connected to the fourth pin of the current transformer 1 and one end of the ninth resistor R21. The other end of the ninth resistor R21 is connected to the microcontroller 5.

[0080] In one alternative implementation, the other end of the sixth resistor R17 is connected to pin 12 (VAP pin) of the microcontroller 5, and the other end of the ninth resistor R21 is connected to pin 13 (VAN pin) of the microcontroller 5.

[0081] It should also be noted that the internal AC power of the CPS is three-phase AC, namely phase A, phase B, and phase C. Its voltage transformer 2 can collect the voltage analog signal of any one of phases A, B, or C. The circuit structure of the aforementioned second resistor voltage divider unit 4 is only based on phase A; the circuit structures of the second resistor voltage divider units 4 corresponding to the other phases B and C are the same as those for phase A. Figure 8 and Figure 9 As shown, the only difference is that the pins connected to microcontroller 5 are different.

[0082] In one example, one end of the second resistor voltage divider unit 4 of phase B is connected to pin 14 (VBP pin) of the microcontroller, and the other end is connected to pin 15 (VBN pin) of the microcontroller 5.

[0083] In one example, one end of the second resistor voltage divider unit 4 of phase C is connected to pin 16 (VCP pin) of the microcontroller, and the other end is connected to pin 17 (ICN pin) of the microcontroller 5.

[0084] Two resistors are connected in series at the front end of voltage transformer 2.

[0085] In one optional implementation, the metering module for controlling and protecting switching electrical appliances further includes: a first filter circuit 7 and a second filter circuit 8.

[0086] Specifically, the first filter circuit 7 is connected between the first resistor voltage divider unit 3 and the microcontroller 5, and the first filter circuit 7 is used to filter the first voltage analog signal suitable for measurement; the second filter circuit 8 is connected between the second resistor voltage divider unit 4 and the microcontroller 5, and the second filter circuit 8 is used to filter the second voltage analog signal suitable for measurement.

[0087] In one alternative implementation, such as Figure 4 As shown, the first filter circuit 7 includes a first capacitor C3 and a second capacitor C4; one end of the first capacitor C3 is connected to one end of the second capacitor C4 and the ground terminal, and the other end of the first capacitor C3 and the other end of the second capacitor C4 are both connected to the microcontroller 5 and the first resistor voltage divider unit 3.

[0088] In one alternative implementation, the other end of the first capacitor C3 is connected to pin 4 (IAP pin) of the microcontroller 5, and the other end of the second capacitor C4 is connected to pin 5 (IAN pin) of the microcontroller 5.

[0089] It should also be noted that the internal AC power of the CPS is three-phase AC, namely phase A, phase B, and phase C. Its current transformer 1 can collect the voltage analog signal of any one of phases A, B, or C. The circuit structure of the first filter circuit 7 mentioned above only takes phase A as an example. The circuit structures of the first filter circuit 7 corresponding to the other phases B and C are the same as those of phase A, such as... Figure 5 and Figure 6 As shown, the only difference is that the pins connected to microcontroller 5 are different.

[0090] In one example, one end of the first filter circuit 7 of phase B is connected to pin 7 (IBP pin) of the microcontroller, and the other end is connected to pin 8 (IB N pin) of the microcontroller 5.

[0091] In one example, one end of the first filter circuit 7 of phase C is connected to pin 10 (ICP pin) of the microcontroller, and the other end is connected to pin 11 (ICN pin) of the microcontroller 5.

[0092] In one alternative implementation, such as Figure 7 As shown, the second filter circuit 8 includes a fifth capacitor C9 and a sixth capacitor C10; one end of the fifth capacitor C9 is connected to one end of the sixth capacitor C10 and the ground terminal, and the other ends of the fifth capacitor C9 and the sixth capacitor C10 are both connected to the microcontroller 5 and the second resistor voltage divider unit 4.

[0093] In one alternative implementation, the other end of the fifth capacitor C9 is connected to pin 12 (VAP pin) of the microcontroller 5, and the other end of the sixth capacitor C10 is connected to pin 13 (VAN pin) of the microcontroller 5.

[0094] It should also be noted that the internal AC power of the CPS is three-phase AC, namely phase A, phase B, and phase C. Its voltage transformer 2 can collect the voltage analog signal of any one of phases A, B, or C. The circuit structure of the aforementioned second filter circuit 8 is only based on phase A; the circuit structures of the second filter circuit 8 corresponding to the other phases B and C are the same as those of phase A, such as... Figure 8 and Figure 9 As shown, the only difference is that the pins connected to microcontroller 5 are different.

[0095] In one example, one end of the second filter circuit 8 of phase B is connected to pin 14 (VBP pin) of the microcontroller, and the other end is connected to pin 15 (VBN pin) of the microcontroller 5.

[0096] In one example, one end of the second filter circuit 8 of phase C is connected to pin 16 (VCP pin) of the microcontroller, and the other end is connected to pin 17 (ICN pin) of the microcontroller 5.

[0097] In summary, the embodiments of this utility model have the following advantages:

[0098] As can be seen from the above technical solutions, this utility model has the following advantages:

[0099] 1. By acquiring current and voltage data using high-precision current and voltage transformers, the accuracy of data acquisition can be greatly improved. Furthermore, by using a resistor voltage divider unit to divide the voltage, the current signal is converted into a voltage signal with strong anti-interference capabilities, enabling accurate measurement under safe conditions.

[0100] 2. A filter circuit is connected after the resistor voltage divider unit to remove noise and interference from the electrical signal, thereby smoothing the data and further improving the accuracy and reliability of the metering module's power metering.

[0101] 3. By adding a communication interface, information interaction between the CPS controller and the microcontroller is realized, allowing users to control the metering module's parameters and view related information through the CPS controller, thereby achieving remote monitoring and benefiting enterprise users in monitoring electricity.

[0102] Although the exemplary embodiments and their advantages have been described in detail, those skilled in the art can make various changes, substitutions and modifications to these embodiments without departing from the spirit and scope of protection of this utility model, and such modifications and variations all fall within the scope defined by the present invention.

Claims

1. A metering module for controlling and protecting switching electrical appliances, characterized in that, include: Current transformer, voltage transformer, first resistor voltage divider unit, second resistor voltage divider unit, and microcontroller; The current transformer is used to collect the analog current signal of the AC power inside the CPS; The voltage transformer is used to collect the voltage analog signal of the AC power inside the CPS; The first resistor voltage divider unit is connected to the current transformer and is used to divide the acquired current analog signal to obtain a first voltage analog signal suitable for measurement. The second resistor voltage divider unit is connected to the voltage transformer and is used to divide the acquired voltage analog signal to obtain a second voltage analog signal suitable for measurement. The microcontroller is connected to the first resistor voltage divider unit and the second resistor voltage divider unit respectively, and is used to convert the first voltage analog signal and the second voltage analog signal into a first voltage digital signal and a second voltage digital signal respectively, and to measure the electrical energy of the AC power inside the CPS according to the first voltage digital signal and the second voltage digital signal.

2. The metering module according to claim 1, characterized in that, The microcontroller includes: a storage unit; The storage unit is used to store electrical energy measured by the internal AC power meter of the CPS.

3. The metering module according to claim 2, characterized in that, The microcontroller includes: a clock unit; The clock unit is used to record the time data corresponding to the pulse; The microcontroller is also used to count the total number of pulses within a preset time period, and to obtain the electrical energy corresponding to the internal AC power of the CPS within the preset time period based on the total number of pulses, the preset pulse constant, the first voltage digital signal, and the second voltage digital signal.

4. The metering module according to claim 1, characterized in that, Also includes: Communication interface; The communication interface is connected to the CPS controller and the microcontroller respectively, and is used to realize information interaction between the CPS controller and the microcontroller. The microcontroller is also used to acquire or modify power information according to the control instructions generated by the CPS controller.

5. The metering module according to claim 1, characterized in that, The first resistor voltage divider unit includes: four resistors; One end of the first resistor is connected to one end of the second resistor and one end of the current transformer. The other end of the first resistor is connected to the microcontroller. The other end of the second resistor is connected to one end of the third resistor and the ground terminal. The other end of the third resistor is connected to the other end of the current transformer and one end of the fourth resistor. The other end of the fourth resistor is connected to the microcontroller.

6. The metering module according to claim 1, characterized in that, Also includes: First filter circuit and second filter circuit; The first filtering circuit is connected between the first resistor divider unit and the microcontroller, and is used to filter the first voltage analog signal suitable for measurement. The second filtering circuit is connected between the second resistor divider unit and the microcontroller, and is used to filter the second voltage analog signal suitable for measurement.

7. The metering module according to claim 6, characterized in that, The first filter circuit includes a first capacitor and a second capacitor; One end of the first capacitor is connected to one end of the second capacitor and the ground terminal, and the other end of the first capacitor and the other end of the second capacitor are both connected to the microcontroller and the first resistor divider unit.

8. The metering module according to claim 3, characterized in that, The clock unit includes a third capacitor, a fourth capacitor, a fifth resistor, and a crystal oscillator; One end of the third capacitor is connected to one end of the fourth capacitor and the ground terminal, respectively. The other end of the third capacitor is connected to one end of the fifth resistor and one end of the crystal oscillator, respectively. The other end of the fourth capacitor is connected to the other end of the fifth resistor and the other end of the crystal oscillator, respectively. Both ends of the crystal oscillator are also connected to the microcontroller.