Single live wire zero point detection method and device
By obtaining the real-time voltage at both ends of the lamp, using the power switch module and the drive module to control its on-off state, combined with the constant current module, overvoltage protection module and rectification module, the alternating current zero point and mains frequency are determined, which solves the problem of inaccurate acquisition of alternating current zero point in a single-fire intelligent control system, and realizes the stability of power supply and the normal operation of the lamp.
Patent Information
- Application Number
- CN202311855764.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2025-07-01
AI Technical Summary
In the prior art, errors are easily made when collecting AC zero points using floating ground detection, resulting in abnormal power supply of the system, causing lamp flickering or smart panel restart, and cannot meet the stability and accuracy requirements of the single-fire-wire intelligent control system.
By obtaining the real-time voltage at both ends of the lamp, using the power switch module and the drive module to control its on-off state, combined with the constant current module, the overvoltage protection module and the rectifier module, the alternating current zero point and the mains frequency are determined, and a single fire tangential power extraction is achieved to ensure power supply stability.
It improves the efficiency and safety of AC power zero point acquisition, ensures that the switch panel is powered normally during the light turning on and the lamp will not flash, enhancing the stability and reliability of the system.
Smart Images

Figure CN120233140A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of zero - point detection circuits, and in particular to a single - live - wire zero - point detection method and device. Background Art
[0002] With the increasing functions of single - live - wire intelligent panels, the power consumption of the intelligent panels increases accordingly. In order for single - live - wire power extraction to meet the power consumption requirements of the panel system and prevent phenomena such as ghost fires and flickering of lamps, higher requirements are put forward for the tangential accuracy and stability of single - live - wire tangential power extraction, which is strongly related to the AC zero - point detection of the panel system.
[0003] In related technologies, traditional AC zero - point detection circuits usually use the conduction thresholds of semiconductor devices such as triodes or optocouplers or high - precision ADCs (Analog - to - Digital Converters) to collect AC zero - points through floating - ground detection; however, in the actual operation process, there are certain errors in the grid frequency of the mains power. When using floating - ground detection to collect AC zero - points, it is easy to make mistakes, and the collected data cannot be corrected, resulting in abnormal system power supply, causing flickering of lamps or restart of intelligent panels. Summary of the Invention
[0004] The present invention provides a single - live - wire zero - point detection method and device to solve the defect that in the prior art, it is easy to make mistakes when using floating - ground detection to collect AC zero - points, and the collected data cannot be corrected, resulting in abnormal system power supply, causing flickering of lamps or restart of intelligent panels, and improves the efficiency and safety of AC zero - point acquisition.
[0005] The present invention provides a single - live - wire zero - point detection method applied to a bypass current - flowing device. The bypass current - flowing device includes a power switch module and a driving module. The power switch module is connected in parallel with a lamp in a single - live - wire intelligent control system, and the driving module is used to control the on - off state of the power switch module. The method includes:
[0006] Obtain the real - time voltage across the lamp;
[0007] Determine the on - off state of the power switch module according to the real - time voltage and the startup voltage threshold of the lamp, and determine multiple AC zero - points and the mains frequencies corresponding to the multiple AC zero - points. The single - live - wire intelligent control system is used to achieve single - live - wire tangential power extraction according to the multiple AC zero - points and the mains frequencies.
[0008] According to a single - live - wire zero - point detection method provided by the present invention, the bypass current - flowing device further includes a constant - current module, and the constant - current module is respectively connected to the power switch module and the driving module;
[0009] After determining the on / off state of the power switch module according to the real-time voltage and the startup voltage threshold of the lamp, the method further includes:
[0010] When the power switch module is in the on state, obtain a bypass current based on the constant current module, and supply power to the single-phase live wire intelligent control system according to the bypass current.
[0011] According to a single-phase live wire zero-crossing detection method provided by the present invention, determining the on / off state of the power switch module according to the real-time voltage and the startup voltage threshold of the lamp includes:
[0012] When the real-time voltage is less than or equal to the startup voltage threshold, determine that the power switch module is on;
[0013] When the real-time voltage is greater than the startup voltage threshold, determine that the power switch module is off.
[0014] According to a single-phase live wire zero-crossing detection method provided by the present invention, the bypass current-carrying device further includes an overvoltage protection module, the overvoltage protection module is connected in parallel with the power switch module, and the overvoltage protection module is connected to the drive circuit;
[0015] After determining that the power switch module is off, the method further includes:
[0016] Control the drive circuit to disconnect the power switch module based on the overvoltage protection module.
[0017] According to a single-phase live wire zero-crossing detection method provided by the present invention, the bypass current-carrying device further includes a power supply module, and the drive module, the rectification module and the overvoltage protection module are respectively connected to the power supply module;
[0018] When the input voltage of the rectification module is higher than a preset voltage, control the power switch module to be on through the drive module; wherein, the overvoltage protection module is used to control the voltage of the power supply module within a target range.
[0019] According to a single-phase live wire zero-crossing detection method provided by the present invention, the bypass current-carrying device further includes a constant voltage module, and the constant voltage module is connected to the drive module;
[0020] Supply power to the drive module based on the constant voltage module to realize the control of the on / off state of the power switch module by the drive module.
[0021] According to a single-phase live wire zero-crossing detection method provided by the present invention, the bypass current-carrying device further includes a rectification module, and the rectification module is connected in parallel with the lamp;
[0022] After obtaining the real-time voltage across the lamp, the method further includes:
[0023] Based on the rectification module, convert the real-time voltage into a DC voltage.
[0024] The present invention also provides a single-phase live wire zero-crossing detection device, including:
[0025] A voltage acquisition module for obtaining the real-time voltage across the lamp in a single-phase live wire intelligent control system, where the lamp is connected in parallel with a power switch module, and a drive module for controlling the on / off state of the power switch module;
[0026] A detection module for determining the on / off state of the power switch module according to the real-time voltage and the startup voltage threshold of the lamp, and determining a plurality of AC zero-crossing points and the mains frequency corresponding to the plurality of AC zero-crossing points according to the on / off state, where the single-phase live wire intelligent control system is used to realize single-phase live wire power extraction according to the plurality of AC zero-crossing points and the mains frequency.
[0027] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where when the processor executes the program, it implements the single-phase live wire zero-crossing detection method as described in any one of the above.
[0028] The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the single-phase live wire zero-crossing detection method as described in any one of the above.
[0029] The present invention also provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the single-phase live wire zero-crossing detection method as described in any one of the above.
[0030] The single-phase live wire zero-crossing detection method and device provided by the present invention determine the on / off state of the power switch module through the real-time voltage across the lamp and the startup voltage threshold of the lamp, and calculate the corresponding AC zero-crossing points when the power switch module is turned on, and then calculate the corresponding mains frequency for the single-phase live wire intelligent control system to realize single-phase live wire power extraction, which can ensure normal power supply during the lighting period of the switch panel and the lamp will not flicker, improving the AC zero-crossing acquisition efficiency and safety. Description of the Drawings
[0031] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0032] Figure 1 It is a schematic flow chart of the single - live - wire zero - point detection method provided by the present invention;
[0033] Figure 2 It is a schematic layout diagram of the single - live - wire intelligent switch box, lamp load and bypass current - flowing device provided by the present invention;
[0034] Figure 3 It is one of the schematic structural diagrams of the single - live - wire zero - point detection device provided by the present invention;
[0035] Figure 4 It is another schematic structural diagram of the single - live - wire zero - point detection device provided by the present invention;
[0036] Figure 5 It is a schematic structural diagram of the electronic device provided by the present invention. Detailed implementation manners
[0037] To make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below with reference to the accompanying drawings in the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present invention without making creative efforts fall within the scope of protection of the present invention.
[0038] The following combines Figures 1 - 4 to describe the single - live - wire zero - point detection method and device of the present invention.
[0039] Figure 1 It is a schematic flow chart of the single - live - wire zero - point detection method provided by the present invention. As Figure 1 shown, this single - live - wire zero - point detection method is applied to a bypass current - flowing device. The bypass current - flowing device includes a power switch module and a drive module. The power switch module is connected in parallel with the lamp in the single - live - wire intelligent control system. The drive module is used to control the on - off state of the power switch module, and includes the following steps:
[0040] Step 110: Obtain the real - time voltage across the lamp.
[0041] In this step, the power switch module is connected in parallel with the lamp, that is, the two connection ports of the power switch module are respectively connected to the live - wire inlet L and the live - wire outlet L out of the lamp, and can monitor the real - time voltage of the lamp.
[0042] In this step, the power switch module includes a triode. For example, the power switch module can be at least one of an N - type MOS transistor and an NPN - type BJT triode.
[0043] In this embodiment, when the power switch module (such as a triode) is turned on, it operates in the saturation region, that is, the constant current region.
[0044] In this embodiment, the drive module is a push-pull circuit composed of two triodes, which can provide drive current for the power switch module.
[0045] In this embodiment, the single-phase live wire intelligent control system includes a single-phase live wire intelligent switch box.
[0046] Figure 2 It is a layout schematic diagram of the single-phase live wire intelligent switch box, lamp load and bypass current flow device provided by the present invention. In Figure 2 In the shown embodiment, when the lamp is turned on, the microcontroller unit (MCU) controls the conduction and cut-off of two triodes Q1 and Q2 in the switch box according to the zero point of the alternating current, so as to ensure that the lamp does not flicker and ensure that the intelligent panel can obtain sufficient electric energy; when the lamp is turned off, the voltage across L and L1 is a complete sine wave; it should be noted that since a bypass current flow device is connected in parallel at both ends of the lamp, the voltage across the lamp will be at a very low value; through voltage detection, the position of the alternating current zero point can be accurately detected and preparations for the lamp-on command can be made.
[0047] In this embodiment, when the single-phase live wire intelligent control system receives a lamp-on command, the MCU controls Q1 and Q2 to conduct according to the mains frequency and a fixed duty cycle. During the non-conduction period of Q1 and Q2, the switch panel is powered by AC / DC power supply. When Q1 and Q2 are conducting, the voltage across the lamp increases to meet the power-taking requirement of the lamp. At this time, the voltage across the lamp is an incomplete sine wave.
[0048] Step 120: Determine the on-off state of the power switch module according to the real-time voltage and the start-up voltage threshold of the lamp, and determine a plurality of alternating current zero points and the mains frequencies corresponding to the plurality of alternating current zero points. The single-phase live wire intelligent control system is used to realize single-phase live wire power taking according to the plurality of alternating current zero points and the mains frequencies.
[0049] In this step, different lamps correspond to different start-up voltage thresholds, and the start-up voltage threshold is determined according to the specific specification parameters of the lamp.
[0050] In this embodiment, by detecting the real-time voltage across the lamp and comparing it with the start-up voltage threshold of the lamp, when the real-time voltage is less than or equal to the start-up voltage threshold of the lamp, the bypass current flow device controls the power switch module to conduct through the drive module. Otherwise, it controls the power switch module to disconnect, reducing the load loss in the bypass current flow device and ensuring the safety of the bypass current flow device.
[0051] In this embodiment, since the power switch module only conducts near the zero point of the alternating current, the positions of at least two alternating current zero points can be calculated at the moment when the power switch module conducts.
[0052] For example, the current when the power switch module of the bypass current-carrying device conducts is detected by an ADC. If the corresponding instantaneous current is zero, then this is the zero point of the alternating current.
[0053] In this embodiment, the period of the current mains power is calculated based on the difference between at least two alternating current zero points, thereby calculating the real-time frequency of the power grid, so that the MCU of the single-phase intelligent control system can timely adjust the control strategy according to the real-time frequency of the current power grid and the alternating current zero point, ensuring normal power supply during the lighting period of the switch panel and no flickering of the lamps.
[0054] The single-phase zero-point detection method provided by the embodiment of the present invention determines the on-off state of the power switch module through the real-time voltage across the lamp and the starting voltage threshold of the lamp, calculates the corresponding alternating current zero point when the power switch module is conducting, and further calculates the corresponding mains frequency, so as to enable the single-phase intelligent control system to realize single-phase power extraction, ensuring normal power supply during the lighting period of the switch panel and no flickering of the lamps, and improving the acquisition efficiency and safety of the alternating current zero point.
[0055] In some embodiments, the bypass current-carrying device further includes a constant current module, which is respectively connected to the power switch module and the driving module; after determining the on-off state of the power switch module according to the real-time voltage and the starting voltage threshold of the lamp, the method further includes: when the power switch module is in the conducting state, obtaining the bypass current based on the constant current module and supplying power to the single-phase intelligent control system according to the bypass current.
[0056] In this embodiment, the constant current module includes two triodes and a resistor, and the constant current is obtained from the ratio of the output voltage of the triode and the resistor.
[0057] For example, the constant current is obtained as follows:
[0058] Io = V be / R;
[0059] where V be is the output voltage of the above triode, and R is the resistance value of the above resistor.
[0060] Figure 3 is one of the structural schematic diagrams of the single-phase zero-point detection device provided by the present invention. In the Figure 3 shown embodiment, the constant current module is respectively connected to the power switch module and the driving module. When the power switch module is in the conducting state, the current forms a stable constant current source through the constant current module composed of the resistor R8 and the Q7 to meet the requirements of the single-phase intelligent panel.
[0061] The single - live - wire zero - point detection method provided by the embodiment of the present invention obtains a bypass current based on a constant - current module when the power - switch module is conducting, and supplies power to the single - live - wire intelligent control system according to the bypass current, so as to realize stable power supply to the single - live - wire intelligent panel.
[0062] In some embodiments, determining the on - off state of the power - switch module according to the real - time voltage and the starting - voltage threshold of the lamp includes: when the real - time voltage is less than or equal to the starting - voltage threshold, determining that the power - switch module is conducting; when the real - time voltage is greater than the starting - voltage threshold, determining that the power - switch module is not conducting.
[0063] In this embodiment, when the real - time voltage is less than or equal to the starting - voltage threshold of the lamp, the bypass current - flowing device controls the power - switch module to conduct through the driving module. When the power - switch module is conducting, the bypass load (for example, the constant - current module in the bypass current - flowing device) can provide a constant current for the single - live - wire intelligent panel.
[0064] In this embodiment, if the real - time voltage is higher than the starting - voltage threshold of the lamp, it will cause the energy consumption of more loads in the bypass current - flowing device. At this time, the over - voltage protection module controls the power - switch module to turn off through the driving module to reduce the loss of the bypass current - flowing device.
[0065] In this embodiment, the bypass current - flowing device further includes an over - voltage protection module. The over - voltage protection module is connected in parallel with the power - switch module and is connected to the driving circuit; after determining that the power - switch module is not conducting, the method further includes: controlling the driving circuit to disconnect the power - switch module based on the over - voltage protection module.
[0066] In this embodiment, the over - voltage protection module includes two resistors R5 and R7, and a triode Q6; the over - voltage protection module is used to control Q6 to conduct when the voltage division of R5 and R7 is greater than the turn - on threshold of Q6, and controls the power - switch module Q4 to turn off through the driving module to reduce the loss of Q4.
[0067] In Figure 3 In the shown embodiment, the over - voltage protection module is connected in parallel with the power - switch module and is connected to the driving circuit. When the real - time voltage is greater than the starting - voltage threshold, the over - voltage protection module controls the power - switch module to turn off through the driving module to ensure the safety of the circuit.
[0068] The single - live - wire zero - point detection method provided by the embodiment of the present invention controls the on - off state of the power - switch through the magnitude of the real - time voltage, and calculates the corresponding alternating - current zero - point when controlling the power - switch to conduct, which can improve the sampling accuracy of the alternating - current zero - point and provide reliable data for the single - live - wire intelligent control system to adjust the control strategy according to the alternating - current zero - point and the corresponding frequency in the subsequent stage.
[0069] In some embodiments, the bypass flow device further includes a power supply module, and the drive module, the rectification module, and the overvoltage protection module are respectively connected to the power supply module; when the input voltage of the rectification module is higher than a preset voltage, the power switch module is controlled to conduct through the drive module; wherein, the overvoltage protection module is used to control the voltage of the power supply module within a target range.
[0070] In this embodiment, the target range can be set according to the actual needs of the user to ensure that the power supply module is in a safe environment.
[0071] In this embodiment, the power supply module includes a plurality of pre-charge circuits, and the pre-charge circuit is formed by a resistor, a diode, or a triode.
[0072] For example, the power supply module includes a first pre-charge circuit, which is formed by connecting resistor R1 and diode D1 in series. The resistance value of R1 is relatively large, and only a small current pre-charge is provided to ensure that the loss on R1 is small enough.
[0073] In this embodiment, the power supply module further includes a second pre-charge circuit, which is formed by connecting resistor R2, resistor R3, and diode D2 in series. R2 and R3 can divide the input voltage to provide a base drive current for triode Q3.
[0074] In this embodiment, the power supply module further includes a third pre-charge circuit, which is formed by connecting resistor R4 and triode Q1 in series. The resistance value of R4 is relatively small, and the third pre-charge circuit can provide sufficient current for the capacitor of the constant voltage module; wherein, Q1 and Q4 form a Darlington transistor to amplify the current passing through Q3 to ensure that Q1 can pass a relatively large current.
[0075] Specifically, the collector of triode Q1 is connected to the collector of triode Q3 to form the input end of the Darlington transistor, the emitter of triode Q1 is the output end of the Darlington transistor, the base of triode Q1 is connected to the emitter of triode Q3, and the base of triode Q3 is the control end of the Darlington transistor; on this basis, the two ends of resistor R4 are respectively connected to the first end of resistor R2 and the input end of the Darlington transistor, the output end of the Darlington transistor is connected to the input end of diode D2, and the control end of the Darlington transistor is connected to the second end of resistor R2.
[0076] In Figure 3 In the shown embodiment, the drive module, the rectification module, and the overvoltage protection module are respectively connected to the power supply module. The overvoltage protection module can control the voltage and power consumption at both ends of the third pre-charge circuit within the target range, and the third pre-charge circuit can provide sufficient current for the overvoltage protection module. The power supply module provides electrical energy for the drive module, the rectification module, and the overvoltage protection module.
[0077] The single - live - wire zero - point detection method provided by the embodiments of the present invention realizes bypass current - flowing of the lamp by controlling the conduction of the power switch module through the driving module when the input voltage of the rectification module is higher than the preset voltage, and then obtains the alternating - current zero - point.
[0078] In some embodiments, the bypass current - flowing device further includes a constant - voltage module, and the constant - voltage module is connected to the driving module; the driving module is powered by the constant - voltage module to realize the control of the on - off state of the power switch module.
[0079] In this embodiment, the constant - voltage module is obtained by connecting a capacitor and a voltage - stabilizing diode in parallel; for example, the constant - voltage module includes a capacitor C1 and a voltage - stabilizing diode ZD1. Among them, the voltage - stabilizing diode ZD1 plays a role in voltage clamping to ensure the constant voltage of the constant - voltage module, and the capacitor C1 is used to store electrical energy and can provide sufficient power for the driving module to effectively control the on - off state of the power switch module.
[0080] In Figure 3 the shown embodiment, the constant - voltage module is connected to the driving module, and the constant - voltage module can supply power to the driving module.
[0081] The single - live - wire zero - point detection method provided by the embodiments of the present invention supplies power to the driving module, over - voltage protection module, and over - current protection module through the constant - voltage module to ensure that these modules are in a safe voltage environment, so as to realize the effective control of the on - off state of the power switch module by the driving module.
[0082] In some embodiments, the bypass current - flowing device further includes a rectification module, and the rectification module is connected in parallel with the lamp; after obtaining the real - time voltage across the lamp, the method further includes: converting the real - time voltage into a direct - current voltage based on the rectification module.
[0083] In Figure 3 the shown embodiment, the rectification module is connected in parallel with both ends of the lamp (corresponding to L and N), and the rectification module is used to convert the real - time voltage (alternating - current voltage) across the lamp into a direct - current voltage.
[0084] In this embodiment, the rectification module is composed of multiple diodes. For example, the rectification module is a rectifier - bridge circuit composed of four triodes D3, D4, D5, and D6. The input end of the rectifier - bridge circuit is connected to the N - end and the L out - end, and one output end of the rectifier - bridge circuit is connected to one end of the power switch module, and the other output end of the rectifier - bridge circuit is coupled to the other end of the power switch module.
[0085] The single - live - wire zero - point detection method provided by the embodiments of the present invention converts the real - time voltage into a direct - current voltage through the rectification module to provide a direct - current input voltage and corresponding current for other loads of the bypass current - flowing device.
[0086] The single - live - wire zero - point detection device provided by the present invention will be described below. The single - live - wire zero - point detection device described below can be correspondingly referred to the single - live - wire zero - point detection method described above.
[0087] Figure 4 It is the second structural schematic diagram of the single - live - wire zero - point detection device provided by the present invention. As Figure 4 shown, the single - live - wire zero - point detection device includes:
[0088] A voltage acquisition module 410, which is used to obtain the real - time voltage across the two ends of the lamp in the single - live - wire intelligent control system. The lamp is connected in parallel with the power switch module, and the drive module is used to control the on - off state of the power switch module;
[0089] A detection module 420, which is used to determine the on - off state of the power switch module according to the real - time voltage and the start - up voltage threshold of the lamp, and determine multiple AC zero - points and the corresponding mains frequencies of the multiple AC zero - points according to the on - off state. The single - live - wire intelligent control system is used to realize single - live - wire power taking according to the multiple AC zero - points and the mains frequencies.
[0090] The single - live - wire zero - point detection device provided by the embodiment of the present invention determines the on - off state of the power switch module according to the real - time voltage across the two ends of the lamp and the start - up voltage threshold of the lamp, calculates the corresponding AC zero - points when the power switch module is turned on, and then calculates the corresponding mains frequencies, so as to enable the single - live - wire intelligent control system to realize single - live - wire power taking, which can ensure normal power supply during the lighting period of the switch panel and the lamp will not flicker, and improve the efficiency and safety of AC zero - point acquisition.
[0091] Figure 5 It is the structural schematic diagram of the electronic device provided by the present invention. As Figure 5 shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530, and a communication bus 540. Among them, the processor 510, the communication interface 520, and the memory 530 communicate with each other through the communication bus 540. The processor 510 can call the logical instructions in the memory 530 to execute the single - live - wire zero - point detection method. This method is applied to a bypass current - flowing device, and the bypass current - flowing device includes a power switch module and a drive module. The power switch module is connected in parallel with the lamp in the single - live - wire intelligent control system, and the drive module is used to control the on - off state of the power switch module, including: obtaining the real - time voltage across the two ends of the lamp; determining the on - off state of the power switch module according to the real - time voltage and the start - up voltage threshold of the lamp, and determining multiple AC zero - points and the corresponding mains frequencies of the multiple AC zero - points according to the on - off state. The single - live - wire intelligent control system is used to realize single - live - wire power taking according to the multiple AC zero - points and the mains frequencies.
[0092] In addition, when the logical instructions in the above-mentioned memory 530 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.
[0093] On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the single-phase live wire zero-crossing detection method provided by the above-mentioned various methods. This method is applied to a bypass current-carrying device. The bypass current-carrying device includes a power switch module and a drive module. The power switch module is connected in parallel with the lamps in the single-phase live wire intelligent control system. The drive module is used to control the on-off state of the power switch module and includes: obtaining the real-time voltage across the lamps; determining the on-off state of the power switch module according to the real-time voltage and the startup voltage threshold of the lamps, and determining multiple alternating current zero-crossing points and the corresponding mains frequencies of the multiple alternating current zero-crossing points according to the on-off state. The single-phase live wire intelligent control system is used to realize single-phase live wire power extraction according to the multiple alternating current zero-crossing points and the mains frequencies.
[0094] On yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it realizes the execution of the single-phase live wire zero-crossing detection method provided by the above-mentioned various methods. This method is applied to a bypass current-carrying device. The bypass current-carrying device includes a power switch module and a drive module. The power switch module is connected in parallel with the lamps in the single-phase live wire intelligent control system. The drive module is used to control the on-off state of the power switch module and includes: obtaining the real-time voltage across the lamps; determining the on-off state of the power switch module according to the real-time voltage and the startup voltage threshold of the lamps, and determining multiple alternating current zero-crossing points and the corresponding mains frequencies of the multiple alternating current zero-crossing points according to the on-off state. The single-phase live wire intelligent control system is used to realize single-phase live wire power extraction according to the multiple alternating current zero-crossing points and the mains frequencies.
[0095] The device embodiments described above are merely illustrative. 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 to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative effort.
[0096] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0097] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A single live wire zero point detection method, characterized in that Applied to a bypass current flow device, the bypass current flow device includes a power switch module and a drive module. The power switch module is connected in parallel with a lamp in a single-phase intelligent control system. The drive module is used to control the on / off state of the power switch module. The method includes: Obtain the real-time voltage across the lamp; Determine the on / off state of the power switch module according to the real-time voltage and the startup voltage threshold of the lamp, and determine a plurality of alternating current zero-crossing points and the mains frequency corresponding to the plurality of alternating current zero-crossing points according to the on / off state. The single-phase intelligent control system is used to realize single-phase power extraction according to the plurality of alternating current zero-crossing points and the mains frequency.
2. The single-line zero-crossing detection method according to claim 1, characterized in that The bypass current flow device further includes a constant current module, and the constant current module is respectively connected to the power switch module and the drive module; After determining the on / off state of the power switch module according to the real-time voltage and the startup voltage threshold of the lamp, the method further includes: When the power switch module is in the on state, obtain a bypass current based on the constant current module, and supply power to the single-phase intelligent control system according to the bypass current.
3. The single live wire zero point detection method according to claim 1, wherein The determining the on / off state of the power switch module according to the real-time voltage and the startup voltage threshold of the lamp includes: When the real-time voltage is less than or equal to the startup voltage threshold, determine that the power switch module is on; When the real-time voltage is greater than the startup voltage threshold, determine that the power switch module is off.
4. The single-line zero-crossing detection method according to claim 3, wherein The bypass current flow device further includes an overvoltage protection module, the overvoltage protection module is connected in parallel with the power switch module, and the overvoltage protection module is connected to the drive circuit; After determining that the power switch module is off, the method further includes: Based on the overvoltage protection module, control the drive circuit to disconnect the power switch module.
5. The single live wire zero point detection method according to claim 1, wherein The bypass current flow device further includes a power supply module, and the drive module, the rectification module and the overvoltage protection module are respectively connected to the power supply module; When the input voltage of the rectification module is higher than a preset voltage, control the power switch module to be on through the drive module; wherein, the overvoltage protection module is used to control the voltage of the power supply module within a target range.
6. The single-line zero-point detection method according to claim 1, wherein The bypass current flow device further includes a constant voltage module, and the constant voltage module is connected to the drive module; Supply power to the drive module based on the constant voltage module to realize the control of the on / off state of the power switch module by the drive module.
7. The single live wire zero point detection method according to claim 1, wherein The bypass current flow device further includes a rectification module, and the rectification module is connected in parallel with the lamp; After obtaining the real-time voltage across the lamp, the method further includes: Convert the real-time voltage into a DC voltage based on the rectification module.
8. A single live wire zero point detection device, characterized in that, Including: A voltage acquisition module for obtaining the real-time voltage across a lamp in a single-phase intelligent control system. The lamp is connected in parallel with a power switch module, and a drive module is used to control the on / off state of the power switch module; The detection module is used to determine the on / off state of the power switch module according to the real-time voltage and the startup voltage threshold of the lamp, and determine a plurality of alternating current zero-crossing points and the mains frequency corresponding to the plurality of alternating current zero-crossing points according to the on / off state. The single-phase intelligent control system is used to realize single-phase power extraction according to the plurality of alternating current zero-crossing points and the mains frequency.
9. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the single-phase zero-crossing detection method according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the single-phase zero-crossing detection method according to any one of claims 1 to 7.