Voltage fluctuation signal generation method and device, target circuit and electronic equipment
By designing a target circuit including an amplitude modulation circuit and a signal output circuit, and using a potentiometer to adjust the resistance value to generate a voltage fluctuation signal, the cost-effectiveness of the existing technology is solved, and the economicality of grid power quality analysis is realized.
Patent Information
- Application Number
- CN202411758124.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-03-21
AI Technical Summary
The existing cost of generating voltage fluctuations signals is high, resulting in an increase in the cost of grid power quality analysis.
By designing a target circuit, including an amplitude modulation circuit and a signal output circuit, the resistance value is adjusted using a potentiometer to generate a voltage fluctuation signal. The target circuit uses fewer components and has low construction costs.
The cost of generating voltage fluctuation signals is reduced and the economicality of grid power quality analysis is realized.
Smart Images

Figure CN119667234A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of power quality testing, and in particular, relates to a method, device, target circuit and electronic equipment for generating a voltage fluctuation signal. Background Art
[0002] In order to analyze the power quality of the power grid, it is usually necessary to generate a voltage fluctuation signal to test the generated voltage fluctuation signal. At present, the voltage fluctuation signal is usually generated by a standard power quality test device available on the market. However, this standard power quality test device is expensive, which increases the cost of generating the voltage fluctuation signal. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a method, device, target circuit and electronic device for generating a voltage fluctuation signal to solve the technical problem of high cost in the existing generation of voltage fluctuation signals.
[0004] In a first aspect, an embodiment of the present application provides a method for generating a voltage fluctuation signal, which is applied to a target circuit, wherein the target circuit includes an amplitude modulation circuit and a signal output circuit; the method includes:
[0005] determining a voltage fluctuation amplitude of a voltage fluctuation signal to be generated;
[0006] Determining a target resistance value of a potentiometer in the amplitude modulation circuit according to the voltage fluctuation amplitude;
[0007] adjusting the actual resistance value of the potentiometer to the target resistance value;
[0008] The voltage fluctuation signal is outputted through the signal output circuit.
[0009] Optionally, the target circuit also includes an impedance amplifier circuit, a rectifier circuit and a voltage-dividing resistor, the first end of the voltage-dividing resistor is connected to the first end of the power supply, the second end of the voltage-dividing resistor, the first end of the signal output circuit and the first end of the rectifier circuit are connected in common, the second end of the signal output circuit, the second end of the power supply and the second end of the rectifier circuit are connected in common, the third end of the rectifier circuit, the first end of the amplitude modulation circuit and the first end of the impedance amplifier circuit are connected in common, the fourth end of the rectifier circuit, the second end of the amplitude modulation circuit and the second end of the impedance amplifier circuit are connected in common to ground, and the third end of the amplitude modulation circuit is connected to the third end of the impedance amplifier circuit.
[0010] Optionally, the amplitude modulation circuit includes a first resistor and the potentiometer, the first end of the first resistor serves as the first end of the amplitude modulation circuit, the second end of the first resistor is connected to the first end of the potentiometer, the second end of the potentiometer serves as the second end of the amplitude modulation circuit, and the middle end of the potentiometer serves as the third end of the amplitude modulation circuit.
[0011] Optionally, the impedance amplification circuit includes a field effect tube, an operational amplifier and a second resistor, the drain of the field effect tube serves as the first end of the impedance amplification circuit, the first end of the second resistor serves as the second end of the impedance amplification circuit, the first input end of the operational amplifier serves as the third end of the impedance amplification circuit, the gate of the field effect tube is connected to the output end of the operational amplifier, and the source of the field effect tube, the second input end of the operational amplifier and the second end of the second resistor are connected in common.
[0012] Optionally, the signal output circuit includes a third resistor, a first voltage output terminal and a second voltage output terminal, the first voltage output terminal serves as the first end of the signal output circuit, the second voltage output terminal serves as the second end of the signal output circuit, the first end of the third resistor is connected to the first voltage output terminal, and the second end of the third resistor is connected to the second voltage output terminal.
[0013] Optionally, determining a target resistance value of a potentiometer in the amplitude modulation circuit according to the voltage fluctuation amplitude includes:
[0014] Determining a second resistance value between a second end of the voltage dividing resistor and a second end of the power supply according to the voltage fluctuation amplitude and the first resistance value of the voltage dividing resistor;
[0015] determining a fourth resistance value between a third end of the rectifier circuit and a fourth end of the rectifier circuit according to the second resistance value and a third resistance value of the third resistor;
[0016] Determine an equivalent resistance value of the field effect transistor according to the fourth resistance value, the first resistance value, the total resistance value of the potentiometer, and the fifth resistance value of the second resistor;
[0017] The target resistance value is determined according to the equivalent resistance value, the fifth resistance value, the sixth resistance value of the first resistor, and the total resistance value of the potentiometer.
[0018] Optionally, the target circuit further includes a frequency modulation circuit, a first end of the frequency modulation circuit, a second end of the voltage divider resistor, and a first end of the signal output circuit are connected in common, and the second end of the frequency modulation circuit is connected to the first end of the rectifier circuit; the method further includes:
[0019] determining a voltage fluctuation frequency of the voltage fluctuation signal;
[0020] Determining a target frequency for controlling the closing of a relay in the frequency modulation circuit according to the voltage fluctuation frequency;
[0021] The relay is controlled to close at the target frequency.
[0022] In a second aspect, an embodiment of the present application provides a device for generating a voltage fluctuation signal, which is applied to a target circuit, wherein the target circuit includes an amplitude modulation circuit and a signal output circuit; the device includes:
[0023] A voltage fluctuation amplitude determination unit, used to determine the voltage fluctuation amplitude of the voltage fluctuation signal to be generated;
[0024] a target resistance value determining unit, configured to determine a target resistance value of a potentiometer in the amplitude modulation circuit according to the voltage fluctuation amplitude;
[0025] an adjusting unit, used for adjusting the actual resistance value of the potentiometer to the target resistance value;
[0026] A voltage fluctuation signal output unit is used to output the voltage fluctuation signal through the signal output circuit.
[0027] In a third aspect, an embodiment of the present application provides a target circuit for generating a voltage fluctuation signal, the target circuit comprising an amplitude modulation circuit and a signal output circuit; the target circuit also comprises an impedance amplifier circuit, a rectifier circuit and a voltage-dividing resistor, the first end of the voltage-dividing resistor is connected to the first end of a power supply, the second end of the voltage-dividing resistor, the first end of the signal output circuit and the first end of the rectifier circuit are connected in common, the second end of the signal output circuit, the second end of the power supply and the second end of the rectifier circuit are connected in common, the third end of the rectifier circuit, the first end of the amplitude modulation circuit and the first end of the impedance amplifier circuit are connected in common, the fourth end of the rectifier circuit, the second end of the amplitude modulation circuit and the second end of the impedance amplifier circuit are connected in common to ground, and the third end of the amplitude modulation circuit is connected to the third end of the impedance amplifier circuit.
[0028] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a device for generating a voltage fluctuation signal as described in the second aspect and a target circuit as described in the third aspect.
[0029] The voltage fluctuation signal generation method, device, target circuit and electronic device provided in the embodiments of the present application have the following beneficial effects:
[0030] The method for generating a voltage fluctuation signal provided in an embodiment of the present application is applied to a target circuit, and the target circuit includes an amplitude modulation circuit and a signal output circuit; the method includes: determining the voltage fluctuation amplitude of the voltage fluctuation signal to be generated; determining the target resistance value of the potentiometer in the amplitude modulation circuit according to the voltage fluctuation amplitude; adjusting the actual resistance value of the potentiometer to the target resistance value; and outputting the voltage fluctuation signal through the signal output circuit. Since the target circuit required by the method for generating a voltage fluctuation signal of the present application uses fewer components, the cost of constructing the target circuit is low, thereby reducing the cost of generating a voltage fluctuation signal. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0032] Figure 1 A circuit diagram of a target circuit for generating a voltage fluctuation signal provided in an embodiment of the present application;
[0033] Figure 2 A circuit diagram of a target circuit for generating a voltage fluctuation signal provided by another embodiment of the present application;
[0034] Figure 3 A schematic flow chart of a method for generating a voltage fluctuation signal provided in an embodiment of the present application;
[0035] Figure 4 A circuit diagram of a target circuit for generating a voltage fluctuation signal provided in yet another embodiment of the present application;
[0036] Figure 5 A schematic diagram of a voltage fluctuation signal provided in an embodiment of the present application;
[0037] Figure 6 A schematic diagram of another voltage fluctuation signal provided in an embodiment of the present application;
[0038] Figure 7 A schematic diagram of the structure of a device for generating a voltage fluctuation signal provided in an embodiment of the present application;
[0039] Figure 8 A schematic diagram of the structure of an electronic device provided in another embodiment of the present application. DETAILED DESCRIPTION
[0040] It should be noted that the terms used in the embodiments of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application. In the description of the embodiments of the present application, unless otherwise specified, "multiple" refers to two or more than two, and "at least one", "one or more" refers to one, two or more. The terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, it is defined that the "first" and "second" features can explicitly or implicitly include one or more of the features.
[0041] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear at different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0042] The present application embodiment first provides a target circuit for generating a voltage fluctuation signal. Figure 1 , Figure 1 A circuit diagram of a target circuit for generating a voltage fluctuation signal provided in an embodiment of the present application. Figure 1 As shown, the target circuit includes an amplitude modulation circuit 11, a signal output circuit 12, an impedance amplification circuit 13, a rectification circuit 14 and a voltage dividing resistor 15.
[0043] The target circuit may be connected to a power source 16 , and may also be connected to a voltage fluctuation signal generating device 17 .
[0044] Specifically, the first end of the voltage-dividing resistor 15 is connected to the first end of the power supply 16, the second end of the voltage-dividing resistor 15, the first end of the signal output circuit 12 and the first end of the rectifier circuit 14 are connected in common, the second end of the signal output circuit 12, the second end of the power supply 16 and the second end of the rectifier circuit 14 are connected in common, the third end of the rectifier circuit 14, the first end of the amplitude modulation circuit 11 and the first end of the impedance amplifier circuit 13 are connected in common, the fourth end of the rectifier circuit 14, the second end of the amplitude modulation circuit 11 and the second end of the impedance amplifier circuit 13 are connected in common to ground, and the third end of the amplitude modulation circuit 11 is connected to the third end of the impedance amplifier circuit 13.
[0045] For more details, see Figure 2 , Figure 2A circuit diagram of a target circuit for generating a voltage fluctuation signal provided in another embodiment of the present application.
[0046] Among them, the amplitude modulation circuit 11 includes a first resistor 111 and a potentiometer 112, the first end of the first resistor 111 serves as the first end of the amplitude modulation circuit 11, the second end of the first resistor 111 is connected to the first end of the potentiometer 112, the second end of the potentiometer 112 serves as the second end of the amplitude modulation circuit 11, and the middle end of the potentiometer 112 serves as the third end of the amplitude modulation circuit 11.
[0047] Among them, the impedance amplifier circuit 13 includes a field effect tube 131, an operational amplifier 132 and a second resistor 133, the drain of the field effect tube 131 serves as the first end of the impedance amplifier circuit 13, the first end of the second resistor 133 serves as the second end of the impedance amplifier circuit 13, the first input end of the operational amplifier 132 serves as the third end of the impedance amplifier circuit 13, the gate of the field effect tube 131 is connected to the output end of the operational amplifier 132, and the source of the field effect tube 131, the second input end of the operational amplifier 132 and the second end of the second resistor 133 are connected in common.
[0048] Among them, the signal output circuit 12 includes a third resistor 121, a first voltage output terminal 122 and a second voltage output terminal 123, the first voltage output terminal 122 serves as the first end of the signal output circuit 12, the second voltage output terminal 123 serves as the second end of the signal output circuit 12, the first end of the third resistor 121 is connected to the first voltage output terminal 122, and the second end of the third resistor 121 is connected to the second voltage output terminal 123.
[0049] Among them, the rectifier circuit 14 includes a rectifier bridge 141, the first end of the rectifier bridge 141 serves as the first end of the rectifier circuit 14, the second end of the rectifier bridge 141 serves as the second end of the rectifier circuit 14, the third end of the rectifier bridge 141 serves as the third end of the rectifier circuit 14, and the fourth end of the rectifier bridge 141 serves as the fourth end of the rectifier circuit 14.
[0050] The voltage fluctuation signal generating device 17 can be connected to the potentiometer 112 in the amplitude modulation circuit 11, and the voltage fluctuation signal generating device 17 can be used to control the resistance value of the potentiometer 112 in the amplitude modulation circuit 11. In addition, the voltage fluctuation signal generating device 17 can be connected to the first voltage output terminal 122 and the second voltage output terminal 123 in the signal output circuit 12, and the voltage fluctuation signal generating device 17 can obtain the voltage fluctuation signal through the first voltage output terminal 122 and the second voltage output terminal 123 in the signal output circuit 12.
[0051] In a possible implementation, the potentiometer 112 in the amplitude modulation circuit 11 may be a digital potentiometer, and the voltage fluctuation signal generating device 17 may adjust the resistance of the potentiometer 112 through a preset program.
[0052] In a possible implementation, the field effect transistor 131 in the impedance amplifier circuit 13 may be an NMOS transistor.
[0053] In a possible implementation, the power source 16 may be an alternating current power source.
[0054] The following combination Figure 2 , the working principle of the target circuit provided in the embodiment of the present application is explained.
[0055] The current of the power supply 16 will form a voltage drop through the voltage divider resistor 15. Based on this, if the current Figure 2 If the resistance value between CD is changed, the voltage value between AB will fluctuate. Figure 2 By obtaining the resistance value between the two ends of CD and the voltage value between the two ends of AB, the voltage fluctuation signal can be obtained.
[0056] Based on this, the resistance of the potentiometer 112 can be adjusted by the voltage fluctuation signal generating device 17 to change the resistance value between the two ends of CD, and then the voltage fluctuation signal can be obtained from the first voltage output terminal 122 and the second voltage output terminal 123.
[0057] In addition, since the power source 16 is an AC power source, the function of the rectifier bridge 141 is to rectify the AC voltage to obtain the DC current required by the potentiometer 112 , the operational amplifier 132 and the field effect transistor 131 .
[0058] In addition, the first resistor 111 is used as a voltage-dividing resistor of the potentiometer 112 , and the operational amplifier 132 is used to drive the field effect transistor 131 , so that the field effect transistor 131 is equivalent to generating a controlled resistance value after being driven.
[0059] In addition, the second resistor 133 is used as a current sampling resistor of the field effect transistor 131 , and controls the on-current of the field effect transistor 131 together with the potentiometer 112 and the operational amplifier 132 .
[0060] based on Figure 1 and Figure 2 A target circuit for generating a voltage fluctuation signal is provided, and the present application further provides a method for generating a voltage fluctuation signal applied to the target circuit.
[0061] See also Figure 3 , Figure 3The schematic flow chart of a method for generating a voltage fluctuation signal provided in an embodiment of the present application is shown in FIG. The execution subject of the method for generating a voltage fluctuation signal provided in an embodiment of the present application may be Figure 1 and Figure 2 The voltage fluctuation signal generating device 17 in the corresponding embodiment.
[0062] In practical applications, the voltage fluctuation signal generating device 17 may be a single chip microcomputer.
[0063] The method for generating a voltage fluctuation signal provided in the embodiment of the present application may include S101 to S104, which are described in detail as follows:
[0064] In S101 , the voltage fluctuation amplitude of the voltage fluctuation signal to be generated is determined.
[0065] In the embodiment of the present application, the voltage fluctuation signal generating device 17 can first determine the voltage fluctuation amplitude of the voltage fluctuation signal to be generated. In practical applications, the voltage fluctuation signal generating device 17 can obtain the voltage fluctuation amplitude of the voltage fluctuation signal input by the user, so as to determine the voltage fluctuation amplitude of the voltage fluctuation signal to be generated.
[0066] In S102, a target resistance value of a potentiometer in an amplitude modulation circuit is determined according to the voltage fluctuation amplitude.
[0067] In the embodiment of the present application, after determining the voltage fluctuation amplitude of the voltage fluctuation signal to be generated, the voltage fluctuation signal generating device 17 may determine the target resistance value of the potentiometer 112 in the amplitude modulation circuit 11 according to the voltage fluctuation amplitude.
[0068] In a possible implementation, the voltage fluctuation signal generating device 17 may determine the target resistance value through steps a to d, as described in detail as follows:
[0069] In step a, a second resistance value between a second end of the voltage-dividing resistor and a second end of the power supply is determined according to the voltage fluctuation amplitude and the first resistance value of the voltage-dividing resistor.
[0070] In this implementation, the voltage fluctuation signal generating device 17 can determine the second resistance value between the second end of the voltage dividing resistor and the second end of the power supply according to the voltage fluctuation amplitude and the first resistance value of the voltage dividing resistor and by the following formula:
[0071]
[0072] Among them, AM deep Indicates the voltage fluctuation amplitude, R load represents the second resistance value between the second end of the voltage divider resistor and the second end of the power supply, R 分Indicates the first resistance value of the voltage divider resistor.
[0073] In step b, a fourth resistance value between the third end of the rectifier circuit and the fourth end of the rectifier circuit is determined according to the second resistance value and the third resistance value of the third resistor.
[0074] In this implementation, after determining the second resistance value between the second end of the voltage-dividing resistor and the second end of the power supply, the voltage fluctuation signal generating device 17 can determine the fourth resistance value between the third end of the rectifier circuit and the fourth end of the rectifier circuit according to the second resistance value and the third resistance value of the third resistor and by the following formula:
[0075]
[0076] Among them, R load represents the second resistance value between the second end of the voltage divider resistor and the second end of the power supply, R3 represents the third resistance value of the third resistor, R CD represents a fourth resistance value between the third terminal of the rectifier circuit and the fourth terminal of the rectifier circuit.
[0077] In step c, the equivalent resistance value of the field effect transistor is determined according to the fourth resistance value, the first resistance value, the total resistance value of the potentiometer and the fifth resistance value of the second resistor.
[0078] In this implementation, after determining the fourth resistance value between the third end of the rectifier circuit and the fourth end of the rectifier circuit, the voltage fluctuation signal generating device 17 can determine the equivalent resistance value of the field effect tube according to the fourth resistance value, the first resistance value, the total resistance value of the potentiometer and the fifth resistance value of the second resistor, and through the following formula:
[0079]
[0080] Among them, R CD represents the fourth resistance value between the third terminal of the rectifier circuit and the fourth terminal of the rectifier circuit, R1 represents the first resistance value of the voltage divider resistor, RT 12 represents the total resistance value of the potentiometer, R2 represents the fifth resistance value of the second resistor, R d Indicates the equivalent resistance value of the field effect transistor.
[0081] In step d, a target resistance value is determined according to the equivalent resistance value, the fifth resistance value, the sixth resistance value of the first resistor, and the total resistance value of the potentiometer.
[0082] In this implementation, after determining the equivalent resistance value of the field effect tube, the voltage fluctuation signal generating device 17 can determine the target resistance value according to the equivalent resistance value, the fifth resistance value, the sixth resistance value of the first resistor and the total resistance value of the potentiometer, and through the following formula:
[0083]
[0084] Among them, R d represents the equivalent resistance value of the field effect tube, R2 represents the fifth resistance value of the second resistor, R1 represents the sixth resistance value of the first resistor, RT 12 Represents the total resistance value of the potentiometer, RT 02 Indicates the target resistance value.
[0085] Based on this, the voltage fluctuation signal generating device 17 can determine the target resistance value of the potentiometer 112 in the amplitude modulation circuit 11 according to the voltage fluctuation amplitude according to steps a to d.
[0086] In S103 , the actual resistance value of the potentiometer is adjusted to the target resistance value.
[0087] In the embodiment of the present application, after determining the target resistance value of the potentiometer 112 in the amplitude modulation circuit 11, the voltage fluctuation signal generating device 17 can adjust the actual resistance value of the potentiometer 112 to the target resistance value. In practical applications, the voltage fluctuation signal generating device 17 can control the actual resistance value of the potentiometer 112 through a preset program, so that the actual resistance value of the potentiometer 112 can be adjusted to the target resistance value.
[0088] In S104 , a voltage fluctuation signal is outputted through a signal output circuit.
[0089] In the embodiment of the present application, after the actual resistance value of the potentiometer is adjusted to the target resistance value, the voltage fluctuation signal generating device 17 can output the voltage fluctuation signal through the signal output circuit 12 .
[0090] Specifically, the voltage fluctuation signal generating device 17 can be respectively connected to the first voltage output terminal 122 and the second voltage output terminal 123 in the signal output circuit 12, so as to obtain the voltage fluctuation signal of the signal output circuit 12. After obtaining the voltage fluctuation signal of the signal output circuit 12, the voltage fluctuation signal generating device 17 can output the voltage fluctuation signal.
[0091] It is understandable that the method for generating a voltage fluctuation signal provided in the embodiment of the present application can be achieved by Figure 1 and Figure 2 The target circuit provided by the embodiment generates a voltage fluctuation signal due to Figure 1 and Figure 2 The number of components used in the target circuit provided by the embodiment is small, and Figure 1 and Figure 2 The price of components used in the target circuit provided by the embodiment is relatively low, so Figure 1and Figure 2 The target circuit provided by the embodiment has low cost.
[0092] From the above, it can be seen that the method for generating a voltage fluctuation signal provided in the embodiment of the present application is applied to a target circuit, and the target circuit includes an amplitude modulation circuit and a signal output circuit; the method includes: determining the voltage fluctuation amplitude of the voltage fluctuation signal to be generated; determining the target resistance value of the potentiometer in the amplitude modulation circuit according to the voltage fluctuation amplitude; adjusting the actual resistance value of the potentiometer to the target resistance value; and outputting the voltage fluctuation signal through the signal output circuit. Since the target circuit required by the method for generating a voltage fluctuation signal of the present application uses fewer components, the cost of constructing the target circuit is low, thereby reducing the cost of generating a voltage fluctuation signal.
[0093] See also Figure 4 , Figure 4 A circuit diagram of a target circuit for generating a voltage fluctuation signal is provided according to yet another embodiment of the present application. Figure 4 The target circuit provided is Figure 2 Compared with the target circuit provided, Figure 4 The provided target circuit may further include a frequency modulation circuit 18 .
[0094] exist Figure 4 The target circuit provided with Figure 2 The target circuit provided is different in that the first end of the frequency modulation circuit 18 , the second end of the voltage divider resistor 15 and the first end of the signal output circuit 12 are connected in common, and the second end of the frequency modulation circuit 18 is connected to the first end of the rectifier circuit 14 .
[0095] The frequency modulation circuit 18 may include a relay 181. A first end of the relay 181 may be used as a first end of the frequency modulation circuit 18, and a second end of the relay 181 may be used as a second end of the frequency modulation circuit 18.
[0096] based on Figure 4 The target circuit provided, the method for generating a voltage fluctuation signal provided in the embodiment of the present application may further include steps e to g, which are described in detail as follows:
[0097] In step e, the voltage fluctuation frequency of the voltage fluctuation signal is determined.
[0098] In the embodiment of the present application, the voltage fluctuation signal generating device 17 may also first determine the voltage fluctuation frequency of the voltage fluctuation signal. In practical applications, the voltage fluctuation signal generating device 17 may obtain the voltage fluctuation frequency of the voltage fluctuation signal input by the user, thereby determining the voltage fluctuation frequency of the voltage fluctuation signal to be generated.
[0099] In step f, a target frequency for controlling the closing of a relay in a frequency modulation circuit is determined according to the voltage fluctuation frequency.
[0100] In the embodiment of the present application, after determining the voltage fluctuation frequency of the voltage fluctuation signal to be generated, the voltage fluctuation signal generating device 17 can determine the target frequency for controlling the closing of the relay 181 in the frequency modulation circuit 18 according to the voltage fluctuation frequency.
[0101] In step g, the relay is controlled to close at the target frequency.
[0102] In the embodiment of the present application, after determining the target frequency for controlling the relay 181 in the frequency modulation circuit 18 to close, the voltage fluctuation signal generating device 17 can control the relay to close at the target frequency.
[0103] It should be noted that, in practical applications, the voltage fluctuation signal generating device 17 can simultaneously execute steps S101 to S104 and steps e to g, so as to obtain a voltage fluctuation signal with a target frequency and a target amplitude.
[0104] See also Figure 5 , Figure 5 A schematic diagram of a voltage fluctuation signal provided in an embodiment of the present application. Figure 6 , Figure 6 A schematic diagram of another voltage fluctuation signal provided in an embodiment of the present application.
[0105] according to Figure 5 and Figure 6 It can be seen that the method for generating a voltage fluctuation signal provided in the embodiment of the present application can generate voltage fluctuation signals with different voltage fluctuation amplitudes and different voltage fluctuation frequencies.
[0106] The advantage of the voltage fluctuation signal generating device provided in the embodiment of the present application is that, compared with the standard power quality testing instrument, the voltage fluctuation signal generating device provided in the embodiment of the present application has a mechanism for introducing random fluctuations, which is closer to the actual situation of electric power meters connected to the grid.
[0107] Based on the method for generating a voltage fluctuation signal provided in the above embodiment, the present invention further provides an embodiment of a device for generating a voltage fluctuation signal for implementing the above method embodiment. Figure 7 , Figure 7 The following is a schematic diagram of a device for generating a voltage fluctuation signal according to an embodiment of the present application. For ease of explanation, only the parts related to the present embodiment are shown. Figure 7As shown, the voltage fluctuation signal generating device 70 can be applied to the target circuit, the target circuit includes an amplitude modulation circuit and a signal output circuit, and the voltage fluctuation signal generating device 70 can include: a voltage fluctuation amplitude determining unit 71, a target resistance value determining unit 72, an adjusting unit 73 and a voltage fluctuation signal output unit 74. Among them:
[0108] The voltage fluctuation amplitude determining unit 71 is used to determine the voltage fluctuation amplitude of the voltage fluctuation signal to be generated.
[0109] The target resistance value determination unit 72 is used to determine the target resistance value of the potentiometer in the amplitude modulation circuit according to the voltage fluctuation amplitude.
[0110] The adjusting unit 73 is used to adjust the actual resistance value of the potentiometer to the target resistance value.
[0111] The voltage fluctuation signal output unit 74 is used to output the voltage fluctuation signal through a signal output circuit.
[0112] Optionally, the target circuit also includes an impedance amplifier circuit, a rectifier circuit and a voltage divider resistor, the first end of the voltage divider resistor is connected to the first end of the power supply, the second end of the voltage divider resistor, the first end of the signal output circuit and the first end of the rectifier circuit are connected in common, the second end of the signal output circuit, the second end of the power supply and the second end of the rectifier circuit are connected in common, the third end of the rectifier circuit, the first end of the amplitude modulation circuit and the first end of the impedance amplifier circuit are connected in common, the fourth end of the rectifier circuit, the second end of the amplitude modulation circuit and the second end of the impedance amplifier circuit are connected in common to ground, and the third end of the amplitude modulation circuit is connected to the third end of the impedance amplifier circuit.
[0113] Optionally, the amplitude modulation circuit includes a first resistor and a potentiometer, the first end of the first resistor serves as the first end of the amplitude modulation circuit, the second end of the first resistor is connected to the first end of the potentiometer, the second end of the potentiometer serves as the second end of the amplitude modulation circuit, and the middle end of the potentiometer serves as the third end of the amplitude modulation circuit.
[0114] Optionally, the impedance amplifier circuit includes a field effect tube, an operational amplifier and a second resistor, the drain of the field effect tube serves as the first end of the impedance amplifier circuit, the first end of the second resistor serves as the second end of the impedance amplifier circuit, the first input end of the operational amplifier serves as the third end of the impedance amplifier circuit, the gate of the field effect tube is connected to the output end of the operational amplifier, and the source of the field effect tube, the second input end of the operational amplifier and the second end of the second resistor are connected in common.
[0115] Optionally, the signal output circuit includes a third resistor, a first voltage output terminal and a second voltage output terminal, the first voltage output terminal serves as the first end of the signal output circuit, the second voltage output terminal serves as the second end of the signal output circuit, the first end of the third resistor is connected to the first voltage output terminal, and the second end of the third resistor is connected to the second voltage output terminal.
[0116] Optionally, the target resistance value determining unit 72 is specifically configured to:
[0117] Determining a second resistance value between a second end of the voltage dividing resistor and a second end of the power supply according to the voltage fluctuation amplitude and the first resistance value of the voltage dividing resistor;
[0118] determining a fourth resistance value between the third end of the rectifier circuit and the fourth end of the rectifier circuit according to the second resistance value and the third resistance value of the third resistor;
[0119] Determine the equivalent resistance value of the field effect tube according to the fourth resistance value, the first resistance value, the total resistance value of the potentiometer and the fifth resistance value of the second resistor;
[0120] The target resistance value is determined according to the equivalent resistance value, the fifth resistance value, the sixth resistance value of the first resistor, and the total resistance value of the potentiometer.
[0121] Optionally, the target circuit further includes a frequency modulation circuit, the first end of the frequency modulation circuit, the second end of the voltage divider resistor and the first end of the signal output circuit are connected in common, the second end of the frequency modulation circuit is connected to the first end of the rectifier circuit, and the voltage fluctuation signal generating device 70 may further include a voltage fluctuation frequency adjustment unit. Wherein:
[0122] The voltage fluctuation frequency adjustment unit is specifically used for:
[0123] determining a voltage fluctuation frequency of a voltage fluctuation signal;
[0124] Determine the target frequency of closing the relay in the control frequency modulation circuit according to the voltage fluctuation frequency;
[0125] The control relay closes at the target frequency.
[0126] It should be noted that the information interaction, execution process and other contents between the above-mentioned units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be specifically referred to the method embodiment part and will not be repeated here.
[0127] The present application also provides an electronic device, which may include: Figures 1 to 2 A target circuit for generating a voltage fluctuation signal in any one of the corresponding embodiments, and Figure 7 A device for generating a corresponding voltage fluctuation signal.
[0128] See also Figure 8 , Figure 8 This is a schematic diagram of the structure of an electronic device provided by another embodiment of the present application. Figure 8 As shown, the electronic device 8 provided in this embodiment may include: a processor 80, a memory 81, and a computer program 82 stored in the memory 81 and executable on the processor 80, such as a program corresponding to the method for generating a voltage fluctuation signal. When the processor 80 executes the computer program 82, the steps in the above-mentioned method for generating a voltage fluctuation signal are implemented, such as Figure 3 Alternatively, when the processor 80 executes the computer program 82, the functions of each module / unit in the above-mentioned voltage fluctuation signal generating device embodiment are realized, for example Figure 7 The functions of the units 71 to 74 are shown.
[0129] Exemplarily, the computer program 82 may be divided into one or more modules / units, one or more modules / units are stored in the memory 81 and executed by the processor 80 to complete the present application. The one or more modules / units may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program 82 in the electronic device 8. For example, the computer program 82 may be divided into a voltage fluctuation amplitude determination unit 71, a target resistance value determination unit 72, an adjustment unit 73, and a voltage fluctuation signal output unit 74. For the specific functions of each unit, please refer to Figure 7 The relevant descriptions in the corresponding embodiments are not repeated here.
[0130] Those skilled in the art will understand that Figure 8 The electronic device 8 is merely an example and does not limit the electronic device 8 , and may include more or less components than those shown in the figure, or may combine certain components, or may include different components.
[0131] The processor 80 may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0132] The memory 81 may be an internal storage unit of the electronic device 8, such as a hard disk or memory of the electronic device 8. The memory 81 may also be an external storage device of the electronic device 8, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, or a flash card, etc., equipped on the electronic device 8. Further, the memory 81 may also include both an internal storage unit of the electronic device 8 and an external storage device. The memory 81 is used to store computer programs and other programs and data required by the electronic device. The memory 81 may also be used to temporarily store data that has been output or is to be output.
[0133] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional units as needed, that is, the internal structure of the voltage fluctuation signal generating device can be divided into different functional units to complete all or part of the functions described above. The functional units in the embodiment 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 above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0134] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0135] An embodiment of the present application provides a computer program product. When the computer program product is executed on a terminal device, the terminal device implements the steps in the above-mentioned various method embodiments.
[0136] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0137] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0138] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for generating a voltage fluctuation signal, characterized in that: Applied to a target circuit, the target circuit includes an amplitude modulation circuit and a signal output circuit; the method includes: determining a voltage fluctuation amplitude of a voltage fluctuation signal to be generated; Determining a target resistance value of a potentiometer in the amplitude modulation circuit according to the voltage fluctuation amplitude; adjusting the actual resistance value of the potentiometer to the target resistance value; The voltage fluctuation signal is outputted through the signal output circuit.
2. The method according to claim 1, characterized in that The target circuit also includes an impedance amplifier circuit, a rectifier circuit and a voltage-dividing resistor, wherein a first end of the voltage-dividing resistor is connected to a first end of a power supply, a second end of the voltage-dividing resistor, a first end of the signal output circuit and a first end of the rectifier circuit are connected in common, a second end of the signal output circuit, a second end of the power supply and a second end of the rectifier circuit are connected in common, a third end of the rectifier circuit, a first end of the amplitude modulation circuit and a first end of the impedance amplifier circuit are connected in common, a fourth end of the rectifier circuit, a second end of the amplitude modulation circuit and a second end of the impedance amplifier circuit are connected in common to ground, and a third end of the amplitude modulation circuit is connected to a third end of the impedance amplifier circuit.
3. The method according to claim 2, characterized in that The amplitude modulation circuit includes a first resistor and the potentiometer, the first end of the first resistor serves as the first end of the amplitude modulation circuit, the second end of the first resistor is connected to the first end of the potentiometer, the second end of the potentiometer serves as the second end of the amplitude modulation circuit, and the middle end of the potentiometer serves as the third end of the amplitude modulation circuit.
4. The method according to claim 3, characterized in that The impedance amplifier circuit includes a field effect tube, an operational amplifier and a second resistor, the drain of the field effect tube serves as the first end of the impedance amplifier circuit, the first end of the second resistor serves as the second end of the impedance amplifier circuit, the first input end of the operational amplifier serves as the third end of the impedance amplifier circuit, the gate of the field effect tube is connected to the output end of the operational amplifier, and the source of the field effect tube, the second input end of the operational amplifier and the second end of the second resistor are commonly connected.
5. The method according to claim 4, characterized in that The signal output circuit includes a third resistor, a first voltage output terminal and a second voltage output terminal. The first voltage output terminal serves as the first terminal of the signal output circuit, and the second voltage output terminal serves as the second terminal of the signal output circuit. The first terminal of the third resistor is connected to the first voltage output terminal, and the second terminal of the third resistor is connected to the second voltage output terminal.
6. The method according to claim 5, characterized in that Determining a target resistance value of a potentiometer in the amplitude modulation circuit according to the voltage fluctuation amplitude includes: Determining a second resistance value between a second end of the voltage dividing resistor and a second end of the power supply according to the voltage fluctuation amplitude and the first resistance value of the voltage dividing resistor; determining a fourth resistance value between a third end of the rectifier circuit and a fourth end of the rectifier circuit according to the second resistance value and a third resistance value of the third resistor; Determine an equivalent resistance value of the field effect transistor according to the fourth resistance value, the first resistance value, the total resistance value of the potentiometer, and the fifth resistance value of the second resistor; The target resistance value is determined according to the equivalent resistance value, the fifth resistance value, the sixth resistance value of the first resistor, and the total resistance value of the potentiometer.
7. The method according to any one of claims 2 to 6, characterized in that: The target circuit further includes a frequency modulation circuit, a first end of the frequency modulation circuit, a second end of the voltage divider resistor, and a first end of the signal output circuit are connected in common, and the second end of the frequency modulation circuit is connected to the first end of the rectifier circuit; the method further includes: determining a voltage fluctuation frequency of the voltage fluctuation signal; Determining a target frequency for controlling the closing of a relay in the frequency modulation circuit according to the voltage fluctuation frequency; The relay is controlled to close at the target frequency.
8. A device for generating a voltage fluctuation signal, characterized in that: Applied to a target circuit, the target circuit includes an amplitude modulation circuit and a signal output circuit; the device includes: A voltage fluctuation amplitude determination unit, used to determine the voltage fluctuation amplitude of the voltage fluctuation signal to be generated; a target resistance value determining unit, configured to determine a target resistance value of a potentiometer in the amplitude modulation circuit according to the voltage fluctuation amplitude; an adjusting unit, used for adjusting the actual resistance value of the potentiometer to the target resistance value; A voltage fluctuation signal output unit is used to output the voltage fluctuation signal through the signal output circuit.
9. A target circuit for generating a voltage fluctuation signal, characterized in that: The target circuit includes an amplitude modulation circuit and a signal output circuit; the target circuit also includes an impedance amplifier circuit, a rectifier circuit and a voltage-dividing resistor, wherein the first end of the voltage-dividing resistor is connected to the first end of a power supply, the second end of the voltage-dividing resistor, the first end of the signal output circuit and the first end of the rectifier circuit are connected in common, the second end of the signal output circuit, the second end of the power supply and the second end of the rectifier circuit are connected in common, the third end of the rectifier circuit, the first end of the amplitude modulation circuit and the first end of the impedance amplifier circuit are connected in common, the fourth end of the rectifier circuit, the second end of the amplitude modulation circuit and the second end of the impedance amplifier circuit are connected in common to ground, and the third end of the amplitude modulation circuit is connected to the third end of the impedance amplifier circuit.
10. An electronic device, characterized in that: The invention comprises the device for generating a voltage fluctuation signal as claimed in claim 8 and the target circuit as claimed in claim 9.