A magnetic latching relay driver chip

By combining the gate control module and power protection module in the magnetic holding relay driver chip, the relay current is timely controlled to enter the pull-out state and maintain power supply when the relay current is zero, solving the arc pulling phenomenon and power loss when the magnetic holding relay is disconnected. The electrical problem has improved the working efficiency of the electric meter and the service life of the relay.

CN118213937BActive Publication Date: 2024-11-22HANGZHOU YUDIAN MICROELECTRONICS CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202410377879.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-29
Publication Date
2024-11-22
Estimated Expiration
2044-03-29

AI Technical Summary

Technical Problem

The magnetic holding relay is prone to arcing when it is disconnected, causing contact burning and power loss, affecting the normal working efficiency of the power meter.

Method used

Design a magnetic relay driver chip, including a gate control module, a zero crossing detection module and a power supply protection module, and promptly detect the current value through the zero crossing detection module to obtain the pull-off start signal, and control the relay current to enter the pull-off when the relay current is zero. At the same time, the power protection module ensures continuous power supply and avoids power loss.

Benefits of technology

It effectively reduces the power supply power outage and heating caused by the relay due to the pull-up and closing, improves the normal working efficiency of the power meter, and extends the service life of the relay.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118213937B_ABST
    Figure CN118213937B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of relay chip control, and in particular to a magnetic latching relay driver chip, which includes a relay in a ready-to-switch state: a zero-crossing detection module is used to detect the current value of the relay when it is in a closed state, and obtain a switch-on start signal based on the current value, and send the switch-on start signal to a gate control module, so that the gate control module controls the relay to enter a closed state at zero current based on the switch-on start signal; a power protection module is used to obtain the relay power value, and compare the relay power value with a preset value, and if the relay power value is less than the preset value, a power supply signal is generated, and the power supply signal is sent to the gate control module to control the power protection module to continuously supply power to the relay. The present application has the advantages of reducing abnormal phenomena such as power failure and rapid temperature rise caused by switching on and off the relay, and improving the normal working efficiency of the electric energy meter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of relay chip control, and in particular to a magnetic latching relay driver chip. Background Art

[0002] The magnetic latching relay is an energy-saving relay that relies on the suction of the permanent magnet in the relay to maintain its state. The electric energy in the driving coil is only required at the moment when the relay state changes. Therefore, it is particularly suitable for products with strict requirements on static power consumption, such as smart meters.

[0003] At present, the electricity meters in the market generally have fee control functions, which are divided into prepaid and postpaid functions. If the user does not pay the electricity bill, the prepaid electricity meter will execute the local power-off function when the remaining electricity bill is zero; if it is a remote fee-controlled electricity meter, the power company or landlord or property can use the system to remotely shut down through 4G / NB-IoT to power line carrier communication or Bluetooth communication, Wi-Fi communication.

[0004] However, when the power supply to the user is cut off when the relay current value is at the highest current, the relay will produce severe arcing at the moment of disconnection, causing the relay contacts to burn each time the relay is pulled open, so that the contact impedance between the contacts will gradually increase, which means that the same current will flow through and the relay will heat up more severely. In addition, the power required by the magnetic holding relay at the moment of disconnection is still relatively large, which will cause the power meter to experience abnormal phenomena such as power failure and rapid temperature rise and cannot work normally. Summary of the invention

[0005] In order to reduce abnormal phenomena such as power failure and rapid temperature rise caused by the opening and closing of the relay, and to improve the normal working efficiency of the electric energy meter, the present application provides a magnetic holding relay driver chip.

[0006] The present application provides a magnetic latching relay driver chip, which adopts the following technical solution:

[0007] A magnetic latching relay driver chip is used in an electric energy meter. The relay has a switch-off preparation state, a switch-off state and a switch-on state. The switch-off preparation state indicates that the relay is ready to enter the switch-off state from the switch-on state. The chip includes a gate control module, a zero-crossing detection module and a power protection module. The gate control module is connected to the zero-crossing detection module, and the gate control module is connected to the power protection module.

[0008] When the relay is in the ready state:

[0009] The zero-crossing detection module is used to detect the current value of the relay in the closed state, and obtain a switch-off start signal according to the current value, and send the switch-off start signal to the gate control module, so that the gate control module controls the relay to enter the switch-off state at zero current according to the switch-off start signal;

[0010] The power protection module is used to obtain the relay power value and compare the relay power value with a preset value. If the relay power value is less than the preset value, a power supply signal is generated and sent to the gate control module to control the power protection module to continuously power the relay.

[0011] By adopting the above technical scheme, when the relay is in the switch-off preparation state, the zero-crossing detection module timely detects the current value of the relay and processes the current value to obtain a switch-off start signal, and sends the switch-off start signal to the gate control module, so that the gate control module can timely control the relay to enter the switch-off state when the relay current value is zero according to the switch-off start signal. At the same time, the power protection module continuously supplies power to the relay to control the power protection module to continuously supply power to the relay, so that the relay can successfully enter the switch-off state from the closing state in the switch-off preparation state without causing the power supply of the relay to be cut off, thereby reducing abnormal phenomena such as power failure and rapid temperature rise caused by closing and pulling of the relay, and improving the normal working efficiency of the electric energy meter.

[0012] In one embodiment, the zero-crossing detection module includes a data setting unit, which is used to obtain relay operating parameters, calculate the power-off start time based on the relay operating parameters and the current value, and generate the power-off start signal based on the power-off start time.

[0013] By adopting the above technical solution, the power-off start time is calculated according to the data setting unit, and the power-off start signal is generated according to the power-off start time, thereby ensuring that when the relay current value is zero, the gate control module controls the gate of the relay to disconnect, thereby reducing the arc caused by the large current switching on the relay, which causes the relay contacts to burn.

[0014] In one embodiment, the power-off start signal includes a power-off interval time, and the data setting unit is used to obtain the coil resistance value according to the relay operating parameters, obtain the coil action time according to the coil resistance value, and obtain the power-off interval time according to the product of the coil action time and a preset multiple value.

[0015] By adopting the above technical solution, after the relay is successfully switched off, it is necessary to set a corresponding switching interval time, so as to ensure that the magnet of the relay has sufficient time to disconnect. Therefore, the switching start signal includes the switching interval time, so that the data setting unit obtains the coil resistance value according to the relay operating parameters, obtains the coil action time according to the coil resistance value, and obtains the switching interval time according to the product of the coil action time and the preset multiple value, thereby improving the accuracy of the relay entering the switching state.

[0016] In one embodiment, it also includes a status detection module, which is connected to the gate control module. After the relay is in the power-off preparation state, the status detection module is used to detect the voltage signal of the relay and determine whether the status detection module detects the voltage signal. If the status detection module cannot detect the voltage signal, it is determined that the relay is successfully powered on, and a power-off success signal is sent to the gate control module.

[0017] By adopting the above technical solution, the gate control module controls the relay from the switch-off preparation state to the switch-off state, and the state detection module detects whether there is a voltage signal on the relay. If the state detection module cannot detect the voltage signal, it is determined that the relay is successfully switched on, and a switch-off success signal is sent to the gate control module. Therefore, the gate control module can promptly obtain whether the relay is currently in the switch-off state, avoiding the adhesion of the relay contacts that makes the relay unable to switch normally, reducing the abnormal phenomenon of the relay due to the opening and closing of the switch, and improving the normal working efficiency of the electric energy meter.

[0018] In one embodiment, the state detection module includes a state display unit, and the state display unit displays that the relay is in a closed state upon receiving the power-off success signal.

[0019] By adopting the above technical solution, the current state of the relay is displayed based on the state display unit, thereby avoiding repeated operations on the relay, reducing abnormal phenomena caused by the relay being opened and closed, and improving the normal working efficiency of the electric energy meter.

[0020] In one embodiment, the power protection module includes a capacitor detection unit, which is used to obtain a capacitor voltage value based on the detection capacitor when the relay is in a power-off preparation state, and compare the capacitor voltage value with a preset threshold value. If the capacitor voltage value is lower than the preset threshold value, a power-off prohibition signal is generated, and the power-off prohibition signal is sent to the gate control module to control the relay to stop entering the power-off state from the power-off preparation state.

[0021] By adopting the above technical solution, the capacitor voltage value and the preset threshold are compared based on the capacitor detection unit to obtain whether the current relay can enter the disconnected state. If the capacitor voltage value is lower than the preset threshold, a disconnection prohibition signal is generated, and the disconnection prohibition signal is sent to the gate control module to control the relay to stop entering the disconnected state from the disconnection preparation state, so as to avoid the relay power being pulled down and causing power failure abnormalities, reduce the abnormal phenomenon of the relay due to the opening and closing of the switch, and improve the normal working efficiency of the electric energy meter.

[0022] In one embodiment, it further includes a reset module and a parameter setting module, wherein the reset module is connected to the gate control module, and the parameter setting module is connected to the gate control module;

[0023] When the relay is in the initial state,

[0024] The reset module is used to generate an initial closing signal, and send the initial closing signal to the gate control module, so that the gate control module controls the relay to be in a closed state;

[0025] The parameter setting module is used to set the parameters of the relay and send the relay parameters to the gate control module to control the relay to be in a closed state and operate according to the relay parameters.

[0026] By adopting the above technical solution, the relay chip generates an initial closing signal based on the reset module, so that the relay can be in a closed state when powered on, so that when the relay is in use, it can be ensured that the combination can add current normally, thereby improving the use and correction efficiency of the electric energy meter. At the same time, the relay will generate an initial closing signal based on the reset module as soon as it is powered on, thereby reducing the control of the external microcontroller and improving the overall use efficiency of the electric energy meter.

[0027] In one embodiment, the parameter setting module includes a communication unit and a display unit, wherein the communication unit is used to send the relay parameters to the relay, and after the relay parameters are set, the display unit displays them.

[0028] In one embodiment, an impedance detection module is further included, and the gate control module is connected to the impedance detection module. When the relay is in the initial state, the impedance detection module is used to calculate the impedance value of the relay and determine whether the impedance value meets the preset standard value. If the impedance value does not meet the preset standard value, a control alarm signal is generated and sent to the gate control module to maintain the relay.

[0029] By adopting the above technical solution, when the relay is in the initial state, the impedance detection module is used to calculate the impedance value of the relay and determine whether the impedance value meets the preset standard value. If the impedance value does not meet the preset standard value, a control alarm signal is generated and sent to the gate control module to maintain the relay. The impedance of the relay can be detected in time, thereby improving the normal use efficiency of the electric energy meter.

[0030] In one embodiment, it also includes a voltage adjustable module, which is connected to the parameter setting module to obtain the relay parameters, and adjusts the corresponding driving voltage based on the voltage adjustable circuit according to the relay parameters, and stores the driving voltage in the parameter setting module.

[0031] By adopting the above technical solution, when the electric energy meter is in use, the output voltage can be adjusted according to the different relays through the voltage adjustable module, so that the electric energy meter can adapt to different relays, thereby reducing the adjustment of the relays and improving the normal working efficiency of the electric energy meter.

[0032] Through the magnetic latching relay driver chip provided in the embodiment of the present application, when the relay is in the switch-off preparation state, the zero-crossing detection module timely detects the current value of the relay and processes the current value to obtain a switch-off start signal, and sends the switch-off start signal to the gate control module, so that the gate control module can control the relay to enter the switch-off state in time when the relay current value is zero according to the switch-off start signal. At the same time, the power protection module continuously supplies power to the relay, so that the power protection module can continuously supply power to the relay, so that the relay can successfully enter the switch-off state from the closing state in the switch-off preparation state without causing the power supply of the relay to be cut off, thereby reducing abnormal phenomena such as power failure and rapid temperature rise caused by closing and pulling of the relay, and improving the normal working efficiency of the electric energy meter.

[0033] The data setting unit calculates the start time of the power-off and generates a power-off start signal according to the start time of the power-off, thereby ensuring that when the relay current value is zero, the gate control module controls the gate of the relay to disconnect, thereby reducing the arc caused by the large current switching on the relay, which causes the relay contacts to burn.

[0034] After the relay is successfully disconnected, it is necessary to set a corresponding disconnection interval time to ensure that the magnet of the relay has enough time to disconnect. Therefore, the disconnection start signal includes the disconnection interval time, so that the data setting unit obtains the coil resistance value according to the relay operating parameters, obtains the coil action time according to the coil resistance value, and obtains the disconnection interval time according to the product of the coil action time and the preset multiple value, thereby improving the accuracy of the relay entering the disconnection state. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 Schematic diagram of the structure of the magnetic latching relay driver chip disclosed in Example 1 of the present application;

[0036] Figure 2 This is a schematic diagram of obtaining a power-off start signal provided in Example 1 of the present application;

[0037] Figure 3 This is a schematic diagram of a status detection module provided in Example 2 of the present application;

[0038] Figure 4 It is a schematic diagram of a reset module and a parameter setting module provided in Example 3 of the present application;

[0039] Figure 5 This is a schematic diagram of the voltage adjustable module in the closed state provided in Example 4 of the present application.

[0040] Explanation of the accompanying drawings: 10, gate control module; 20, zero-crossing detection module; 21, data setting unit; 30, power protection module; 31, capacitance detection unit; 40, state detection module; 41, state display unit; 50, reset module; 60, parameter setting module; 61, communication unit; 62, display unit; 70, impedance detection module; 80, voltage adjustable module. DETAILED DESCRIPTION

[0041] To more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. However, it should be understood by those of ordinary skill in the art that the present application can be implemented without these details. In some cases, in order to avoid unnecessary descriptions that make various aspects of the present application obscure, well-known methods, processes, systems, components and / or circuits that have been described at a higher level will not be described in detail. For those of ordinary skill in the art, it is obvious that various changes can be made to the embodiments disclosed in the present application, and without departing from the principles and scope of the present application, the general principles defined in the present application can be applied to other embodiments and application scenarios. Therefore, the present application is not limited to the embodiments shown, but conforms to the broadest scope consistent with the scope claimed for protection of the present application.

[0042] An embodiment of the present application discloses a magnetic latching relay driver chip.

[0043] Embodiment 1:

[0044] like Figure 1As shown, the magnetic latching relay driver chip is used in an electric energy meter, and the relay has a switch-off preparation state, a switch-off state, and a switch-on state, and includes a gate control module 10, a zero-crossing detection module 20, and a power protection module 30. The gate control module 10 is connected to the zero-crossing detection module 20, and the gate control module 10 is connected to the power protection module 30.

[0045] When the relay is in the switch-off preparation state, the zero-crossing detection module 20 is used to detect the current value of the relay when it is in the switch-on state, and obtain the switch-off start signal according to the current value, and send the switch-off start signal to the gate control module 10, so that the gate control module 10 controls the relay to enter the switch-off state at zero current according to the switch-off start signal. And the power protection module 30 is used to obtain the relay power value, and compare the relay power value with the preset value. If the relay power value is less than the preset value, a power supply signal is generated, and the power supply signal is sent to the gate control module 10 to control the power protection module 30 to continuously supply power to the relay.

[0046] Among them, the switch-off preparation state indicates that the relay is ready to enter the switch-off state from the switch-on state, the switch-off state indicates that the gate of the relay is in the open state, and the switch-on state indicates that the gate of the relay is in the closed state, that is, when the relay is powered on, the relay is in the working state.

[0047] It should be noted here that since there is a relay inside the energy meter, the energy meter is powered off or used normally by opening or closing the gate of the relay. If the current flowing through the relay happens to be the highest, the relay is disconnected. At this time, the relay is prone to serious arcing, which will cause the relay contacts to burn every time the relay is opened, causing the contact impedance of the relay contacts to increase, and eventually causing severe heating when a large current flows through the relay contacts. In extreme cases, the contacts will not be firmly in contact, thus burning the relay. Therefore, in order to ensure the normal operation of the energy meter and reduce the phenomenon of excessive temperature rise, when the relay is turned off, the time point when the relay goes from the closed state to the opened state should be reasonably determined.

[0048] Here, the relay enters the switch-off preparation state, mainly based on the gate control module 10 generating a switch-off instruction, and sending the switch-off instruction to the zero-crossing detection module 20. When the zero-crossing detection module 20 receives the switch-off instruction, it responds to the switch-off instruction to detect the current value of the relay.

[0049] In addition, the current value represents the current value currently flowing through the relay, and the switch-on start signal represents the signal of the gate control module 10 controlling the relay to perform the switch-on action. The preset value represents the rated voltage value set in advance, in order to ensure that when the relay is opened and closed, there is enough voltage to make the magnet have a strong enough magnetic field to close and open, so as to avoid the power supply voltage of the relay from fluctuating when the relay is opened and closed.

[0050] The power supply signal represents the signal that the power supply protection module 30 provides the power supply voltage to the relay. It is mainly a signal generated by the power supply protection module 30 when it determines that the power of the electric energy meter power supply is insufficient to support the magnet of the relay to have a strong magnetic field for disconnection operation, thereby preventing the power supply of the electric energy meter from fluctuating due to use. When the power supply protection module 30 determines that the power of the electric energy meter power supply is sufficient to support the magnet of the relay to have a strong magnetic field for disconnection operation, the power supply protection module 30 does not generate a power supply signal. Therefore, the gate control module 10 will not control the power supply protection module 30 to continuously supply power to the relay.

[0051] It should be noted here that the specific steps for obtaining the power-on start signal based on the current value are: the zero-crossing detection module 20 completes the corresponding function through the zero-crossing detection circuit. The zero-crossing detection circuit is arranged inside the magnetic holding relay driver chip, and is mainly used to detect the current value in the relay. When the zero-crossing point of the 220V AC power is detected, the operating frequency of the AC power is obtained according to the corresponding specifications of the relay, and then the working period of the positive and negative half-cycles of the current waveform is calculated based on the operating frequency.

[0052] Since the relay can only be opened after a certain period of time after the corresponding voltage is applied, the chip has a parameter for delaying the opening of the circuit breaker before crossing zero. By setting the delay parameter, the opening action can be perfectly realized when the relay current is zero, so that the relay enters the opening state from the opening preparation state.

[0053] In addition, the magnetic latching relay needs to continuously pass through the relay coil resistance during the closing and opening process, so that the magnet has a strong enough magnetic field to close and open the magnet to drive the magnetic latching relay on and off. This driving pulse needs to ensure that the magnetic latching relay can operate reliably, and the excitation voltage applied to the coil must reach the preset value.

[0054] If the power supply of the product is sufficient, there is no need to enable this function. The relay driver chip can be used to directly supply power to the relay without any restrictions. Since the power required by the magnetic latching relay at the moment of action is still relatively large, and such a large current is not required all the time, many products cannot meet the instantaneous power requirements when designing hardware, and generally rely on software to circumvent it. If the power failure detection is not performed when the switch is turned on, the power fluctuation caused by the power supply at the moment of closing and opening the switch cannot be avoided.

[0055] Therefore, in order to reduce the power fluctuation caused by the relay being turned off, a power protection circuit is provided inside the chip. The power protection circuit includes a capacitor. The chip has a reverse cutoff when the capacitor is discharged, and is only used for the relay to be turned off. The power protection module 30 is used to obtain the relay power value and compare the relay power value with a preset value. If the relay power value is less than the preset value, a power supply signal is generated and sent to the gate control module 10 to control the power protection module 30 to continuously supply power to the relay.

[0056] If the relay power value is not less than the preset value, it means that the product power is sufficient, and there is no need to turn on the power protection circuit power supply function. Therefore, the power protection module 30 does not generate a signal, and the gate control module 10 does not perform a power supply operation.

[0057] The implementation principle is as follows: when the relay is in the switch-off preparation state, the zero-crossing detection module 20 is used to detect the current value of the relay when it is in the switch-on state, and obtain the switch-off start signal according to the current value, and send the switch-off start signal to the gate control module 10, so that the gate control module 10 controls the relay to enter the switch-off state at zero current according to the switch-off start signal. The power protection module 30 is used to obtain the relay power value, and compare the relay power value with the preset value. If the relay power value is less than the preset value, a power supply signal is generated, and the power supply signal is sent to the gate control module 10 to control the power protection module 30 to continuously supply power to the relay.

[0058] Reference Figure 1 In another embodiment, the zero-crossing detection module 20 includes a data setting unit 21, which is used to obtain relay operating parameters, calculate the power-off start time according to the relay operating parameters, and generate a power-off start signal according to the power-off start time.

[0059] Among them, the relay operating parameters represent the actual operating parameters of the relay, and the power-off start time represents the power-off start time calculated by the data setting unit 21 based on the relay operating parameters and the current value. The power-off start signal is generated according to the power-off start time. When the gate control module 10 receives the power-off start signal, it controls the relay to perform the power-off operation according to the power-off start time, so that the relay can enter the power-off state when the current of the relay is zero.

[0060] Specifically, the relay operating parameters include current cycle, action time and delay time. The relay operating parameters are set to different values ​​according to the specifications of the relay. Therefore, in this embodiment, the current cycle is preferably set to 20 milliseconds, the action time is set to 2 milliseconds, and the delay is actually set to 8 milliseconds.

[0061] Reference Figure 2 For example, when the chip zero-crossing delay parameter drives the magnetic latching relay to trip, it can be seen from the current sine wave form that one cycle is 20ms, and the relay action time is about 2ms. The trip command is received at time t1, and detection begins at this time. It is detected to be zero at time t2. At this time, the delay of 8ms, that is, the start signal of the pull-off is applied to the relay at time toff, plus the relay action time, it can be ensured that the relay trips when the current is close to zero at time t3.

[0062] In another embodiment, the power-off start signal includes a power-off interval time, and the data setting unit 21 is used to obtain the coil resistance according to the relay operating parameters, obtain the coil action time according to the coil resistance, and obtain the power-off interval time according to the product of the coil action time and a preset multiple value.

[0063] Among them, the switching interval time represents the interval time from the switching state to the closing preparation state of the relay, the coil resistance represents the resistance value of the relay coil, the coil action time represents the time for the magnet to complete closing or opening, and the preset multiple represents the set multiple. The preset multiple is greater than or equal to 3. In this embodiment, the preset multiple can be set to 3.

[0064] The magnetic latching relay needs to continuously pass through the relay coil resistance during the closing and opening process, so that the magnet has a strong enough magnetic field to close and open the magnet to drive the magnetic latching relay on and off. This driving pulse needs to ensure that the magnetic latching relay can operate reliably. The excitation voltage applied to the coil must reach the rated value, and the pulse width setting must be more than 3 times the action time. At the same time, the application time of the voltage to the coil should not be greater than the preset time to prevent the coil from overheating and damage. In this embodiment, the preset time is set to 1 minute.

[0065] It should be noted here that when the relay also has a closing preparation state, mainly preparing to enter the closing state from the opening state, the gate control module 10 is also required to generate a closing instruction, and control the gate of the relay to close according to the closing instruction, and then enter the closing state to work normally.

[0066] Reference Figure 1 In another embodiment, since the protection capacitor will be consumed when used for a long time, the voltage that the protection capacitor can provide cannot always meet the rated voltage of the relay. If the relay power value is less than the preset value, a power supply signal is generated and sent to the gate control module 10 to control the power protection module 30 to continuously power the relay.

[0067] However, the voltage provided by the protection capacitor does not meet the standard, which will cause the relay to be unable to complete the switch-off action, thus causing the electric energy meter to have a malfunction. In order to improve the normal working efficiency of the electric energy meter, the power protection module 30 includes a capacitor detection unit 31, which is used to obtain a capacitor voltage value based on the detection capacitor when the relay is in the switch-off preparation state, and compare the capacitor voltage value with a preset threshold value. If the capacitor voltage value is lower than the preset threshold value, a switch-off prohibition signal is generated, and the switch-off prohibition signal is sent to the gate control module 10 to control the relay to stop entering the switch-off state from the switch-off preparation state.

[0068] Among them, the capacitor voltage value represents the voltage value at both ends of the protection capacitor, the preset threshold represents the voltage value set in advance, that is, the minimum value of the starting capacitor that can be used to pull the switch, and the prohibition of pulling the switch signal represents the signal generated by the capacitor detection unit 31, which is mainly used to enable the gate control module 10 to control the signal to stop the pulling operation.

[0069] It should be noted here that when the relay is in the power-off preparation state, the capacitor detection unit 31 needs to regularly detect the capacitor voltage value at both ends of the protection capacitor, and timely judge the capacitor voltage value and the preset threshold value. If the capacitor voltage value is lower than the preset threshold value, a power-off prohibition signal is generated, and the power-off prohibition signal is sent to the gate control module 10 to control the relay to stop entering the power-off state from the power-off preparation state. If the capacitor voltage value is not lower than the preset threshold value, the power-off prohibition signal will not be generated. Therefore, the gate control module 10 continues to control the relay to stop entering the power-off state from the power-off preparation state according to the power-off start signal sent by the zero-crossing detection module 20.

[0070] The capacitor detection unit 31 mainly includes a low-voltage monitoring circuit for the discharge of the closing and pulling capacitor. Once it detects that the voltage across the protection capacitor is lower than the threshold, it sends a prohibition switch-off signal to convey to the gate control module 10 that the switch-off instruction will no longer be issued, and reports the switch-off abnormality, i.e., the power supply abnormality, to the gate control module 10, thereby avoiding causing the relay power supply to be pulled down and causing the power supply to fail abnormally.

[0071] In addition, the low voltage threshold monitoring function of the capacitor detection unit 31 can be turned on and off separately. The discharge time of the protective capacitor can also be determined by detecting the voltage of the power storage capacitor during the discharge process. If the voltage across the energy storage capacitor of the relay driver chip is lower than the theoretical voltage of the chip design during the closing and closing process, which is generally 60ms~100ms, the capacitance of the capacitor meets the design requirements.

[0072] It should be noted here that when the relay is just shipped, the protective capacitor needs to be tested to detect whether the design of the protective capacitor meets the production standards. In addition, during the subsequent use of the relay, the discharge voltage of the protective capacitor can be tested regularly to timely understand whether the discharge voltage of the protective capacitor meets the relay's switch-off voltage. The regular test here can be set to once a week, and the specific frequency of the test can be set according to the frequency of the relay's switch-on and switch-off operations. If the frequency of the switch-on and switch-off operations is too high, the test cycle is also adaptively changed, mainly to be able to timely detect the discharge voltage value of the protective capacitor.

[0073] However, this periodic detection is different from the detection when the relay is in the ready state. When the relay is in the ready state, the capacitance voltage value of the protection capacitor must be detected. When the relay is in the closed state, regular detection can be set. When the discharge capacitance of the protection capacitor does not meet the designed theoretical voltage, the protection capacitor should be replaced accordingly.

[0074] Embodiment 2:

[0075] Reference Figure 3 The difference between this embodiment and the first embodiment is that the magnetic latching relay driver chip also includes a state detection module 40, and the state detection module 40 is connected to the gate control module 10. After the relay is in the power-on preparation state, the state detection module 40 is used to detect the voltage signal of the relay and determine whether the state detection module 40 detects the voltage signal. If the state detection module 40 cannot detect the voltage signal, it is determined that the relay is successfully powered on, and a power-on success signal is sent to the gate control module 10.

[0076] The voltage signal represents the voltage signal for detecting the relay, and it is mainly determined whether the state detection module 40 can detect the voltage signal, and then whether the gate control module 10 successfully controls the relay to complete the switch operation.

[0077] Specifically, when the relay is performing a power-on operation, it is easy for the relay contacts to stick, which may lead to an unsuccessful power-on operation. However, if the power-on operation is unsuccessful, and the gate control module 10 controls the relay to perform the power-on operation after sending the power-on start signal, it may mistakenly believe that the power-on operation is successfully completed within the specified time, and then the state of the relay may be misjudged, resulting in subsequent operational errors, for example, affecting the relay closing time.

[0078] Therefore, it is necessary to detect the relay shutdown state. If the state detection module 40 detects no voltage signal, it is determined that the relay is successfully shut down, and a shutdown success signal is sent to the gate control module 10. If the state detection module 40 detects a voltage signal, it is determined that the relay is not successfully shut down, and a shutdown abnormality signal is generated at this time, and the shutdown abnormality signal is sent to the gate control module 10 to remind the gate control module 10 that the relay has a shutdown abnormality at this time, and it is handled in time.

[0079] The state detection module 40 includes a relay closing success detection circuit, which is arranged inside the magnetic latching relay driver chip, and can detect whether the relay is closed successfully. The external hardware no longer needs to design a separate circuit for detection, which can save board space. If the switch is closed successfully, no voltage is detected, that is, the relay is closed successfully. If the switch fails or is in the closed state, the voltage is detected, that is, it is in the closed state. By detecting the relay state, it can be ensured that the electric energy meter can be controlled normally to prevent the electric energy meter from burning out.

[0080] It should be noted here that the state detection module 40 is also used to detect whether the relay is in a closed state. When the relay is in a closed state, the state detection module 40 can detect the existence of voltage.

[0081] Reference Figure 3 In another embodiment, the status detection module 40 includes a status display unit 41. When the status display unit 41 receives a power-off success signal, it displays that the relay is in a power-off state.

[0082] Among them, after the state detection module 40 generates a successful power-off signal, the state display unit 41 will display it through the pin of the magnetic latching relay driver chip, thereby being able to inform that the current relay is in the power-off state, which is convenient for displaying the relay state. If the state display unit 41 does not receive the successful power-off signal, it will display that the relay is in the power-on state.

[0083] It should be noted here that when the magnetic latching relay driver chip is in the process of actuating the relay, a pin of the chip indicates that the relay is currently actuating to remind you not to perform the current operation and avoid repeated control commands. A pin of the chip indicates the actual state of the relay, indicating whether it is currently in the open or closed state.

[0084] Embodiment three:

[0085] Reference Figure 4 The difference between this embodiment and the first embodiment is that the magnetic latching relay driver chip further includes a reset module 50 and a parameter setting module 60 , the reset module 50 is connected to the gate control module 10 , and the parameter setting module 60 is connected to the gate control module 10 .

[0086] When the relay is in the initial state, the reset module 50 is used to generate an initial closing signal and send the initial closing signal to the gate control module 10, so that the gate control module 10 controls the relay to be in the closed state. The parameter setting module 60 is used to set parameters for the relay and send the set parameter relay parameters to the gate control module 10, so as to control the relay to be in the closed state and operate according to the set parameter relay parameters.

[0087] Among them, the initial closing signal indicates that the relay is in a closed state when the electric energy meter is powered on. When the relay is in the initial state, the relay is in the initial state after leaving the factory. Before the electric energy meter is powered on, the relay gate is closed.

[0088] Specifically, the factory state of the magnetic latching relay is the contact closed state, but due to factors such as impact during transportation or relay installation, the state may change. Therefore, it is necessary to take measures to reset it before use (when the power is connected).

[0089] The chip uses an initialization function to ensure that the relay is in the closed state. When calibrating the meter on the calibration table, the relay must be in the closed state. If the relay is disconnected, the table body cannot be normally supplied with current and the meter cannot be calibrated. At this time, each meter needs to be checked one by one, wasting a lot of time. The magnetic latching relay driver chip has an initialization function inside. When it is powered on normally for the first time, the magnetic latching relay driver chip performs the closing and pulling drive according to the initialization default state, and does not require the control of the single-chip microcomputer.

[0090] The parameter setting module 60 mainly includes setting the control parameters of the relay, which include electrical operating parameters, etc. The parameter setting module 60 is used to set the parameters of the relay and send the set parameter relay parameters to the gate control module 10 to control the relay to be in a closed state and operate according to the set parameter relay parameters.

[0091] It should be noted here that the parameter setting module 60 can adjust the parameters in time when the relay is in the closed state. When the relay is in the initial state, the corresponding relay parameters will be set. However, if parameter adjustment is required later, it can be adjusted through the parameter setting module 60. The parameter setting module 60 and the external main chip are transmitted through communication, so that the relay parameters can be adjusted in time.

[0092] Reference Figure 4 In another embodiment, the parameter setting module 60 includes a communication unit 61 and a display unit 62. The communication unit 61 is used to send the setting parameter relay parameters to the relay, and after the setting parameter relay parameters are set, they are displayed according to the display unit 62.

[0093] Specifically, the communication unit 61 includes a UART or SPI serial communication function, and the baud rate can be fixed. The communication unit 61 can set and read the relay parameters of the magnetic latching relay driver chip through the serial port, so as to keep the relay in action according to the designed relay parameters. After the action is completed, the status feedback is performed through the chip status pin.

[0094] It should be noted here that the display unit 62 mainly adopts a display screen, which can display the relay parameters in time, thereby avoiding data errors that may lead to incorrect use of the electric energy meter.

[0095] Reference Figure 3 In another embodiment, because the larger the contact impedance of the relay, the more severe the heat generated by the same current, the higher the temperature rise, and the greater the possibility of fire. my country's standards clearly require that under rated working conditions, the circuit and insulator should not reach a temperature that affects the normal operation of the energy meter. Therefore, after the relay is produced and shipped, the impedance of the relay needs to be detected in real time, so as to avoid the relay from heating up too quickly due to excessive impedance, which causes the energy meter to be unable to be used normally.

[0096] The difference between this embodiment and the first embodiment is that the magnetic holding relay driver chip also includes an impedance detection module 70, and the gate control module 10 is connected to the impedance detection module 70. When the relay is in the initial state, the impedance detection module 70 is used to calculate the impedance value of the relay and determine whether the impedance value meets the preset standard value. If the impedance value does not meet the preset standard value, a control alarm signal is generated and sent to the gate control module 10 to maintain the relay.

[0097] The impedance value represents the current impedance value of the relay contact, the preset standard value represents the minimum standard set in advance, and the control alarm signal represents the signal generated when the impedance value of the relay does not meet the preset standard value.

[0098] Specifically, when the relay is in the initial state, the impedance detection module 70 is used to calculate the impedance value of the relay and determine whether the impedance value meets the preset standard value. If the impedance value does not meet the preset standard value, a control alarm signal is generated and sent to the gate control module 10 to maintain the relay. If the impedance value meets the preset standard value, the impedance detection module 70 does not generate an alarm signal, and the gate control module 10 does not need to maintain the relay.

[0099] The preset standard value can be set according to the actual situation and can be set according to national regulations. In addition, when the relay is in use, that is, when the relay is in the closed state, after each arcing operation in the later period, when entering the closed state, an impedance detection is required. Therefore, the impedance detection module 70 detects the impedance value of the relay after the relay enters the closed state from the opened state, and records the number of openings and the impedance value after the opening. After several openings, the impedance increase value after the preset number of times is calculated. The preset number refers to the number of openings set in advance, and the impedance increase value represents the value of the impedance increase of the relay after the preset number of times.

[0100] Then, it is determined whether the impedance increase value exceeds the preset increase value. If the impedance increase value exceeds the preset increase value, it is determined that the relay production does not meet the national standards. If the impedance increase value does not exceed the preset increase value, it is determined that the relay production meets the national standards.

[0101] The preset number of times and the preset increase value mentioned here can be set in advance. In this embodiment, the preset number of times is set to 10 times, and the preset increase value is set to 2 milliohms.

[0102] It should be noted here that the impedance value is calculated mainly by outputting a high-frequency voltage signal to one of the pins of the magnetic latching relay driver chip to inject the high-frequency signal. The high-frequency voltage signal generates a voltage drop after passing through the relay contact, and then passes through the voltage divider and sampling circuit inside the relay driver chip to obtain the contact impedance according to Ohm's law.

[0103] For example, the metering chip also samples the voltage and current through the manganese copper on the relay. Normal measurement is basically required within the 50th harmonic of the sampling frequency of 50Hz, that is, the 2.5kHz frequency will cause the metering chip to include the energy of the metering chip. In order to ensure that the signal is not measured by the metering chip, the high-frequency signal needs to be above 3kHz.

[0104] Embodiment 4:

[0105] Reference Figure 5The difference between this embodiment and the first embodiment is that when the relay is in the closed state, the output voltage of the relay needs to be adjusted according to the actual application of the electric energy meter. Therefore, the magnetic holding relay driver chip also includes a voltage adjustable module 80. The voltage adjustable module 80 is connected to the parameter setting module 60 to obtain relay parameters, and adjusts the corresponding driving voltage based on the voltage adjustable circuit according to the relay parameters, and stores the driving voltage in the parameter setting module 60.

[0106] Specifically, the voltage adjustable module 80 includes a voltage adjustable circuit, which mainly obtains relay parameters, adjusts the corresponding driving voltage based on the voltage adjustable circuit according to the relay parameters, and stores the driving voltage in the parameter setting module 60, and then adjusts the output voltage of the corresponding value according to the voltage adjustable circuit.

[0107] At present, magnetic latching relays have multiple power drive, 12V / 9V / 5V / 3.3V and other power specifications. Generally, when a magnetic latching relay needs to be replaced, a hardware engineer needs to redesign the power circuit specifications, and the circuit schematic and PCB board diagram need to be changed. This embodiment is mainly used in the field of electric energy metering, the input voltage is 12V, and the output voltage is adjustable according to the relay drive voltage specification 12V / 9V / 5V / 3.3V.

[0108] It should be noted here that the voltage adjustable circuit mainly adopts the existing selectable circuit, which will not be described in detail here.

[0109] It should be understood that although the steps in the flowchart of the accompanying drawings are shown in sequence according to the instructions of the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise clearly stated in this document, the execution of these steps is not strictly limited in order and can be performed in other orders.

[0110] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.

Claims

1. A magnetic latching relay driver chip, used in an electric energy meter, wherein the relay has a switch-off preparation state, a switch-off state, and a switch-on state, wherein the switch-off preparation state indicates that the relay is ready to enter the switch-off state from the switch-on state, and is characterized in that: It comprises a gate control module (10), a zero-crossing detection module (20) and a power protection module (30), wherein the gate control module (10) is connected to the zero-crossing detection module (20), and the gate control module (10) is connected to the power protection module (30); When the relay is in the ready state: The zero-crossing detection module (20) is used to detect the current value of the relay in the closed state, obtain a switch-off start signal according to the current value, and send the switch-off start signal to the gate control module (10), so that the gate control module (10) controls the relay to enter the switch-off state at zero current according to the switch-off start signal; The power protection module (30) is used to obtain a relay power value and compare the relay power value with a preset value. If the relay power value is less than the preset value, a power supply signal is generated and the power supply signal is sent to the gate control module (10) to control the power protection module (30) to continuously supply power to the relay. The power protection module (30) also includes a reset module (50) and a parameter setting module (60). The reset module (50) is connected to the gate control module (10), and the parameter setting module (60) is connected to the gate control module (10). When the relay is in the initial state: The reset module (50) is used to generate an initial closing signal, and send the initial closing signal to the gate control module (10), so that the gate control module (10) controls the relay to be in a closed state; The parameter setting module (60) is used to set the parameters of the relay and send the relay parameters to the gate control module (10) to control the relay to be in a closed state and operate according to the relay parameters. It also includes an impedance detection module (70), the gate control module (10) is connected to the impedance detection module (70), when the relay is in the initial state, the impedance detection module (70) is used to calculate the impedance value of the relay and determine whether the impedance value meets the preset standard value, if the impedance value does not meet the preset standard value, a control alarm signal is generated and sent to the gate control module (10) to maintain the relay, after the relay enters the closed state from the open state, the impedance detection module (70) is used to detect the impedance value of the relay and calculate the impedance increase value after a preset number of times, wherein the preset number of times refers to the number of open states set in advance, and the impedance increase value represents the impedance increase value of the relay after the preset number of times, wherein the impedance value is calculated by outputting a high-frequency voltage signal to one of the pins of the magnetic latching relay driver chip to inject the high-frequency signal, the high-frequency voltage signal generates a voltage drop after passing through the relay contact, and then the contact impedance size is obtained according to Ohm's law through the voltage divider and sampling circuit inside the relay driver chip.

2. The magnetic latching relay driver chip according to claim 1, characterized in that: The zero-crossing detection module (20) comprises a data setting unit (21), the data setting unit (21) being used to obtain relay operating parameters, calculate a power-off start time according to the relay operating parameters and the current value, and generate the power-off start signal according to the power-off start time.

3. The magnetic latching relay driver chip according to claim 2, characterized in that: The power-off start signal includes a power-off interval time, and the data setting unit (21) is further used to obtain a coil resistance value according to the relay operation parameter, obtain a coil action time according to the coil resistance value, and obtain the power-off interval time according to the product of the coil action time and a preset multiple value.

4. The magnetic latching relay driver chip according to claim 1, characterized in that: It also includes a state detection module (40), the state detection module (40) being connected to the gate control module (10), and after the relay is in a switch-off preparation state, the state detection module (40) is used to detect a voltage signal of the relay, and to determine whether the state detection module (40) detects the voltage signal; if the state detection module (40) cannot detect the voltage signal, it is determined that the relay is successfully switched on, and a switch-off success signal is sent to the gate control module (10).

5. The magnetic latching relay driver chip according to claim 4, characterized in that: The state detection module (40) comprises a state display unit (41), and upon receiving the power-off success signal, the state display unit (41) displays that the relay is in a power-off state.

6. The magnetic latching relay driver chip according to claim 1, characterized in that: The power supply protection module (30) comprises a capacitance detection unit (31), wherein the capacitance detection unit (31) is used to obtain a capacitance voltage value based on a detection capacitance when the relay is in a power-off preparation state, and compare the capacitance voltage value with a preset threshold value; if the capacitance voltage value is lower than the preset threshold value, a power-off prohibition signal is generated, and the power-off prohibition signal is sent to the gate control module (10) to control the relay to stop entering the power-off state from the power-off preparation state.

7. The magnetic latching relay driver chip according to claim 1, characterized in that: The parameter setting module (60) comprises a communication unit (61) and a display unit (62), wherein the communication unit (61) is used to send the relay parameters to the relay, and after the relay parameters are set, the parameters are displayed according to the display unit (62).

8. The magnetic latching relay driver chip according to claim 1, characterized in that: It also includes a voltage adjustable module (80), which is connected to the parameter setting module (60) to obtain the relay parameters, and adjusts the corresponding driving voltage based on the voltage adjustable circuit according to the relay parameters, and stores the driving voltage in the parameter setting module (60).

Citation Information

Patent Citations

  • Over-zero action magnetic latching relay

    CN101562092A

  • Control method of relay for one-phase smart electric meter

    CN103645655A

  • Control unit for relays

    CN104483883A

  • Electric vehicle on-board charger input relay protection control device and control method

    CN106712173A

  • Method and device for monitoring state of driving unit of repulsive force switch

    CN113740725A