Method and device for judging the state of a control loop by the GPIO level of an energy controller
Through the GPIO level judgment method of the energy controller, the accuracy of circuit breaker on the circuit breaker and power supply specifications in the power grid system is solved, and accurate load management and line maintenance support is achieved.
Patent Information
- Application Number
- CN202211366335.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-01
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2042-11-01
AI Technical Summary
In power grid systems, it is difficult for the prior art to accurately determine whether the electrically controlled circuit breaker is connected to the power grid system and the operating power supply specifications of the circuit breaker, resulting in inaccurate load management.
The state of the control loop is determined by the GPIO level of the energy controller, the configuration pin GPIO triggers the interrupt when the level changes, records the number of interrupts and periodically reads it, and judges whether the control loop is connected and power supply specifications based on the accumulated value and pin level.
It realizes accurate judgment of the circuit breaker's on-state, provides basic data support for load management, supports master station decision-making and provides reference for line maintenance.
Smart Images

Figure CN115800511B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of distribution management of power grid systems, and relates to a method and device for judging the status of a control loop through the GPIO level of an energy controller. Background Art
[0002] Under the background of the country's accelerating the promotion of the "dual carbon" goal and the construction of a new power system, the installed capacity ratio of new energy sources such as photovoltaic and wind power is continuously increasing, and the impact of the random output on the power grid is becoming more obvious and frequent. Coupled with factors such as the driving force of economic development, the imbalance between power supply and demand will become a frequent high-occurrence event in the normal state. Load management work (i.e., distribution management of power grid systems) has evolved from traditional seasonal and phased work to year-round and normalized work that is carried out in real time with the fluctuations of new energy. At the same time, the national and provincial levels have put forward more refined and accurate requirements for load management work.
[0003] Currently, in the power grid system, there is a way to manage user loads by using an energy controller and an electronically controlled circuit breaker to form a control loop. However, the electronically controlled circuit breaker can only accept electronic control instructions to trip / close the switch when it is connected to the working power supply, disconnecting or connecting the user's electrical load in the power grid system from the power bus. Therefore, whether the control loop is connected to the power grid system is a prerequisite for the circuit breaker to be able to complete electronic control tripping / closing. And the working power supply specifications of existing electronically controlled circuit breakers include alternating current and direct current, and it is not easy to distinguish after connecting to the power grid system. Summary of the Invention
[0004] Based on this, in view of the problems that it is not clear whether the above control loop is connected to the power grid system and it is not easy to distinguish the working power supply specifications of the circuit breaker after connecting to the power grid system, it is necessary to provide a method and device for judging the status of the control loop through the GPIO level of the energy controller.
[0005] The present invention is implemented by the following technical solutions:
[0006] In the first aspect of the present disclosure, a method for judging the status of a control loop through the GPIO level of an energy controller is provided. It is to judge whether the control loop formed by the energy controller and the circuit breaker in the power grid system is connected to the power grid system and to judge the working power supply specifications accessed by the circuit breaker after processing the pin level of the GPIO of the MCU of the energy controller of the power grid system. The circuit breaker is an electronically controlled circuit breaker. The control loop is divided into an AC control loop and a DC-AC control loop according to the working power supply specifications accessed by the circuit breaker.
[0007] The method for judging the status of the control loop through the GPIO level of the energy controller includes the following steps:
[0008] First, configure the GPIO pin to trigger an interrupt when the level changes. When it is detected that the pin level of the GPIO pin changes, an interrupt is triggered once.
[0009] The MCU records this interrupt and increments the count by one, and the MCU reads the accumulated value of this count periodically.
[0010] When the accumulated value continues to change, it is determined that the control loop has been connected, and the connected one is the AC control loop.
[0011] If the accumulated value remains unchanged and the pin level of the GPIO pin is low, it is determined that the control loop has been connected, and the connected one is the DC control loop.
[0012] If the accumulated value remains unchanged and the pin level of the GPIO pin is high, it is determined that the control loop is disconnected.
[0013] This method implements the method or process according to the embodiments of the present disclosure.
[0014] In the second aspect of the present disclosure, there is provided a device for judging the state of a control loop through the GPIO level of an energy controller. This device applies the method for judging the state of a control loop through the GPIO level of an energy controller in the first aspect.
[0015] Compared with the prior art, the present invention has the following beneficial effects:
[0016] The present invention provides a method for judging the state of a control loop through the GPIO level of an energy controller. Based on the change of the level state of the pin CPIO, it is judged whether the control loop composed of the energy controller and the circuit breaker in the power grid system is connected to the power grid system, and the working power supply specification connected by the circuit breaker is judged. The obtained connection state result of the circuit breaker by this method is detailed and accurate, and it can accurately judge whether the circuit breaker has the ability of load management, so as to provide basic data support for the load management decision of the master station. This method can obtain the power supply specification of the circuit breaker for work, which can be used as a reference for subsequent line maintenance and is also quite practical. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a schematic connection diagram of a circuit breaker, an energy controller, a collection device, and an electrical equipment in a power grid system;
[0018] Figure 2 It is a flowchart of the method for judging the state of a control loop through the GPIO level of an energy controller in the present invention;
[0019] Figure 3 It is a circuit connection diagram of the circuit breaker in the present invention;
[0020] Figure 4 This is the circuit diagram of the detection circuit in the present invention. Specific Embodiment
[0021] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0022] It should be noted that when a component is referred to as being "installed on" another component, it can be directly on the other component or there may also be an intermediate component. When a component is considered to be "arranged on" another component, it can be directly arranged on the other component or there may be an intermediate component at the same time. When a component is considered to be "fixed to" another component, it can be directly fixed to the other component or there may be an intermediate component at the same time.
[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which the present invention belongs. The terms used in the description of the present invention herein are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The term "or / and" used herein includes any and all combinations of one or more of the related listed items.
[0024] Embodiment 1
[0025] Please refer to Figure 1 , Figure 1 which is a connection diagram of a circuit breaker, an energy controller, a collection device (such as an electricity meter), and an electrical device in a power grid system, aiming to perform electric control of opening and closing the circuit breaker through the energy controller, and further manage the user's electrical load.
[0026] Specifically, the power supply bus is the power source of the power grid system. The energy controller is connected to the power supply bus through a power line to obtain power and supply the operation of the energy controller itself.
[0027] There are n circuit breakers distributed in the power grid system, where n ≥ 1. Refer to Figure 1 , taking one of the circuit breakers - Circuit Breaker 1 as an example: Circuit Breaker 1 is connected to the power supply bus through a power line, and is connected to the electricity meter 1, the electrical device 1, and other electrical devices to be controlled through a power line, forming User Load Loop 1. Similarly, other circuit breakers also correspondingly form other user load loops. For example, Circuit Breaker 2 corresponds to User Load Loop 2,..., and Circuit Breaker n corresponds to User Load Loop n.
[0028] The circuit breaker is electrically controlled. Generally, the circuit breaker also draws power from the power grid and converts it for the working power supply of the electrical control of the circuit breaker. Currently, there are two types of working power supply specifications for mainstream electrically controlled circuit breakers on the market: alternating current (220V) and direct current (110V). When the circuit breaker is connected to the working power supply, it accepts electrical control instructions to switch on or off, connecting or disconnecting the user's electrical load in the power grid system to the power bus. See Figure 1 , which actually means connecting or disconnecting the user load circuit.
[0029] The energy controller is connected to the electrical control end of the circuit breaker through a control line, forming a control loop: if the circuit breaker is powered by an AC power supply, the control loop serves as an AC control loop; if the circuit breaker is powered by a DC power supply, the control loop serves as a DC control loop. See Figure 1 , for example, when it is necessary to disconnect the user load circuit 1, the energy controller causes the circuit breaker 1 of the user load circuit 1 to perform electrical switching off. When it is necessary to connect the user load circuit 1, the energy controller causes the circuit breaker 1 of the user load circuit 1 to perform electrical switching on.
[0030] In addition, the energy controller is connected to the acquisition device through a communication connection line (such as RS485), forming a data acquisition loop to facilitate subsequent other controls. In this way, one energy controller can simultaneously acquire multiple watt-hour meters and control multiple circuit breakers.
[0031] The present invention lies in that after processing the pin level of the GPIO (i.e., the micro control unit) of the MCU of the energy controller in the power grid system, it is determined whether the control loop composed of the energy controller and the circuit breaker in the power grid system is connected to the power grid system, and the working power supply specification connected to the circuit breaker is determined. The circuit breaker is an electrically controlled circuit breaker. Among them, the control loop is divided into an AC control loop and a DC-AC control loop according to the working power supply specification connected to the circuit breaker.
[0032] See Figure 2 which is a flowchart of the method for judging the status of the control loop through the GPIO level of the energy controller.
[0033] The method for judging the status of the control loop through the GPIO level of the energy controller includes the following steps:
[0034] First, configure the pin GPIO to trigger an interrupt when the level changes. When it is detected that the pin level of the pin GPIO changes, an interrupt is triggered once;
[0035] The MCU records this interrupt and increments the count by one. The MCU periodically reads the accumulated value of this count;
[0036] When the accumulated value continues to change, it is determined that the control loop has been connected, and the connected one is the AC control loop;
[0037] If the accumulated value remains unchanged and the pin level of the GPIO is low, it is determined that the control loop is connected and the connected one is the DC control loop;
[0038] If the accumulated value remains unchanged and the pin level of the GPIO is high, it is determined that the control loop is disconnected.
[0039] Among them, the way to trigger an interrupt can be set to trigger an interrupt on the falling edge or the rising edge. The former triggers an interrupt once when the level changes from high to low, and the latter triggers an interrupt once when the level changes from low to high. Specifically, if the way to trigger an interrupt is to trigger an interrupt on the falling edge, an interrupt is triggered when the pin level of the GPIO changes from high to low. If the way to trigger an interrupt is to trigger an interrupt on the rising edge, an interrupt is triggered when the pin level of the GPIO changes from low to high.
[0040] In this embodiment, the method for obtaining the pin level of the GPIO is to determine the pin level of the GPIO by judging whether the circuit breaker in the control loop is connected to the power grid system.
[0041] Specifically, when the circuit breaker in the control loop is connected to the power grid system, the pin level of the GPIO is low; the circuit breaker in the control loop being connected to the power grid system means that the circuit breaker is connected to the power grid system and can complete electric control of switching off / on.
[0042] When the circuit breaker in the control loop is not connected to the power grid system, the pin level of the GPIO is high; the circuit breaker in the control loop not being connected to the power grid system means that the circuit breaker is not connected to the power grid system (i.e., the circuit breaker is missing), or the circuit breaker is connected to the power grid system but cannot complete switching off / on (i.e., the circuit breaker itself lacks working power supply). It should be noted that by default, the circuit breaker is in normal function and accepts electric control instructions to perform switching on / off when connected to the working power supply.
[0043] For the statistics of the number of interrupts, a counter is specifically used, and the counter counts and stores the value of the number of interrupts. To improve the stability of the method, when the GPIO is configured to trigger an interrupt when the level changes, the value of the counter is first cleared for subsequent counting.
[0044] Of course, the method of determining the status of the control loop by the GPIO level of the energy controller can also be used to obtain some parameters of the power supply of the circuit breaker for subsequent maintenance reference. For example, when the level detection terminal is at a low level and the number of interrupts continues to increase, referring to the above, it indicates that the circuit breaker is powered by an AC power supply. Correspondingly, the number of interrupts N within a unit time T is obtained, and the frequency f of the AC power supply of the electronically controlled circuit breaker is calculated as f = N / T. For example, if the counter accumulates 50 times per second, the frequency of the AC power supply of the circuit breaker is 50 Hz.
[0045] In other words, in this embodiment, when the program of the power grid system starts, the interrupt triggered by the falling edge of the GPIO is first configured. According to the power supply specifications of the mainstream circuit breakers on the market currently, it is processed in two cases respectively:
[0046] When the circuit breaker is connected to an AC power supply, using the principle of triggering an interrupt by the falling edge of the GPIO, when it is detected that the pin level of the GPIO changes from high to low, an interrupt is triggered. The program records this interrupt and increments the counter by one. The working frequency of the domestic AC power is 50 Hz, and the counter accumulates 50 times per second. The program reads the value of this counter once per second. When the value of the counter continues to change, it indicates that the AC control loop has been connected. When the value of the counter has not changed, it indicates that the control loop is disconnected.
[0047] When the circuit breaker is connected to a DC power supply, the interrupt will not be triggered, and the pin of the GPIO is always at a low level. The status of whether the control loop is connected can be judged by reading the pin level status of the GPIO. If the counter has not changed and the pin level of the GPIO is low, it can be judged that the control loop has been connected; if the counter has not changed and the pin level of the GPIO is high, it can be judged that the control loop has been disconnected.
[0048] Similarly, if the interrupt triggered by the rising edge of the GPIO is configured, the subsequent results are the same as above.
[0049] This embodiment also provides a detection circuit that applies the method of determining the status of the control loop by the GPIO level of the energy controller, that is, whether the circuit breaker in the control loop is connected to the power grid system is detected through a detection circuit.
[0050] In this embodiment, the electronically controlled circuit breaker has at least four connection terminals: among them, connection terminal one is connected to the power bus of the power grid system through power line 1, connection terminal two is connected to the acquisition device and the electrical equipment of the power grid system through power line 2, and connection terminals three and four are used as a pair of power supply terminals in and out for accessing the working power supply, and are respectively connected to the working power supply through power supply line 1 and power supply line 2.
[0051] Since the circuit breaker is controlled by an electronic control signal, the connection terminal three and / or four can also be used as an electronic control terminal, that is, the control line connection terminal; or the electronically controlled circuit breaker also has a connection terminal 5, and the connection terminal 5 is used as an electronic control terminal, that is, the control line connection terminal.
[0052] See Figure 4 , Figure 4 is the circuit diagram of the detection circuit in the present invention. The detection circuit includes at least one voltage-dividing resistor, a bidirectional conduction isolation optocoupler OP1, and an amplifying circuit.
[0053] Pin 1 of the bidirectional conduction isolation optocoupler OP1 is connected to the power supply terminal in of the circuit breaker (i.e., the power connection terminal in' of the detection circuit) through a voltage-dividing resistor, pin 2 is connected to the power supply terminal out of the circuit breaker (i.e., the power connection terminal out' of the detection circuit), and pin 4 is connected to the +3.3V power supply (i.e., 3.3V DC).
[0054] The amplifying circuit includes an NPN-type triode Q1, a matching resistor R1, a matching resistor R9, and a matching resistor R10. The base of the triode Q1 is grounded through the series-connected matching resistors R9 and R10. The base of the triode Q1 is connected to pin 3 of the bidirectional conduction isolation optocoupler OP1 through the matching resistor R9. The emitter of the triode Q1 is grounded. The collector of the triode Q1 is connected to pin 4 of the bidirectional conduction isolation optocoupler OP1 through the matching resistor R1. The collector of the triode Q1 is connected to the GPIO pin of the MCU of the energy controller of the power grid system.
[0055] See Figure 4 , for the convenience of description, pin 1 of the bidirectional conduction isolation optocoupler OP1 is led out as the YKIO terminal after passing through the voltage-dividing resistor, and pin 2 is led out as the YK1COM terminal. In this way, that is, YK1O and YK1COM are connected to the power supply terminal of the circuit breaker. In this way, when the circuit breaker is connected to the working power supply, an applied voltage is also generated synchronously at YK1O and YK1COM, and the applied voltage is reduced through the voltage-dividing resistor to generate a weak current, thereby turning on the bidirectional conduction isolation optocoupler OP1. In this embodiment, seven voltage-dividing resistors (R2, R3, R4, R5, R6, R7, R8) are used, and their resistance values are all 360KΩ. Of course, the quantity or resistance value can also be adjusted.
[0056] It should be emphasized that due to the adoption of the bidirectional conduction isolation optocoupler OP1, regardless of whether the working power supply of the circuit breaker is an AC power supply or a DC power supply, the bidirectional conduction isolation optocoupler OP1 can be conducted, making this detection circuit compatible with existing mainstream electronic control circuit breakers and having strong versatility. Moreover, YK1O and YK1COM can be arbitrarily wired to the power supply terminal of the circuit breaker, which is convenient for actual construction and installation: YK1O is connected to the connection terminal three of the circuit breaker, and YK1COM is connected to the connection terminal four of the circuit breaker; or YK1O is connected to the connection terminal four of the circuit breaker, and YK1COM is connected to the connection terminal three of the circuit breaker.
[0057] Since the conduction current of the bidirectional conduction isolation optocoupler OP1 is small, a triode Q1 is subsequently used for amplification processing, and matching resistors R1, R9, and R10 are correspondingly set for matching to form an amplification circuit. In this embodiment, the triode Q1 uses S9013, and the amplification factor is 200 - 350. The resistance value of the first matching resistor is 20KΩ. The resistance value of the second matching resistor is 1KΩ. The resistance value of the third matching resistor is 2MΩ. Of course, the parameters can also be adjusted.
[0058] The collector of the triode Q1 has the same GPIO level as the pin of the MCU. Since the collector of the triode Q1 has a K1 signal, it can be read from the MCU. If the triode Q1 inputs a conduction current (that is, the bidirectional conduction isolation optocoupler OP1 is conducted and the circuit breaker is connected to the working power supply), K1 is at a low level; if the triode Q1 does not input a conduction current (that is, the bidirectional conduction isolation optocoupler OP1 is not conducted and the circuit breaker is not connected to the working power supply), K1 remains at a high level.
[0059] Refer to the above method:
[0060] If the cumulative value continues to change, it is determined that the control loop has been connected and the connected one is the AC control loop; if the cumulative value remains unchanged and the pin level of the pin GPIO is at a low level, it is determined that the control loop has been connected and the connected one is the DC control loop. Both of these situations indicate that the circuit breaker can be electronically controlled, that is, the user electrical load connected to the circuit breaker is controllable.
[0061] If the cumulative value remains unchanged and the pin level of the pin GPIO is at a high level, it is determined that the control loop is disconnected. That is, it means that the power grid system is not connected to a circuit breaker, and thus the user electrical load is uncontrollable.
[0062] Of course, detection circuits with other designs can also be used. It should be noted that the detection circuits with other designs should meet the following requirements: having a pair of power connection terminals in' and out', which are respectively connected to the power supply terminals in and out of the circuit breaker, so as to be connected in parallel with the circuit breaker; having a level detection terminal for reflecting the working power supply specification; when the detection circuit is connected to alternating current, the level of its level detection terminal changes; when the detection circuit is connected to direct current, the level of its level detection terminal remains low.
[0063] The result of the on-state of the circuit breaker obtained by the above method is detailed and accurate, which can accurately judge whether the circuit breaker has the ability of load management, thus providing basic data support for the load management decision of the master station. Based on the above method, the specification of the working power supply of the circuit breaker can be obtained, which can be used as a reference for subsequent line maintenance and is also quite practical.
[0064] This embodiment also provides a device for judging the state of the control loop through the GPIO level of the energy controller, which applies the method for judging the state of the control loop through the GPIO level of the energy controller described above. The device includes a level detection and trigger interruption module, an interruption counting module, and a judgment module.
[0065] The level detection and trigger interruption module is used to trigger an interruption when the level of the pin GPIO changes. When it detects that the pin level of the pin GPIO changes, it triggers an interruption once. The interruption counting module is used to record this interruption and increment the count by one, and periodically read the accumulated value of this count. The judgment module is used to judge whether the control loop is connected and the working power supply specification of the connected circuit breaker according to the accumulated value and the pin level of the pin GPIO. Among them, when the accumulated value is continuously changing, it is judged that the control loop has been connected and the connected one is the AC control loop; if the accumulated value remains unchanged and the pin level of the pin GPIO is low, it is judged that the control loop has been connected and the connected one is the DC control loop; if the accumulated value remains unchanged and the pin level of the pin GPIO is high, it is judged that the control loop is disconnected.
[0066] Embodiment 2
[0067] The present invention discloses a readable storage medium, in which computer program instructions are stored. When the computer program instructions are read and run by a processor, the method for judging the state of the control loop through the GPIO level of the energy controller in Embodiment 1 is executed.
[0068] The technical features of the above embodiments can be combined arbitrarily. For the sake of brief description, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combinations of these technical features do not conflict, they should be considered as the scope recorded in this specification.
[0069] The embodiments described above merely represent several implementation manners of the present invention. The description is relatively specific and detailed, but it should not be construed as a limitation on the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can be made, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention patent shall be subject to the appended claims.
Claims
1. A method for judging the state of a control loop by the GPIO level of an energy controller, which is to judge whether the control loop composed of the energy controller and the circuit breaker in the power grid system is connected to the power grid system and to judge the working power supply specification accessed by the circuit breaker after processing the pin level of the GPIO of the MCU of the energy controller in the power grid system; the circuit breaker is an electric control type circuit breaker; the control loop is divided into an AC control loop and a DC control loop according to the working power supply specification accessed by the circuit breaker, and is characterized in that, The method for judging the status of the control loop by the GPIO level of the energy controller includes the following steps: First, configure the GPIO pin to trigger an interrupt when the level changes. When the pin level of the GPIO pin is detected to change, an interrupt is triggered once. The MCU records this interrupt and increments the count by one, and the MCU reads the accumulated value of this count periodically. When the accumulated value continues to change, it is judged that the control loop is connected, and the connected one is the AC control loop. If the accumulated value remains unchanged and the pin level of the GPIO pin is low, it is judged that the control loop is connected, and the connected one is the DC control loop. If the accumulated value remains unchanged and the pin level of the GPIO pin is high, it is judged that the control loop is disconnected.
2. The method for judging the state of a control loop by the GPIO level of an energy controller according to claim 1, characterized in that, The method for obtaining the pin level of the GPIO pin is as follows: The method of judging whether the circuit breaker in the control loop is connected to the power grid system is adopted to determine the pin level of the GPIO pin. When the circuit breaker in the control loop is connected to the power grid system, the pin level of the GPIO pin is low; the circuit breaker in the control loop being connected to the power grid system means that the circuit breaker is connected to the power grid system and can complete electric control for switching off / on. When the circuit breaker in the control loop is not connected to the power grid system, the pin level of the GPIO pin is high; the circuit breaker in the control loop not being connected to the power grid system means that the circuit breaker is not connected to the power grid system, or the circuit breaker is connected to the power grid system but cannot complete switching off / on.
3. The method for judging the status of a control loop by the GPIO level of an energy controller according to claim 2, characterized in that The way to trigger the interrupt is to trigger the interrupt on the falling edge. When the pin level of the GPIO pin changes from high to low, an interrupt is triggered once.
4. The method for judging the state of a control loop by the GPIO level of an energy controller according to claim 2, characterized in that, The way to trigger the interrupt is to trigger the interrupt on the rising edge. When the pin level of the GPIO pin changes from low to high, an interrupt is triggered once.
5. The method for judging the state of a control loop by the GPIO level of an energy controller according to claim 3 or 4, characterized in that The counting of the number of interrupts is done using a counter, and the counter counts and stores the value of the number of interrupts.
6. The method for judging the state of the control loop by the GPIO level of the energy controller according to claim 5, characterized in that, When configuring the GPIO pin to trigger an interrupt when the level changes, first clear the value of the counter for subsequent counting.
7. The method for judging the status of a control loop by the GPIO level of an energy controller according to claim 2, characterized in that, If the level detection terminal is at a low level and the number of interruptions continues to increase, obtain the number of interruptions within a unit time T and calculate the alternating current frequency of the breaker's working power supply N . f = N / T .
8. The method for judging the state of a control loop by the GPIO level of an energy controller according to claim 2, wherein Whether the circuit breaker in the control loop is connected to the power grid system is detected by a detection circuit; the circuit breaker has a pair of power supply terminals in and out for accessing the working power supply; the circuit breaker is used to disconnect / connect the user electrical load in the power grid system from / to the power bus during switching off / on. The detection circuit is connected in parallel with the circuit breaker. The detection circuit has a level detection terminal for reflecting the working power supply specification; when the detection circuit is connected to alternating current, the level of its level detection terminal changes; when the detection circuit is connected to direct current, the level of its level detection terminal remains low.
9. The method for judging the state of a control loop by the GPIO level of an energy controller according to claim 8, characterized in that, The detection circuit includes: At least one voltage - dividing resistor; A bidirectional conduction isolation optocoupler, whose pin 1 is connected to the power supply terminal in of the circuit breaker through the voltage - dividing resistor, pin 2 is connected to the power supply terminal out of the circuit breaker, and pin 4 is connected to the +3.3V power supply; and Amplifier circuit, which includes an NPN transistor Q1, matching resistors R1, R9, and R10; the base of the transistor is grounded through the series-connected matching resistor two and matching resistor three; the base of the transistor is connected to pin three of the bidirectional conduction isolation optocoupler through the matching resistor two; the emitter of the transistor is grounded; the collector of the transistor is connected to pin four of the bidirectional conduction isolation optocoupler through the matching resistor one; the collector of the transistor is connected to the GPIO pin of the MCU of the energy controller.
10. A device for judging the status of a control loop by the GPIO level of an energy controller, characterized in that, It applies the method for judging the state of the control loop by the GPIO level of the energy controller as described in any one of claims 1-9.
Citation Information
Patent Citations
Wireless remote timing control switch
CN107491013A
Alternating current and direct current power supply equipment, power supply method and device and storage medium
CN113644655A