Voltage switching circuit and method of relay and electronic equipment

By introducing a voltage switching unit and a control unit into the relay, a voltage switching signal is generated based on the current voltage and reference voltage of the relay, simplifying and improving the accuracy of the relay voltage switching is achieved, and the complexity of the relay voltage switching circuit is solved.

CN119601427APending Publication Date: 2025-03-11珠海科创储能科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411779016.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

The voltage switching circuit of the relay is relatively complex and there is no effective solution yet.

Method used

A voltage switching circuit of a relay is provided, including a voltage switching unit and a control unit. By generating a voltage switching signal based on the current voltage and a reference voltage of the relay, the control voltage switching unit switches the operating voltage and the holding voltage of the relay.

Benefits of technology

The voltage switching circuit of the relay is simplified, the accuracy and user experience of voltage switching are improved, and the complexity of the voltage switching circuit is solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119601427A_ABST
    Figure CN119601427A_ABST
Patent Text Reader

Abstract

The invention discloses a voltage switching circuit and method of a relay and electronic equipment. The method relates to the technical field of electric power, and comprises a voltage switching unit, the first end of the voltage switching unit is connected with the input end of a relay, and the voltage switching unit is used for switching an operation voltage and a holding voltage according to a voltage switching signal to obtain an output voltage and inputting the output voltage to the input end of the relay; and the control unit is connected with the second end of the voltage switching unit. According to the invention, the technical problem that the voltage switching circuit of the relay in the prior art is relatively complex is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electric power technology, and in particular to a voltage switching circuit, method and electronic equipment of a relay. Background Art

[0002] With the rapid development of science and technology, more and more emerging industries are emerging. Among the many emerging industries, new energy vehicles, artificial intelligence, and big data are closely related to power technology, and relays are one of the most important equipment in the power system. Relays have an operating voltage as a high voltage and a holding voltage as a low voltage. In order to ensure the normal operation of the relay, the high voltage of the relay is often converted to a low voltage through a DC-DC buck converter (DC-DC BUCK for short), and then the high voltage and low voltage are switched through an optocoupler-driven field effect transistor. The voltage switching circuit of the relay in the related technology is relatively complex.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present invention provide a voltage switching circuit, method and electronic device for a relay, so as to at least solve the technical problem that the voltage switching circuit of a relay in the related art is relatively complicated.

[0005] According to one aspect of an embodiment of the present invention, a voltage switching circuit of a relay is provided, comprising: a voltage switching unit, a first end of the voltage switching unit is connected to an input end of the relay, for switching an operating voltage and a holding voltage according to a voltage switching signal to obtain an output voltage, and inputting the output voltage to the input end of the relay, wherein the operating voltage is used to represent the voltage when the relay is in a starting state, and the holding voltage is used to represent the voltage when the relay is in a working state after the starting state; a control unit, connected to a second end of the voltage switching unit, for generating a voltage switching signal according to a current voltage of the relay and a reference voltage.

[0006] Furthermore, the voltage switching unit includes: a first circuit, the output end of the first circuit is connected to the input end of the relay, and the input end of the first circuit is connected to the control unit, which is used to use the operating voltage as the output voltage and input the output voltage to the input end of the relay; a second circuit, the output end of the second circuit is connected to the input end of the relay, and the input end of the second circuit is connected to the control unit, which is used to use the holding voltage as the output voltage and input the output voltage to the output end of the relay; a switch tube, the switch tube is connected to the first circuit and the second circuit, and in response to the voltage switching signal being a high-level signal, the switch tube controls the first circuit to be turned on and the operating voltage to be the output voltage, and in response to the voltage switching signal being a low-level signal, the switch tube controls the second circuit to be turned on and the holding voltage to be the output voltage.

[0007] Furthermore, the first circuit includes: a first resistor, a first end of the first resistor is connected to the input end of the relay, and the first resistor is used to adjust the operating voltage; a second resistor, a first end of the second resistor is connected to the second end of the first resistor, the second end of the second resistor is grounded, and the second resistor is used to form a first voltage divider circuit on the first circuit when the switch tube is in a closed state; a third resistor, a first end of the third resistor is connected to the input end of the relay, the second end of the third resistor is grounded, and the third resistor is used to form a second voltage divider circuit on the first circuit with the first resistor when the switch tube is in a closed state.

[0008] Furthermore, the second circuit includes: a fourth resistor, a first end of the fourth resistor is connected to the input end of the relay, a second end of the fourth resistor is grounded, and the fourth resistor is used to adjust the holding voltage; a fifth resistor, a first end of the fifth resistor is connected to the second end of the fourth resistor, a second end of the fifth resistor is connected to the switch tube, and the fifth resistor is used to form a third voltage divider circuit on the second circuit when the switch tube is in an on state.

[0009] Furthermore, the control unit includes: a comparator for comparing the current voltage and the reference voltage, determining that the voltage switching signal is a high level signal in response to the current voltage being higher than the reference voltage, and determining that the voltage switching signal is a low level signal in response to the current voltage being equal to or lower than the reference voltage.

[0010] According to another aspect of an embodiment of the present invention, a voltage switching method for a relay is also provided, including: monitoring the current voltage of the relay; using a voltage switching unit in a voltage switching circuit to generate a voltage switching signal according to the current voltage and a reference voltage of the relay; switching the operating voltage and the holding voltage of the relay based on the voltage switching signal to obtain an output voltage, wherein the operating voltage is used to represent the voltage when the relay is in a starting state, and the holding voltage is used to represent the voltage when the relay is in a working state after the starting state; and providing the output voltage to the relay.

[0011] Furthermore, a voltage switching unit in a voltage switching circuit is used to generate a voltage switching signal according to a current voltage and a reference voltage of a relay, including: in response to the voltage switching signal being a high-level signal, controlling the switch tube in the voltage switching unit to be in a closed state, and making the first circuit in the voltage switching unit conductive, and using the operating voltage as the output voltage; in response to the voltage switching signal being a low-level signal, controlling the switch tube to be in an open state, and making the second circuit in the voltage switching unit conductive, and using the maintained voltage as the output voltage.

[0012] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, comprising: a memory storing an executable program; and a processor for running the program, wherein the method in each embodiment of the present invention is executed when the program is running.

[0013] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the methods in various embodiments of the present invention.

[0014] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the method in each embodiment of the present invention is implemented.

[0015] According to another aspect of the embodiments of the present invention, a computer program is further provided. When the computer program is executed by a processor, the methods in the embodiments of the present invention are implemented.

[0016] In an embodiment of the present invention, a voltage switching circuit of a relay is provided, comprising: a voltage switching unit, a first end of the voltage switching unit is connected to an input end of the relay, and is used to switch an operating voltage and a holding voltage according to a voltage switching signal to obtain an output voltage, and input the output voltage to the input end of the relay; and a control unit is connected to a second end of the voltage switching unit. The present application sets a voltage switching unit and a control unit, so that a voltage switching signal can be generated by the control unit according to the current voltage and a reference voltage of the relay, and the voltage switching signal controls the voltage switching unit to switch the operating voltage and the holding voltage of the relay. The present application simplifies the voltage switching circuit of the relay through the cooperation of the voltage switching unit and the control unit, thereby solving the technical problem that the voltage switching circuit of the relay in the related art is relatively complicated. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0018] Figure 1 is a schematic structural diagram of an optional voltage switching circuit of a relay according to an embodiment of the present invention;

[0019] Figure 2 is a schematic structural diagram of an optional voltage switching unit according to an embodiment of the present invention;

[0020] Figure 3 is a schematic structural diagram of an optional first circuit according to an embodiment of the present invention;

[0021] Figure 4 is a schematic structural diagram of an optional second circuit according to an embodiment of the present invention;

[0022] Figure 5 is a structural schematic diagram of a preferred voltage switching circuit of a relay according to an embodiment of the present invention;

[0023] Figure 6 is a flow chart of an optional voltage switching method of a relay according to an embodiment of the present invention;

[0024] Figure 7 It is a schematic structural diagram of an optional voltage switching device of a relay according to an embodiment of the present invention.

[0025] Among them, the above-mentioned drawings include the following figure marks: 11, voltage switching unit; 12, relay; 13, control unit; 21, first circuit; 22, second circuit; 23, switch tube; 31, first resistor; 32, second resistor; 33, third resistor; 41, fourth resistor; 42, fifth resistor; 51, transistor; 70, monitoring module; 72, generation module; 74, switching module; 76, output module. DETAILED DESCRIPTION

[0026] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0027] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] Now, exemplary embodiments according to the present application will be described in more detail with reference to the accompanying drawings. However, these exemplary embodiments may be implemented in a variety of different forms and should not be construed as being limited to the embodiments described herein. It should be understood that these embodiments are provided to make the disclosure of the present application thorough and complete, and to fully convey the concepts of these exemplary embodiments to those of ordinary skill in the art. In the accompanying drawings, for the sake of clarity, the thickness of the layers and regions may be enlarged, and the same reference numerals are used to represent the same devices, and thus their descriptions will be omitted.

[0030] According to an embodiment of the present invention, an embodiment of a voltage switching circuit of a relay is provided. Figure 1 is a schematic diagram of a structure of a voltage switching circuit of an optional relay according to an embodiment of the present invention, such as Figure 1 As shown, the circuit includes: a voltage switching unit 11, a first end of the voltage switching unit 11 is connected to the input end of the relay 12, and is used to switch the operating voltage and the holding voltage according to the voltage switching signal to obtain the output voltage, and input the output voltage to the input end of the relay 12, wherein the operating voltage is used to indicate the voltage when the relay 12 is in the starting state, and the holding voltage is used to indicate the voltage when the relay 12 is in the working state after the starting state; a control unit 13, connected to the second end of the voltage switching unit 11, and is used to generate a voltage switching signal according to the current voltage of the relay 12 and the reference voltage.

[0031] The above relay refers to an electronic control device in a circuit, which is used to realize functions such as signal amplification, isolation, conversion and control in the circuit. The above relay usually controls the current or voltage in the circuit by closing and opening. Among them, the above relay can be: a voltage relay, a contact relay, a single-pole single-throw relay, a single-pole double-throw relay, a double-pole double-throw relay, an industrial relay, an automotive relay, an electromagnetic relay or a solid-state relay.

[0032] The above-mentioned voltage switching unit refers to a unit used to switch the voltage in the relay. Since the voltage of the relay is divided into an operating voltage used to indicate that the relay is in a started state, and a holding voltage used to indicate that the relay is in a working state after the started state, it is necessary to switch the input voltage of the relay between the operating voltage and the holding voltage. The above-mentioned voltage switching unit switches the voltage at the input end of the relay to the operating voltage or the holding voltage based on the voltage switching signal.

[0033] The above-mentioned voltage switching signal refers to a signal used by the voltage switching unit to switch the input voltage of the relay during control. The above-mentioned voltage switching signal is generated by the above-mentioned control unit. The above-mentioned voltage switching signal can be a high-level signal and a low-level signal. The above-mentioned voltage switching signal can also be a square wave signal and a sine wave signal.

[0034] The above-mentioned operating voltage refers to the voltage used to indicate that the relay is in the starting state, and the above-mentioned operating voltage refers to the voltage required for the relay to change from the open state to the closed state. In the present application, when the operating voltage is input to the input terminal of the relay, the relay is closed.

[0035] The above-mentioned holding voltage refers to the voltage used to indicate that the relay is in the working state after the starting state, and the above-mentioned holding voltage refers to the voltage used to maintain the closed state of the relay after the relay is closed. In this application, when the relay changes from the open state to the closed state, the holding voltage is input to the relay input terminal to keep the relay in the closed state.

[0036] The control unit is a unit for controlling the voltage switching unit, and the control unit controls the voltage input from the voltage switching unit to the input terminal of the relay through a voltage switching signal. In the present application, the control unit generates the voltage switching signal according to the current voltage of the relay and the reference voltage.

[0037] The above-mentioned reference voltage refers to a stable voltage value, which is used as a reference or benchmark for other voltages in the circuit. The reference voltage can be fixed or adjustable. In the present application, the above-mentioned reference voltage is used as a reference for the operating voltage and the holding voltage in the voltage switching circuit of the relay. The control unit generates a voltage switching signal based on the current voltage of the relay and the above-mentioned reference voltage to control the above-mentioned relay.

[0038] In an optional embodiment, the voltage switching circuit of the relay provided in the present application includes a voltage switching unit and a control unit, wherein the first end of the voltage switching unit is connected to the input end of the relay, and the second end of the voltage switching unit is connected to the control unit. The control unit generates a voltage switching signal according to the current voltage of the relay and the reference voltage, and inputs the voltage switching signal to the second end of the voltage switching unit. After the voltage switching unit receives the voltage switching signal, the voltage switching unit generates an operating voltage or a holding voltage of the above-mentioned relay according to the voltage switching signal. When the generated voltage is an operating voltage, the operating voltage is input into the relay through the first end of the voltage switching unit to control the above-mentioned relay to close; when the generated voltage is a holding voltage, the holding voltage is input into the relay through the first end of the voltage switching unit to control the above-mentioned relay to maintain a closed state.

[0039] In the case where the voltage switching signal is a high level signal and a low level signal, the first end of the voltage switching unit is connected to the input end of the relay, and the second end of the voltage switching unit is connected to the control unit. The control unit generates a voltage switching signal of a high level signal or a low level signal according to the current voltage of the relay and the reference voltage. When a high level signal is generated, the high level signal is input to the second end of the voltage switching unit. After the voltage switching unit receives the high level signal, the voltage switching unit generates an operating voltage according to the high level signal, and inputs the operating voltage into the relay through the first end of the voltage switching unit to control the above relay to close; when a low level signal is generated, the low level signal is input to the second end of the voltage switching unit. After the voltage switching unit receives the low level signal, the voltage switching unit generates a holding voltage according to the low level signal, and inputs the holding voltage into the relay through the first end of the voltage switching unit to control the above relay to maintain a closed state.

[0040] In the case where the voltage switching signal is a square wave signal and a sine wave signal, the first end of the voltage switching unit is connected to the input end of the relay, and the second end of the voltage switching unit is connected to the control unit. The control unit generates a voltage switching signal having a square wave signal or a sine wave signal according to the current voltage of the relay and the reference voltage. When a square wave signal is generated, the square wave signal is input to the second end of the voltage switching unit. After the voltage switching unit receives the square wave signal, the voltage switching unit generates an operating voltage, and the operating voltage is input into the relay through the first end of the voltage switching unit to control the above relay to close; when a sine wave signal is generated, the sine wave signal is input to the second end of the voltage switching unit. After the voltage switching unit receives the sine wave signal, the voltage switching unit generates a holding voltage according to the sine wave signal, and the holding voltage is input into the relay through the first end of the voltage switching unit to control the above relay to maintain a closed state.

[0041] In the present application, by setting up a voltage switching unit and a control unit, the control unit can generate a voltage switching signal according to the current voltage and the reference voltage, and the operating voltage and the holding voltage of the relay can be switched through the voltage switching unit, which effectively simplifies the voltage switching circuit of the relay and improves the user experience.

[0042] Through the scheme of the present application, a voltage switching circuit of a relay is provided, comprising: a voltage switching unit, the first end of the voltage switching unit is connected to the input end of the relay, and is used to switch the operating voltage and the holding voltage according to the voltage switching signal to obtain the output voltage, and input the output voltage to the input end of the relay; a control unit is connected to the second end of the voltage switching unit. The present application sets up a voltage switching unit and a control unit, so that the control unit can generate a voltage switching signal according to the current voltage and the reference voltage of the relay, and controls the voltage switching unit to switch the operating voltage and the holding voltage of the relay through the voltage switching signal. The present application simplifies the voltage switching circuit of the relay through the cooperation of the voltage switching unit and the control unit, thereby solving the technical problem that the voltage switching circuit of the relay in the related art is relatively complicated.

[0043] Optionally, Figure 2 is a schematic diagram of the structure of an optional voltage switching unit according to an embodiment of the present invention, such as Figure 2 The voltage switching unit shown includes: a first circuit 21, the output end of the first circuit 21 is connected to the input end of the relay 12, and the input end of the first circuit 21 is connected to the control unit 13, which is used to use the operating voltage as the output voltage and input the output voltage to the input end of the relay 12; a second circuit 22, the output end of the second circuit 22 is connected to the input end of the relay 12, and the input end of the second circuit 22 is connected to the control unit 13, which is used to use the holding voltage as the output voltage and input the output voltage to the output end of the relay 12; a switch tube 23, the switch tube 23 is connected to the first circuit 21 and the second circuit 22, in response to the voltage switching signal being a high-level signal, the first circuit 21 is controlled to be turned on, and the operating voltage is used as the output voltage, and in response to the voltage switching signal being a low-level signal, the second circuit 22 is controlled to be turned on, and the holding voltage is used as the output voltage.

[0044] The first circuit is a circuit for outputting an operating voltage. In the present application, the first circuit is turned on or off by a voltage switching signal. When the first circuit is turned on, the first circuit outputs an operating voltage to the input end of the relay to control the relay to close.

[0045] The second circuit is a circuit for outputting a holding voltage. In the present application, the second circuit is turned on or off by a voltage switching signal. When the second circuit is turned on, the second circuit outputs a holding voltage to the input terminal of the relay to maintain the closed state of the relay.

[0046] The switch tube is a component used to control the conduction or disconnection of the first circuit and the second circuit. The switch tube controls the conduction or disconnection of the first circuit and the second circuit to further control the voltage at the input end of the relay. The switch tube can be a triode, a field effect tube, a single-pole double-throw switch or a double-pole double-throw switch.

[0047] In an optional embodiment, the voltage switching unit includes: a first circuit, a second circuit and a switch tube, the output end of the first circuit is connected to the input end of the relay, the input end of the first circuit is connected to the control unit, the output end of the second circuit is connected to the input end of the relay, the input end of the second circuit is connected to the control unit, and the switch tube is connected to the first circuit and the second circuit respectively. When the voltage switching signal is a high-level signal, the switch tube controls the first circuit to be turned on and the second circuit to be turned off. After the first circuit is turned on, the operating voltage is input as the output of the first circuit to the input end of the above-mentioned relay. After the above-mentioned relay receives the operating voltage, the above-mentioned relay is closed; when the voltage switching signal is a low-level signal, the switch tube controls the second circuit to be turned on and the first circuit is turned off. After the second circuit is turned on, the holding voltage is input as the output of the second circuit to the input end of the above-mentioned relay. After the above-mentioned relay receives the operating voltage, the above-mentioned relay maintains a closed state.

[0048] In the present application, by setting a switch tube, a first circuit and a second circuit, the on and off of the first circuit and the second circuit can be controlled by the switch tube to accurately control the voltage at the input end of the relay, thereby effectively improving the accuracy of the voltage at the input end of the relay, further improving the accuracy of the voltage switching of the relay, and improving the user experience.

[0049] Optionally, Figure 3 is a schematic diagram of a structure of an optional first circuit according to an embodiment of the present invention, such as Figure 3As shown, the first circuit includes: a first resistor 31, a first end of the first resistor 31 is connected to the input end of the relay 12, and the first resistor 31 is used to adjust the operating voltage; a second resistor 32, a first end of the second resistor 32 is connected to the second end of the first resistor 31, and the second end of the second resistor 32 is grounded, and the second resistor 32 is used to form a first voltage divider circuit on the first circuit when the switch tube is in a closed state; a third resistor 33, a first end of the third resistor 33 is connected to the input end of the relay 12, and the second end of the third resistor 33 is grounded, and the third resistor 33 is used to form a second voltage divider circuit on the first circuit with the first resistor 31 when the switch tube is in a closed state.

[0050] The off state of the switch tube refers to the state in which the switch tube controls the conduction of the first circuit. When the switch tube is in the off state, the first circuit is conducted. After the first circuit is conducted, the first resistor and the second resistor form a first voltage divider circuit, the third resistor forms a second voltage divider circuit, and the first circuit outputs an operating voltage to the relay.

[0051] In an optional embodiment, the first circuit includes: a first resistor, a second resistor and a third resistor, the first end of the first resistor is connected to the input end of the relay, the second end of the first resistor is connected to the first end of the second resistor, the second end of the second resistor is grounded, the first end of the third resistor is connected to the input end of the relay, and the second end of the third resistor is grounded. In the present application, when the switch tube is in the off state, the first circuit is turned on, the first resistor, the second resistor and the third resistor are turned on, the first resistor and the second resistor are connected in series to form a first voltage divider circuit, the third resistor is connected in parallel with the first resistor to form a second voltage divider circuit, and the operating voltage is input to the input end of the relay through the first end of the first resistor.

[0052] In the present application, by setting a first resistor, a second resistor and a third resistor, a first voltage divider circuit and a second voltage divider circuit are formed to divide the voltage in the first circuit. Not only can the operating voltage be adjusted by voltage division to input a more precise operating voltage, but the safety of the above-mentioned first circuit can also be ensured, thereby effectively improving the user experience.

[0053] Optionally, Figure 4 is a schematic diagram of a structure of an optional second circuit according to an embodiment of the present invention, such as Figure 4As shown, the second circuit includes: a fourth resistor 41, a first end of the fourth resistor 41 is connected to the input end of the relay 12, a second end of the fourth resistor 41 is grounded, and the fourth resistor 41 is used to adjust the holding voltage; a fifth resistor 42, a first end of the fifth resistor 42 is connected to the second end of the fourth resistor 41, a second end of the fifth resistor 42 is connected to the switch tube 23, and the fifth resistor 42 is used to form a third voltage divider circuit on the second circuit when the switch tube 23 is in the on state.

[0054] The on state of the switch tube refers to the state in which the switch tube controls the conduction of the second circuit. When the switch tube is in the on state, the second circuit is conducted. After the second circuit is conducted, the fourth resistor is connected in series with the fifth resistor to form the third voltage divider circuit, and the second circuit outputs a holding voltage to the relay.

[0055] In an optional embodiment, the second circuit includes: a fourth resistor and a fifth resistor, the first end of the fourth resistor is connected to the input end of the relay, the second end of the fourth resistor is grounded, and the second end of the fourth resistor is also connected to the first end of the fifth resistor, and the second end of the fifth resistor is connected to the switch tube. In the present application, when the switch tube is in the on state, the second circuit is turned on, the fourth resistor and the fifth resistor are turned on, the fourth resistor and the fifth resistor are connected in series, forming a third voltage divider circuit, and the holding voltage is input to the input end of the relay through the first end of the fourth resistor.

[0056] In another optional embodiment, Figure 5 is a schematic diagram of a preferred voltage switching circuit of a relay according to an embodiment of the present invention. Figure 5 As shown, the transistor 51 is used as the above-mentioned switching tube, the above-mentioned first circuit includes a first resistor 31, a second resistor 32 and a third resistor 33, the above-mentioned second circuit includes a second resistor 32 and a third resistor 33, the first end of the above-mentioned third resistor 33 is connected to the input end of the above-mentioned relay 12, the second end of the above-mentioned third resistor 33 is connected to the first end of the above-mentioned second resistor 32, and the second end of the above-mentioned second resistor 32 is connected to the transistor 51. In the present application, when the transistor 51 is in the off state, the first resistor 31, the second resistor 32 and the third resistor 33 are turned on, that is, the first circuit is turned on, the first resistor 31 and the second resistor 32 are connected in series to form a first voltage divider circuit, the third resistor 33 and the first resistor 31 are connected in parallel to form a second voltage divider circuit, and the turn-on voltage is input to the input end of the above-mentioned relay 12 through the first end of the third resistor 33 and the first end of the first resistor 31; when the transistor 51 is in the on state, the above-mentioned second circuit is turned on, the second resistor 32 and the third resistor 33 are turned on, the second resistor 32 and the third resistor 33 are connected in series to form a third voltage divider circuit, and the holding voltage is input to the input end of the above-mentioned relay 12 through the first end of the third resistor 33.

[0057] In the present application, by setting the fourth resistor and the fifth resistor, a third voltage divider circuit is formed to divide the voltage in the second circuit. Not only can the operating voltage be adjusted by voltage division to input a more accurate holding voltage, but the safety of the above-mentioned second circuit can also be ensured, thereby effectively improving the user experience.

[0058] Optionally, the control unit includes: a comparator for comparing the current voltage and the reference voltage, determining that the voltage switching signal is a high level signal in response to the current voltage being higher than the reference voltage, and determining that the voltage switching signal is a low level signal in response to the current voltage being equal to or lower than the reference voltage.

[0059] The comparator is a component for comparing the current voltage with the reference voltage. In the present application, the current voltage and the reference voltage are compared to generate a voltage switching signal, and the input voltage of the relay is then switched by the voltage switching signal.

[0060] In an optional embodiment, a comparator is provided in the control unit, and the current voltage and the reference voltage are compared by the comparator to obtain a comparison result, and a voltage switching signal is generated according to the comparison result. When the comparison result is that the current voltage is higher than the reference voltage, the voltage switching signal is determined to be a high-level signal; when the comparison result is that the current voltage is lower than or equal to the reference voltage, the voltage switching signal is determined to be a low-level signal.

[0061] In the present application, a comparator is set up so that the current voltage and the reference voltage can be compared through the comparator, and a voltage switching signal is generated based on the comparison result, which effectively improves the acquisition rate of the voltage switching signal, improves the voltage switching rate of the relay, and improves the user experience.

[0062] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0063] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0064] According to an embodiment of the present invention, an embodiment of a voltage switching method of a relay is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0065] Figure 6 is a flow chart of an optional voltage switching method of a relay according to an embodiment of the present invention, such as Figure 6 As shown, the method comprises the following steps:

[0066] Step S602, monitoring the current voltage of the relay.

[0067] In an optional embodiment, the voltage in the relay may be monitored by a voltage sensor to obtain the current voltage of the relay.

[0068] In another optional embodiment, the voltage in the relay may also be monitored by a multimeter to obtain the current voltage of the relay.

[0069] In another optional embodiment, the voltage in the relay may also be monitored by a voltage monitoring module to obtain the current voltage of the relay.

[0070] In the present application, the relay is monitored to obtain a more accurate current voltage of the relay, thereby effectively improving the accuracy of relay voltage switching and enhancing the user experience.

[0071] Step S604: using the voltage switching unit in the voltage switching circuit to generate a voltage switching signal according to the current voltage and the reference voltage of the relay.

[0072] In an optional embodiment, the current voltage and the reference voltage of the relay can be compared to obtain a comparison result, and a voltage switching signal can be generated according to the comparison result. When the comparison result shows that the current voltage is higher than the reference voltage, the voltage switching signal is determined to be a high-level signal; when the comparison result shows that the current voltage is lower than or equal to the reference voltage, the voltage switching signal is determined to be a low-level signal.

[0073] In another optional embodiment, a voltage switching signal determination module can be pre-established, and the current voltage and the reference voltage can be used as inputs of the voltage switching signal determination module to output a voltage switching signal of a high level signal or a low level signal.

[0074] Step S606, switching the operating voltage and holding voltage of the relay based on the voltage switching signal to obtain an output voltage, wherein the operating voltage is used to indicate the voltage when the relay is in a starting state, and the holding voltage is used to indicate the voltage when the relay is in a working state after the starting state.

[0075] In an optional embodiment, after the voltage switching signal is obtained, the operating voltage and the holding voltage of the relay are switched according to the voltage switching signal to obtain the output voltage. The operating voltage is used to control the relay to switch from an open state to a closed state, and the holding voltage is used to maintain the relay in a closed state.

[0076] In the case where the above-mentioned voltage switching signal is a high-level signal and a low-level signal, when a high-level signal is generated, the voltage switching unit generates an operating voltage according to the high-level signal, and inputs the operating voltage into the relay to control the above-mentioned relay to close; when a low-level signal is generated, the low-level signal is input into the voltage switching unit. After the voltage switching unit receives the low-level signal, the voltage switching unit generates a holding voltage according to the low-level signal, and inputs the holding voltage into the relay to control the above-mentioned relay to maintain a closed state.

[0077] In the case where the voltage switching signal is a square wave signal and a sine wave signal, the control unit generates a voltage switching signal having a square wave signal or a sine wave signal according to the current voltage of the relay and the reference voltage. When a square wave signal is generated, the square wave signal is input to the voltage switching unit. After the voltage switching unit receives the square wave signal, the voltage switching unit generates an operating voltage and inputs the operating voltage into the relay to control the above relay to close; when a sine wave signal is generated, the sine wave signal is input to the voltage switching unit. After the voltage switching unit receives the sine wave signal, the voltage switching unit generates a holding voltage according to the sine wave signal and inputs the holding voltage into the relay to control the above relay to maintain a closed state.

[0078] In the present application, the operating voltage and holding voltage of the relay are switched by a voltage switching signal to obtain an output voltage, which effectively improves the accuracy of the relay voltage switching and improves the user experience.

[0079] Step S608, providing the output voltage to the relay.

[0080] In an optional embodiment, after the output voltage is obtained, the output voltage is provided to the above-mentioned relay to control the relay to close or maintain a closed state. When the output voltage is the operating voltage, the relay is controlled to close; when the output voltage is the holding voltage, the relay is controlled to maintain a closed state.

[0081] Optionally, a voltage switching unit in a voltage switching circuit is used to generate a voltage switching signal according to a current voltage and a reference voltage of a relay, including: in response to the voltage switching signal being a high-level signal, controlling the switch tube in the voltage switching unit to be in a closed state, and making the first circuit in the voltage switching unit conductive, and using the operating voltage as the output voltage; in response to the voltage switching signal being a low-level signal, controlling the switch tube to be in an open state, and making the second circuit in the voltage switching unit conductive, and using the maintained voltage as the output voltage.

[0082] In an optional embodiment, when the voltage switching signal is a high-level signal, the switch tube in the voltage switching unit is controlled to be in a closed state, so that the first circuit in the voltage switching unit is turned on to input the operating voltage into the above-mentioned relay and control the relay to be closed; when the voltage switching signal is a low-level signal, the switch tube in the voltage switching unit is controlled to be in an open state, so that the second circuit in the voltage switching unit is turned on to input the holding voltage into the above-mentioned relay and control the relay to remain in a closed state.

[0083] According to an embodiment of the present invention, an embodiment of a voltage switching device for a relay is provided. It should be noted that the device can be used to execute the voltage switching method for the relay. Figure 7 is a schematic structural diagram of an optional voltage switching device of a relay according to an embodiment of the present invention, such as Figure 7 As shown, the device includes: a monitoring module 70, which is used to monitor the current voltage of the relay; a generating module 72, which is used to generate a voltage switching signal according to the current voltage and the reference voltage of the relay by using the voltage switching unit in the voltage switching circuit; a switching module 74, which is used to switch the operating voltage and the holding voltage of the relay based on the voltage switching signal to obtain an output voltage, wherein the operating voltage is used to represent the voltage when the relay is in a starting state, and the holding voltage is used to represent the voltage when the relay is in a working state after the starting state; an output module 76, which is used to provide the output voltage to the relay.

[0084] Optionally, the switching module includes: a first output unit, used to control the switch tube in the voltage switching unit to be in a closed state in response to the voltage switching signal being a high-level signal, and to turn on the first circuit in the voltage switching unit, and to use the operating voltage as the output voltage; a second output unit, used to control the switch tube to be in an open state in response to the voltage switching signal being a low-level signal, and to turn on the second circuit in the voltage switching unit, and to use the maintained voltage as the output voltage.

[0085] An embodiment of the present application further provides an electronic device, comprising: a memory storing an executable program; and a processor for running the program, wherein the program executes the methods in various embodiments of the present invention when running.

[0086] An embodiment of the present application further provides a computer-readable storage medium, which includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the methods in various embodiments of the present invention.

[0087] An embodiment of the present application further provides a computer program product, including a computer program, which implements the methods in various embodiments of the present invention when executed by a processor.

[0088] The embodiments of the present application further provide a computer program, which implements the methods in the above-mentioned embodiments of the present invention when executed by a processor.

[0089] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0090] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0091] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0092] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0093] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0094] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0095] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A voltage switching circuit of a relay, characterized in that: include: a voltage switching unit, wherein a first end of the voltage switching unit is connected to an input end of the relay, and is used to switch an operating voltage and a holding voltage according to a voltage switching signal to obtain an output voltage, and input the output voltage to the input end of the relay, wherein the operating voltage is used to indicate a voltage when the relay is in a starting state, and the holding voltage is used to indicate a voltage when the relay is in a working state after the starting state; A control unit is connected to the second end of the voltage switching unit and is used to generate the voltage switching signal according to the current voltage of the relay and the reference voltage.

2. The voltage switching circuit of a relay according to claim 1, characterized in that: The voltage switching unit comprises: a first circuit, wherein an output end of the first circuit is connected to an input end of the relay, and an input end of the first circuit is connected to the control unit, and is used to use the operating voltage as the output voltage and input the output voltage to the input end of the relay; a second circuit, wherein an output end of the second circuit is connected to an input end of the relay, and an input end of the second circuit is connected to the control unit, and is used to use the holding voltage as the output voltage and input the output voltage to the output end of the relay; A switch tube, the switch tube is connected to the first circuit and the second circuit, and in response to the voltage switching signal being a high-level signal, controls the first circuit to be turned on and uses the operating voltage as the output voltage, and in response to the voltage switching signal being a low-level signal, controls the second circuit to be turned on and uses the holding voltage as the output voltage.

3. The voltage switching circuit of a relay according to claim 2, characterized in that: The first circuit comprises: a first resistor, wherein a first end of the first resistor is connected to an input end of the relay, and the first resistor is used to adjust the operating voltage; a second resistor, wherein a first end of the second resistor is connected to a second end of the first resistor, a second end of the second resistor is grounded, and the second resistor is used to form a first voltage divider circuit on the first circuit when the switch tube is in an off state; A third resistor, wherein a first end of the third resistor is connected to the input end of the relay, a second end of the third resistor is grounded, and the third resistor is used to form a second voltage divider circuit on the first circuit with the first resistor when the switch tube is in the off state.

4. The voltage switching circuit of a relay according to claim 2, characterized in that: The second circuit comprises: a fourth resistor, wherein a first end of the fourth resistor is connected to the input end of the relay, a second end of the fourth resistor is grounded, and the fourth resistor is used to adjust the holding voltage; A fifth resistor, wherein the first end of the fifth resistor is connected to the second end of the fourth resistor, the second end of the fifth resistor is connected to the switch tube, and the fifth resistor is used to form a third voltage divider circuit on the second circuit when the switch tube is in the on state.

5. The voltage switching circuit of a relay according to claim 1, characterized in that: The control unit comprises: A comparator is used to compare the current voltage with the reference voltage, and in response to the current voltage being higher than the reference voltage, determines that the voltage switching signal is a high-level signal, and in response to the current voltage being equal to or lower than the reference voltage, determines that the voltage switching signal is a low-level signal.

6. A voltage switching method of a relay, characterized in that: A voltage switching circuit applied to a relay according to any one of claims 1 to 5, comprising: Monitor the current voltage of the relay; Using a voltage switching unit in a voltage switching circuit to generate a voltage switching signal according to the current voltage and a reference voltage of the relay; Switching the operating voltage and the holding voltage of the relay based on the voltage switching signal to obtain an output voltage, wherein the operating voltage is used to represent the voltage when the relay is in a startup state, and the holding voltage is used to represent the voltage when the relay is in a working state after the startup state; The output voltage is provided to the relay.

7. The voltage switching method of a relay according to claim 6, characterized in that: Using a voltage switching unit in a voltage switching circuit to generate a voltage switching signal according to the current voltage and a reference voltage of the relay, comprising: In response to the voltage switching signal being a high level signal, controlling the switch tube in the voltage switching unit to be in a closed state, and making the first circuit in the voltage switching unit conductive, and using the operating voltage as the output voltage; In response to the voltage switching signal being a low level signal, the switch tube is controlled to be in an on state, and the second circuit in the voltage switching unit is turned on, and the maintained voltage is used as the output voltage.

8. An electronic device, characterized in that: include: A memory storing an executable program; A processor, configured to run the program, wherein the program executes the method according to any one of claims 6 to 7 when running.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is run, the device where the storage medium is located is controlled to execute the method according to any one of claims 6 to 7.

10. A computer program product, characterized in that It comprises a computer program which, when executed by a processor, implements the method according to any one of claims 6 to 7.