A key detection method of a photovoltaic inverter and related equipment
By introducing a low-voltage full-bridge circuit drive power supply with a secondary auxiliary power supply circuit into the photovoltaic inverter, and utilizing the breakdown threshold characteristics of the Zener diode and the isolation optocoupler, the problem of the inability to recognize the button status when there is no battery is solved. This achieves accurate detection of the button status and protection of the drive power supply, thereby improving the reliability and safety of the system.
Patent Information
- Application Number
- CN202611228101.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-13
- Publication Date
- 2026-11-27
AI Technical Summary
Existing photovoltaic inverters cannot recognize button status when there is no battery, and the button detection function is limited, failing to achieve drive power supply fault detection and protection.
A low-voltage full-bridge circuit driver power supply with a secondary auxiliary power supply circuit is introduced. The breakdown threshold characteristics of the Zener diode are used in combination with an isolation optocoupler to realize the key status detection, and the driver power supply undervoltage protection is performed during the detection process.
It can accurately detect button status under various power supply scenarios, realize undervoltage protection of drive power supply, avoid damage to power devices, and improve detection accuracy and system safety.
Smart Images

Figure CN123176505A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of photovoltaic inverter control technology, specifically to a method for detecting buttons on a photovoltaic inverter and related equipment. Background Technology
[0002] Photovoltaic inverters typically use a power button to turn the inverter on or off.
[0003] In existing technologies, the button detection circuit of a photovoltaic inverter often determines the open or closed state of the button by sampling the voltage divider node of the feedback circuit of the first-stage flyback auxiliary power supply.
[0004] However, the relevant technology has the following drawbacks: when there is no battery and only PV or AC power is available, the digital signal processor cannot identify the on or off state of the button through this circuit; it only has a detection function, which is relatively simple and cannot realize the detection and protection of drive power supply failures. Currently, no effective solution has been proposed to address these problems. Summary of the Invention
[0005] This application provides a button detection method and related equipment for a photovoltaic inverter to solve the technical problems of button status not being recognized when there is no battery and limited functionality in the prior art.
[0006] On one hand, embodiments of this application provide a button detection method for a photovoltaic inverter, including the following steps: Acquire a voltage signal, wherein the voltage signal is the voltage of the low-voltage full-bridge circuit drive power supply; The voltage signal is input to the key detection circuit through a key switch. The key detection circuit includes a Zener diode, an isolation optocoupler, and a filter circuit composed of resistors and capacitors. When the push-button switch is closed and the amplitude of the voltage signal is greater than or equal to the breakdown voltage of the Zener diode, the Zener diode breaks down, the isolation optocoupler is turned on, and a first-level detection signal is output. When the push-button switch is turned off, or when the amplitude of the voltage signal is less than the breakdown voltage of the Zener diode, the isolation optocoupler is turned off and outputs a second-level detection signal. The first level detection signal or the second level detection signal is filtered by the filtering circuit and then transmitted to the digital signal processor. The digital signal processor determines the on or off state of the push button switch based on the received level signal. When the amplitude of the voltage signal is lower than the breakdown voltage of the Zener diode, the inverter is controlled to be turned off based on the second level detection signal.
[0007] Optionally, acquiring the voltage signal, wherein the voltage signal is the voltage of the low-voltage full-bridge circuit drive power supply, includes: when the photovoltaic inverter is powered by a battery, the first-level auxiliary power supply circuit operates, the first-level auxiliary power supply circuit outputs high-voltage DC power to the second-level auxiliary power supply circuit, and the second-level auxiliary power supply circuit outputs the low-voltage full-bridge circuit drive power supply; when the photovoltaic inverter has no battery and only has photovoltaic input or mains input, the photovoltaic input outputs high-voltage DC power to the second-level auxiliary power supply circuit via the photovoltaic auxiliary power supply module or the mains input outputs high-voltage DC power via the mains auxiliary power supply module, and the second-level auxiliary power supply circuit outputs the low-voltage full-bridge circuit drive power supply.
[0008] Optionally, in the key detection circuit, the Zener diode is connected in series with the light-emitting diode of the isolation optocoupler, the emitter of the light-receiving transistor of the isolation optocoupler is grounded, and the collector of the light-receiving transistor of the isolation optocoupler is connected to the power supply through the resistor and grounded through the capacitor.
[0009] Optionally, inputting the voltage signal into the key detection circuit via a key switch includes: the low-voltage full-bridge circuit drive power supply being connected to the cathode of the Zener diode via the key switch; the anode of the Zener diode being connected to one end of a first current-limiting resistor; the other end of the first current-limiting resistor being connected to one end of a second current-limiting resistor and the anode of the isolation optocoupler light-emitting diode; and the other end of the second current-limiting resistor and the cathode of the isolation optocoupler light-emitting diode being grounded together.
[0010] Optionally, the first level detection signal is a low-level signal, and the second level detection signal is a high-level signal.
[0011] Optionally, transmitting the first level detection signal or the second level detection signal to the digital signal processor after filtering by the filtering circuit includes: transmitting the first level detection signal or the second level detection signal to the input pin of the digital signal processor after filtering out high-frequency noise by the low-pass filter circuit composed of the resistor and capacitor.
[0012] Optionally, the digital signal processor determines the on or off state of the push-button switch based on the received level signal, including: when the digital signal processor receives the first level detection signal, determining that the push-button switch is closed; when the digital signal processor receives the second level detection signal, determining that the push-button switch is open.
[0013] Optionally, when the amplitude of the voltage signal is lower than the breakdown voltage of the Zener diode, the digital signal processor controls the inverter to shut down according to the second level detection signal, including: when the voltage of the low-voltage full-bridge circuit drive power supply is lower than the breakdown voltage of the Zener diode due to a fault, even if the push-button switch is closed and the Zener diode is not broken down, the digital signal processor receives the second level detection signal to determine that the push-button switch is open, and controls the inverter to shut down to protect the power devices of the low-voltage full-bridge circuit.
[0014] On the other hand, embodiments of this application also provide a button detection device for a photovoltaic inverter, comprising: A voltage acquisition module is used to acquire a voltage signal, wherein the voltage signal is the voltage of the low-voltage full-bridge circuit drive power supply; The detection module is used to input the voltage signal into the key detection circuit through a key switch. The key detection circuit includes a Zener diode, an isolation optocoupler, and a filter circuit composed of resistors and capacitors. When the key switch is closed and the amplitude of the voltage signal is greater than or equal to the breakdown voltage of the Zener diode, the Zener diode breaks down, the isolation optocoupler is turned on, and a first-level detection signal is output. When the key switch is open, or the amplitude of the voltage signal is less than the breakdown voltage of the Zener diode, the isolation optocoupler is turned off, and a second-level detection signal is output. The judgment module is used to transmit the first level detection signal or the second level detection signal to the digital signal processor after filtering by the filtering circuit. The digital signal processor determines the on or off state of the push button switch according to the received level signal, and when the amplitude of the voltage signal is lower than the breakdown voltage of the Zener diode, it controls the inverter to be turned off according to the second level detection signal.
[0015] In another aspect, embodiments of this application also provide an electronic device, including a processor and a memory, wherein the memory stores a computer program or instructions, and the computer program or instructions, when executed by the processor, implement the method described in any of the above-mentioned embodiments.
[0016] In another aspect, embodiments of this application also provide a computer-readable storage medium having a computer program or instructions stored thereon, which, when executed by a processor, implement the method described in any of the above-mentioned embodiments.
[0017] The embodiments of this application include the following beneficial effects: This application's solution introduces the low-voltage full-bridge circuit drive power from the secondary auxiliary power supply into the button detection circuit. Utilizing the breakdown characteristics of the Zener diode as a threshold for judgment, and employing an isolation optocoupler for electrical isolation, it solves the technical problem of unrecognizable button status when there is no battery. This achieves accurate button status detection under various power supply scenarios. Simultaneously, through the Zener diode threshold detection mechanism, undervoltage protection of the drive power supply is implemented concurrently during button detection. When the drive power supply voltage falls below the Zener diode breakdown voltage, the inverter is automatically shut down, effectively avoiding the risk of damage to power devices due to insufficient drive. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 A circuit block diagram of an auxiliary power supply and key detection circuit for a photovoltaic inverter provided in an embodiment of this application; Figure 2 A circuit diagram of an auxiliary power supply and key detection circuit for a photovoltaic inverter provided in this application embodiment; Figure 3 A flowchart illustrating a button detection method for a photovoltaic inverter provided in this application embodiment; Figure 4 This is a schematic diagram of the structure of a button detection device for a photovoltaic inverter provided in an embodiment of this application; Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0021] It should be noted that although the device diagram shows a modular division and the flowchart illustrates a logical order, in some cases, the steps shown or described may be performed in a different order than the modular division in the device or the order shown in the flowchart. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to limit the invention.
[0022] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a full understanding of embodiments of the invention. However, those skilled in the art will recognize that the technical solutions of the invention can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of the invention.
[0023] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0024] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0025] In related technologies, the button detection circuit of a photovoltaic inverter often determines the on or off state of the button by sampling the voltage divider node of the feedback circuit of the primary flyback auxiliary power supply. However, this technology has the following drawbacks: when there is no battery and only PV or AC power is available, the digital signal processor cannot identify the on or off state of the button through this circuit; it only has a detection function, which is relatively simple and cannot realize drive power supply fault detection and protection. Currently, no effective solution has been proposed to address these problems.
[0026] Based on this, embodiments of this application provide a button detection method and related equipment for a photovoltaic inverter. By introducing a low-voltage full-bridge circuit drive power supply of a secondary auxiliary power supply circuit as the detection signal source, and utilizing the breakdown threshold characteristics of the Zener diode, the method achieves accurate button status detection while completing the undervoltage protection function of the drive power supply.
[0027] refer to Figure 1 and Figure 2 The photovoltaic inverter auxiliary power supply circuit provided in this application embodiment consists of a primary auxiliary power supply circuit and a secondary auxiliary power supply circuit. The primary auxiliary power supply circuit mainly consists of a first power management chip U1 and its surrounding circuits, a first MOSFET Q1, and a first transformer TX1. The secondary auxiliary power supply circuit mainly consists of a second power management chip U2 and its surrounding circuits, a second MOSFET Q2, and a second transformer TX2.
[0028] When a battery is present, if the switch is open, the digital signal processor (DSP) detects that the voltage divider node of the feedback circuit of the first power management chip U1 in the first-stage auxiliary power supply circuit is 0V, and thus determines that the switch is open. If the switch is closed, the DSP detects that the voltage divider node of the feedback circuit of the first power management chip U1 in the first-stage auxiliary power supply circuit is 2.5V, and thus determines that the switch is closed. If there is no battery, and only PV or AC power is present, regardless of whether the switch is open or closed, the DSP will detect that the voltage divider node of the feedback circuit of the first power management chip U1 in the first-stage auxiliary power supply circuit is 0V, and thus determines that the switch is open. In this case, the DSP cannot determine the state of the switch, thereby affecting the operation of the DSP's internal program.
[0029] The technical solution provided in this application embodiment connects the output voltage of the secondary auxiliary power supply circuit, namely the low-voltage full-bridge circuit drive power supply +15V_L, to the key detection circuit through the key switch S1, and the key detection circuit is then connected to the digital signal processor.
[0030] refer to Figure 3 In one embodiment, the button detection method for a photovoltaic inverter provided in this application includes the following steps: Step S100: Obtain the voltage signal of the low-voltage full-bridge circuit drive power supply output by the secondary auxiliary power supply circuit.
[0031] Specifically, when the photovoltaic inverter is powered by a battery, the current from the battery input terminal BAT+ flows from the positive terminal through the first filter circuit to filter out high-frequency noise and surge current, then through the primary side of the first transformer TX1, the first MOSFET Q1, the first current sampling resistor R5, and the first filter circuit back to the battery input terminal ground BAT_GND. The first power management chip U1 and its surrounding circuits output a PWM signal to control the switching on and off of the first MOSFET Q1, thereby causing the secondary side of the first transformer TX1 to output a square wave. This wave is rectified into high-voltage DC by the first diode D2 and the first filter capacitor EC2. The first-stage auxiliary power supply circuit then operates and outputs high-voltage DC to the second-stage auxiliary power supply circuit. The second-stage auxiliary power supply circuit outputs the low-voltage full-bridge circuit drive power.
[0032] When the photovoltaic inverter has no battery and only photovoltaic input or mains power input is present, the photovoltaic power outputs high-voltage DC power through the PV auxiliary power module or the mains power outputs high-voltage DC power through the mains auxiliary power module. The positive terminal returns to ground GND through the second diode D3, the primary side of the second transformer TX2, the second MOSFET Q2, and the second current sampling resistor R6. The second power management chip U2 and its surrounding circuits output PWM signals to control the turning on and off of the second MOSFET Q2, thereby causing the secondary side of the second transformer TX2 to output a low-voltage full-bridge circuit drive power supply of +15V_L.
[0033] Step S200: Input the voltage signal into the key detection circuit through the key switch. The key detection circuit includes a Zener diode, an isolation optocoupler, and a filter circuit composed of resistors and capacitors.
[0034] Specifically, refer to Figure 2 The low-voltage full-bridge circuit drive power supply +15V_L is connected to the cathode of Zener diode ZD1 via push-button switch S1. The anode of Zener diode ZD1 is connected to one end of the first current-limiting resistor R2. The other end of the first current-limiting resistor R2 is connected to one end of the second current-limiting resistor R4 and the anode of the LED of the isolation optocoupler U3. The other end of the second current-limiting resistor R4 and the cathode of the LED of the isolation optocoupler U3 are grounded to GND. In the button detection circuit, Zener diode ZD1 and the LED of the isolation optocoupler U3 are connected in series. The emitter of the light-receiving transistor of the isolation optocoupler U3 is grounded to GND, and the collector of the light-receiving transistor of the isolation optocoupler U3 is connected to the +5V power supply via filter resistor R3 and grounded to GND via filter capacitor C1. Filter resistor R3 and filter capacitor C1 form a low-pass filter circuit to filter out high-frequency noise in the detection signal, ensuring that the signal received by the digital signal processor (DSP) is stable and reliable.
[0035] Step S300: When the push button switch is closed and the amplitude of the voltage signal is greater than or equal to the breakdown voltage of the Zener diode, the Zener diode breaks down, the isolation optocoupler is turned on, and a first level detection signal is output.
[0036] Specifically, the low-voltage full-bridge circuit drive power supply +15V_L is 15V, which is greater than the breakdown voltage of Zener diode ZD1 (10V). Therefore, it can break down Zener diode ZD1, and the 10V voltage is applied to Zener diode ZD1. The remaining 5V voltage is applied to the first current-limiting resistor R2, the second current-limiting resistor R4, and pins 1 and 2 of the isolation optocoupler U3. At this time, the LED between pins 1 and 2 of the isolation optocoupler U3 lights up, causing the transistor between pins 3 and 4 of the isolation optocoupler U3 to conduct. The voltage at pin 4 of the isolation optocoupler U3 is pulled to a low level of 0V, and the first level detection signal, i.e., the low level signal, is output.
[0037] Step S400: When the push button switch is turned off, or when the amplitude of the voltage signal is less than the breakdown voltage of the Zener diode, the isolation optocoupler is turned off and outputs a second-level detection signal.
[0038] Specifically, there are two scenarios where a second-level detection signal, i.e., a high-level signal, is output: First, when the push-button switch S1 is open, the connection between the low-voltage full-bridge circuit drive power supply +15V_L and the Zener diode ZD1 is broken. The LED of the isolation optocoupler U3 does not light up, the transistor between pins 3 and 4 of the isolation optocoupler U3 is cut off, and the voltage at pin 4 of the isolation optocoupler U3 remains high at +5V. Second, when the voltage of the low-voltage full-bridge circuit drive power supply +15V_L falls below the breakdown voltage of the Zener diode ZD1 (10V) due to a fault, even if the push-button switch S1 is closed, the Zener diode ZD1 cannot be broken down due to the voltage being below 10V. Therefore, the LED of the isolation optocoupler U3 does not light up, the transistor between pins 3 and 4 of the isolation optocoupler U3 is cut off, and the voltage at pin 4 of the isolation optocoupler U3 remains high at +5V. In both scenarios, a second-level detection signal, i.e., a high-level signal, is output.
[0039] Step S500: The first level detection signal or the second level detection signal is filtered by the filtering circuit and then transmitted to the digital signal processor. The digital signal processor determines the on or off state of the push button switch based on the received level signal. When the amplitude of the voltage signal is lower than the breakdown voltage of the Zener diode, the inverter is controlled to be turned off according to the second level detection signal.
[0040] Specifically, the first level detection signal (i.e., a low-level signal of approximately 0V) or the second level detection signal (i.e., a high-level signal of approximately +5V) is filtered by a low-pass filter circuit composed of a filter resistor R3 and a filter capacitor C1 to remove high-frequency noise before being transmitted to the input pin of the digital signal processor (DSP). When the DSP receives the first level detection signal (i.e., a low-level signal), it determines that the button switch is closed; when the DSP receives the second level detection signal (i.e., a high-level signal), it determines that the button switch is open. When the voltage of the low-voltage full-bridge circuit drive power supply +15V_L falls below the breakdown voltage of the Zener diode ZD1 (10V) due to a fault, even if the button switch S1 is closed, the Zener diode ZD1 is not broken down. The DSP receives the second level detection signal (i.e., a high-level signal) and determines that the button switch is open, controlling the inverter to shut down, thereby protecting the inverter. If, under full-power operation, the 10V drive power supply drives the MOSFET of the low-voltage full-bridge circuit, the MOSFET will rapidly heat up, leading to a blown-up inverter. This application effectively avoids this risk through the threshold detection of the Zener diode ZD1.
[0041] This application provides a button detection method for a photovoltaic inverter. By introducing the low-voltage full-bridge circuit drive power output from the secondary auxiliary power supply circuit into the button detection circuit, and using the breakdown threshold of the Zener diode ZD1 as a judgment condition, the digital signal processor can still determine the open or closed state of the button by detecting the low-voltage full-bridge circuit drive power when there is no battery and only PV or mains power is present, making the detection more accurate and reliable. At the same time, through the Zener diode ZD1 threshold detection mechanism, the undervoltage protection function of the drive power supply is simultaneously implemented during the button detection process. When the drive power supply voltage is lower than the breakdown voltage of the Zener diode ZD1, the inverter is automatically shut down, effectively avoiding the risk of damage to power devices due to insufficient drive.
[0042] In yet another embodiment, reference is made to Figure 4 This application also provides a button detection device for a photovoltaic inverter, comprising: The voltage acquisition module 401 is used to acquire the voltage signal of the low-voltage full-bridge circuit drive power supply output by the secondary auxiliary power supply circuit.
[0043] In one embodiment, the voltage acquisition module 401 corresponds to the output terminal of the secondary winding of the second transformer TX2 in the secondary auxiliary power supply circuit, and directly acquires the voltage signal of the low-voltage full-bridge circuit drive power supply through electrical connection. In another embodiment, the voltage acquisition module 401 can also acquire the voltage signal from the output terminal of the secondary auxiliary power supply circuit through a voltage divider circuit or a voltage sampling circuit.
[0044] The detection module 402 is used to input the voltage signal into the key detection circuit through the key switch. The key detection circuit includes a Zener diode, an isolation optocoupler, and a filter circuit composed of resistors and capacitors. When the key switch is closed and the amplitude of the voltage signal is greater than or equal to the breakdown voltage of the Zener diode, the Zener diode breaks down, the isolation optocoupler is turned on, and a first-level detection signal is output. When the key switch is open, or the amplitude of the voltage signal is less than the breakdown voltage of the Zener diode, the isolation optocoupler is turned off, and a second-level detection signal is output.
[0045] Specifically, refer to Figure 2 The button detection circuit in the detection module 402 consists of a button switch S1, a Zener diode ZD1, a first current-limiting resistor R2, a second current-limiting resistor R4, an isolation optocoupler U3, a filter resistor R3, and a filter capacitor C1. The Zener diode ZD1 is connected in series with the light-emitting diode of the isolation optocoupler U3. The emitter of the light-receiving transistor of the isolation optocoupler U3 is grounded to GND, and the collector of the light-receiving transistor is connected to a +5V power supply through the filter resistor R3 and grounded to GND through the filter capacitor C1. The filter resistor R3 and the filter capacitor C1 form a low-pass filter circuit to filter out high-frequency noise in the detection signal.
[0046] The judgment module 403 is used to transmit the first level detection signal or the second level detection signal to the digital signal processor after filtering by the filtering circuit. The digital signal processor determines the open or closed state of the button switch according to the received level signal, and when the amplitude of the voltage signal is lower than the breakdown voltage of the Zener diode, it controls the inverter to be turned off according to the second level detection signal.
[0047] Specifically, the judgment module 403 includes a low-pass filter circuit composed of the filter resistor R3 and the filter capacitor C1, and a digital signal processor (DSP). The first level detection signal (low level, approximately 0V) or the second level detection signal (high level, approximately +5V) is filtered by the low-pass filter circuit and then transmitted to the input pin of the DSP. The DSP performs logical judgment based on the level state of the input pin: when a low level is detected, the button switch is determined to be closed; when a high level is detected, the button switch is determined to be open. When the low-voltage full-bridge circuit drive power supply fails and the voltage drops below the breakdown voltage of the Zener diode ZD1, even if the button switch is closed, the detection module 402 still outputs the second level detection signal (high level), and the judgment module 403 determines that the button switch is open and triggers the DSP to execute the shutdown protection program, controlling the inverter to shut down and preventing the power devices of the low-voltage full-bridge circuit from operating and being damaged due to insufficient drive power.
[0048] In yet another embodiment, reference is made to Figure 5 This application also provides an electronic device, including a processor 501 and a memory 502, wherein the memory 502 stores a computer program or instructions, and the computer program or instructions, when executed by the processor 501, implement the method described in any of the above-mentioned embodiments.
[0049] Specifically, the processor 501 can be a digital signal processor (DSP), microcontroller (MCU), system-on-a-chip (SoC), or central processing unit (CPU) with a general-purpose input / output interface. The memory 502 includes non-volatile memory (flash memory or EEPROM) and volatile memory (SRAM or DRAM) for storing the computer program or instructions and temporary data during runtime. When the computer program or instructions are executed by the processor 501, the key detection method described in steps S100 to S500 is implemented.
[0050] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.
[0051] Compared with related technologies, the embodiments provided in this application have the following technical advantages: by introducing a low-voltage full-bridge circuit driving power supply with a secondary auxiliary power supply circuit as the key detection signal source, the technical problem of the inability to identify the key status when there is no battery is solved, and the accuracy and reliability of detection are improved; through the cooperation of Zener diode ZD1 and isolation optocoupler U3, undervoltage protection of the driving power supply is completed while realizing key detection, thus expanding the system functions; the isolation optocoupler U3 realizes the electrical isolation between the detection circuit and the control circuit, improving the anti-interference capability and safety of the system; this method is applicable to various power supply scenarios and has universal applicability.
[0052] It should be understood that, in this invention, the terms “comprising” and “having”, and any variations thereof, are intended to cover non-exclusive inclusion, 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 explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such process, method, product, or device.
[0053] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0054] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0055] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0056] If the integrated unit is implemented as 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. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0057] The preferred embodiments of the present invention have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present invention. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and spirit of the present invention should be within the scope of the claims of the present invention.
Claims
1. A method for detecting buttons on a photovoltaic inverter, characterized in that, The method includes the following steps: Acquire a voltage signal, wherein the voltage signal is the voltage of the low-voltage full-bridge circuit drive power supply; the drive power supply is output by a secondary auxiliary power supply; The voltage signal is input to the key detection circuit through a key switch. The key detection circuit includes a Zener diode, an isolation optocoupler, and a filter circuit composed of resistors and capacitors. When the push-button switch is closed and the amplitude of the voltage signal is greater than or equal to the breakdown voltage of the Zener diode, the Zener diode breaks down, the isolation optocoupler is turned on, and a first-level detection signal is output. When the push-button switch is turned off, or when the amplitude of the voltage signal is less than the breakdown voltage of the Zener diode, the isolation optocoupler is turned off and outputs a second-level detection signal. The first level detection signal or the second level detection signal is filtered by the filtering circuit and then transmitted to the digital signal processor. The digital signal processor determines the on or off state of the push button switch based on the received level signal. When the amplitude of the voltage signal is lower than the breakdown voltage of the Zener diode, the inverter is controlled to be turned off based on the second level detection signal.
2. The method according to claim 1, characterized in that, The acquisition of the voltage signal, wherein the voltage signal is the voltage of the low-voltage full-bridge circuit drive power supply, includes: When the photovoltaic inverter is powered by a battery, the first-level auxiliary power supply circuit operates, and the first-level auxiliary power supply circuit outputs high-voltage DC power to the second-level auxiliary power supply circuit, and the second-level auxiliary power supply circuit outputs the low-voltage full-bridge circuit drive power. When the photovoltaic inverter has no battery and only photovoltaic input or mains power input exists, the photovoltaic input outputs high-voltage DC power to the secondary auxiliary power circuit via the photovoltaic auxiliary power module or the mains input outputs high-voltage DC power via the mains auxiliary power module. The secondary auxiliary power circuit outputs the low-voltage full-bridge circuit drive power.
3. The method according to claim 1, characterized in that, In the key detection circuit, the Zener diode is connected in series with the light-emitting diode of the isolation optocoupler, the emitter of the light-receiving transistor of the isolation optocoupler is grounded, and the collector of the light-receiving transistor of the isolation optocoupler is connected to the power supply through the resistor and grounded through the capacitor.
4. The method according to claim 1, characterized in that, The step of inputting the voltage signal into the key detection circuit via a key switch includes: The low-voltage full-bridge circuit drive power supply is connected to the cathode of the Zener diode through the push-button switch. The anode of the Zener diode is connected to one end of the first current-limiting resistor. The other end of the first current-limiting resistor is connected to one end of the second current-limiting resistor and the anode of the isolation optocoupler light-emitting diode. The other end of the second current-limiting resistor and the cathode of the isolation optocoupler light-emitting diode are grounded together.
5. The method according to claim 1, characterized in that, The first level detection signal is a low level signal, and the second level detection signal is a high level signal.
6. The method according to claim 1, characterized in that, The step of transmitting the first level detection signal or the second level detection signal to the digital signal processor after filtering by the filtering circuit includes: After the first level detection signal or the second level detection signal is filtered out of high-frequency noise by the low-pass filter circuit composed of the resistor and capacitor, it is transmitted to the input pin of the digital signal processor.
7. The method according to claim 1, characterized in that, The digital signal processor determines the on or off state of the push-button switch based on the received level signal, including: When the digital signal processor receives the first level detection signal, it determines that the key switch is closed; When the digital signal processor receives the second level detection signal, it determines that the push-button switch is off.
8. The method according to claim 1, characterized in that, When the amplitude of the voltage signal is lower than the breakdown voltage of the Zener diode, the digital signal processor controls the inverter to shut down according to the second level detection signal, including: When the voltage of the low-voltage full-bridge circuit drive power supply is lower than the breakdown voltage of the Zener diode due to a fault, even if the push-button switch is closed and the Zener diode is not broken down, the digital signal processor receives the second level detection signal and determines that the push-button switch is open, and controls the inverter to shut down to protect the power devices of the low-voltage full-bridge circuit.
9. An electronic device, characterized in that, It includes a processor and a memory, wherein the memory stores a computer program or instructions that, when executed by the processor, implement the method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that, It stores a computer program or instructions thereon, which, when executed by a processor, implement the method described in any one of claims 1 to 8.
