Novel high-frequency voltage sampling circuit
By using an external circuit in the high-frequency voltage sampling circuit to save the voltage peak and actively discharge it, combined with the operational amplifier following the input, the problem of high resource usage and poor real-time performance of the traditional sampling method is solved, and efficient and timely voltage peak reading and accuracy improvement are achieved. .
Patent Information
- Application Number
- CN202323051730.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-13
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2033-11-13
AI Technical Summary
The traditional AC voltage sampling method consumes a lot of processor resources, is costly, has poor real-time performance under high-frequency voltage conditions, and is prone to sampling deviations.
An external circuit is used to save the voltage peak, and the MCU actively reads it when needed. It adds an active discharge function before the capacitor is read, uses an operational amplifier to follow the input AC voltage, avoids capacitor charging delay and peak distortion, and turns off the transistor when not reading data.
It achieves timely reading of the peak voltage of the AC voltage, reduces the large current of the operational amplifier to ground, and improves the sampling accuracy and real-time performance.
Smart Images

Figure CN221782353U
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of AC voltage sampling, in particular to a novel high-frequency voltage sampling circuit. Background Art
[0002] Traditional AC voltage sampling usually uses the internal AD conversion circuit of the processor to frequently sample the AC power, store and read a large amount of data, and finally calculate the required voltage peak value and effective value. This method requires a large amount of processor computing resources, has high requirements for the processor, and has a high corresponding cost. When inputting extremely high-frequency AC power, the voltage rises and falls very quickly. This method cannot keep up with the real-time sampling, and the actual highest peak value cannot be sampled every time, so sampling is prone to deviation.
[0003] In view of the above technical defects, a solution is now proposed. Utility Model Content
[0004] The purpose of the utility model is that the sampling circuit uses an external circuit to save the voltage peak value, and the MCU controls the reading when it needs it. The circuit adds an active discharge function before the capacitor is read. When it is necessary to read data, the MCU actively discharges the electricity of the capacitor through the switch tube, and then waits for a cycle before reading the data of the capacitor, which can ensure that the peak voltage of the last AC voltage can be read in time; in addition, the MCU can also keep the transistor in a discharge state during the period when no data is read, and turn off the transistor when it is necessary to read data, and the peak data of the capacitor can be read after one cycle.
[0005] In order to achieve the above-mentioned purpose, the utility model adopts the following technical solutions: a new high-frequency voltage sampling circuit, including an input AC point VAC, a positive cycle sampling R2, and a negative cycle sampling R1, an inverter U4 and a storage voltage VX;
[0006] One end of the input AC point VAC is connected to one end of the positive cycle sampling R2, the other end of the input AC point VAC is connected to one end of the negative cycle sampling R1, the other end of the positive cycle sampling R2 is connected to a resistor R3, and the other end of the positive cycle sampling R2 is also connected to the positive voltage input pin of the follower U2;
[0007] The negative input terminal of the follower U2 is connected to the output pin through the resistor RX, the output terminal of the follower U2 is connected to the anode of the diode D2, the anode of the diode D2 is connected to the current limiting resistor R5, the other end of the current limiting resistor R5 is connected to the capacitor C1, the other pin of the capacitor C1 is grounded, and the cathode of the diode D1 is connected to the cathode of the diode D2;
[0008] The storage voltage VX is connected to the MCU through the follower U3, and the storage voltage VX is also connected to one end of the current limiting resistor R6, the other end of the current limiting resistor R6 is connected to the collector of the discharge transistor Q1, the emitter of the discharge transistor Q1 is connected to the ground, and the base of the discharge transistor Q1 is connected to the inverter U4 through the resistor RX;
[0009] The input end of the inverter U4 is connected to the MCU, and the input of the inverter U4 is also connected to the cathode of the positive half-cycle input voltage control diode D4, the diode D4 is connected to the positive input end of the follower U2, and the output of the inverter U4 is connected to the anode of the negative half-cycle input control diode D3, and the diode D3 is connected to the negative input end of the reverse proportional operator U1.
[0010] Furthermore, the other end of the resistor R3 is grounded, and the positive frequency sampling R2 and the resistor R3 form a voltage divider circuit.
[0011] Furthermore, the other end of the negative half-cycle sampling resistor R1 is connected to the negative input end of the reverse proportional operator U1, the negative input end of the reverse proportional operator U1 is connected to the output end of the reverse proportional operator U1 through a resistor R4, and the positive input end of the reverse proportional operator U1 is connected to the ground through a resistor RX.
[0012] Furthermore, the base of the discharge transistor Q1 is connected to the MCU via a resistor RX.
[0013] In summary, due to the adoption of the above technical solution, the beneficial effects of the utility model are:
[0014] 1. The new high-frequency voltage sampling circuit provides a sampling circuit that uses an external circuit to save the voltage peak value. The MCU controls the reading when needed. The circuit adds an active discharge function before the capacitor is read. When data needs to be read, the MCU actively discharges the capacitor through the switch tube, and then waits for a cycle before reading the capacitor data. This ensures that the peak voltage of the last AC voltage can be read in time. In addition, the MCU can also keep the transistor in a discharge state during the period when no data is read. When data needs to be read, the transistor is turned off, and the peak data of the capacitor can be read after a cycle.
[0015] 2. This new high-frequency voltage sampling circuit uses an operational amplifier to follow the input AC voltage to avoid the delay and peak distortion caused by AC directly charging the capacitor, and at the same time adopts.
[0016] 3. In this new high-frequency voltage sampling circuit, when the MCU controls the discharge, the output of the operational amplifier is turned off at the same time, so that only the capacitor is discharged, reducing the large current to ground of the operational amplifier. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 The output current frequency and phase detection circuit diagram of the utility model is shown. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0019] Example:
[0020] like Figure 1 As shown, a novel high-frequency voltage sampling circuit includes an input AC point VAC, a positive cycle sampling R2, a negative cycle sampling R1, an inverter U4 and a storage voltage VX;
[0021] One end of the input AC point VAC is connected to one end of the positive cycle sampling R2, the other end of the input AC point VAC is connected to one end of the negative cycle sampling R1, the other end of the positive cycle sampling R2 is connected to the resistor R3, the other end of the positive cycle sampling R2 is also connected to the positive voltage input pin of the follower U2, the other end of the resistor R3 is grounded, and the positive cycle sampling R2 and the resistor R3 form a voltage divider circuit;
[0022] The negative input terminal of the follower U2 is connected to the output pin through the resistor RX, and the divided voltage value on R3 is sent out. The output terminal of the follower U2 is connected to the anode of the diode D2, and the anode of the diode D2 is connected to the current limiting resistor R5. The other end of the current limiting resistor R5 is connected to the capacitor C1, forming a voltage storage circuit to store the positive half-cycle voltage VX. The other foot of the capacitor C1 is grounded, and the cathode of the diode D1 is connected to the cathode of the diode D2.
[0023] The other end of the negative half-cycle sampling resistor R1 is connected to the negative input end of the reverse proportional operator U1. The negative input end of the reverse proportional operator U1 is connected to the output end of the reverse proportional operator U1 through the resistor R4, so that the negative voltage of the negative half-cycle is converted into a positive voltage output. The positive input end of the reverse proportional operator U1 is connected to the ground through the resistor RX.
[0024] The storage voltage VX is connected to the MCU through the follower U3, and the storage voltage VX is also connected to one end of the current limiting resistor R6, the other end of the current limiting resistor R6 is connected to the collector of the discharge transistor Q1, the emitter of the discharge transistor Q1 is connected to the ground, and the base of the discharge transistor Q1 is connected to the inverter U4 through the resistor RX;
[0025] The input of the inverter U4 is connected to the MCU, and the input of the inverter U4 is also connected to the cathode of the positive half-cycle input voltage control diode D4. When the MCU output is low to discharge the capacitor, the positive half-cycle stops supplying power to C1, so that U2 is in a low-loss state; the diode D4 is connected to the positive input of the follower U2, and the output of the inverter U4 is connected to the anode of the negative half-cycle input control diode D3. The diode D3 is connected to the negative input of the reverse proportional operator U1. Similarly, the output of U4 is connected to the anode of the negative half-cycle input control diode D3. D3 is connected to the negative input of U1. When the MCU output is low and the U4 output is high to discharge the capacitor, the negative half-cycle stops supplying power to C1, so that U2 is in a low-loss state.
[0026] Furthermore, the base of the discharge transistor Q1 is connected to the MCU via the resistor RX.
[0027] The working principle is as follows: the sampling circuit provided by the utility model uses an external circuit to store the voltage peak value, and the MCU controls the reading when needed; since the external storage peak value requires a capacitor, and the capacitor usually changes slowly, especially when the voltage drops, due to the retention function of the capacitor, the sampled data will be much higher than the actual voltage value later. This circuit adds an active discharge function before the capacitor is read. When it is necessary to read data, the MCU actively discharges the capacitor through the switch tube, and then waits for a cycle before reading the capacitor data, which can ensure that the peak voltage of the last AC voltage can be read in time; in addition, the MCU can also keep the transistor in a discharged state during the period when no data is read, and turn off the transistor when data needs to be read, and the peak data of the capacitor can be read after a cycle;
[0028] This sampling circuit uses an operational amplifier to follow the input AC voltage to avoid the delay and peak distortion caused by AC directly charging the capacitor, and also adopts;
[0029] When the MCU controls the discharge, the output of the operational amplifier is turned off at the same time, so that only the capacitor is discharged, reducing the large current to ground of the operational amplifier.
[0030] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes within the technical scope disclosed by the present invention according to the technical scheme and the utility model concept of the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A novel high-frequency voltage sampling circuit, comprising an input AC point VAC, a positive frequency sampling R2, a negative frequency sampling R1, an inverter U4 and a storage voltage VX; characterized in that: One end of the input AC point VAC is connected to one end of the positive cycle sampling R2, the other end of the input AC point VAC is connected to one end of the negative cycle sampling R1, the other end of the positive cycle sampling R2 is connected to a resistor R3, and the other end of the positive cycle sampling R2 is also connected to the positive voltage input pin of the follower U2; The negative input terminal of the follower U2 is connected to the output pin through the resistor RX, the output terminal of the follower U2 is connected to the anode of the diode D2, the anode of the diode D2 is connected to the current limiting resistor R5, the other end of the current limiting resistor R5 is connected to the capacitor C1, the other pin of the capacitor C1 is grounded, and the cathode of the diode D1 is connected to the cathode of the diode D2; The storage voltage VX is connected to the MCU through the follower U3, and the storage voltage VX is also connected to one end of the current limiting resistor R6, the other end of the current limiting resistor R6 is connected to the collector of the discharge transistor Q1, the emitter of the discharge transistor Q1 is connected to the ground, and the base of the discharge transistor Q1 is connected to the inverter U4 through the resistor RX; The input end of the inverter U4 is connected to the MCU, and the input of the inverter U4 is also connected to the cathode of the positive half-cycle input voltage control diode D4, the diode D4 is connected to the positive input end of the follower U2, and the output of the inverter U4 is connected to the anode of the negative half-cycle input control diode D3, and the diode D3 is connected to the negative input end of the reverse proportional operator U1.
2. The novel high-frequency voltage sampling circuit according to claim 1 is characterized in that: The other end of the resistor R3 is grounded, and the positive frequency sampling R2 and the resistor R3 form a voltage divider circuit.
3. The novel high-frequency voltage sampling circuit according to claim 1 is characterized in that: The other end of the negative half-cycle sampling resistor R1 is connected to the negative input end of the reverse proportional operator U1, the negative input end of the reverse proportional operator U1 is connected to the output end of the reverse proportional operator U1 through the resistor R4, and the positive input end of the reverse proportional operator U1 is connected to the ground through the resistor RX.
4. The novel high-frequency voltage sampling circuit according to claim 1 is characterized in that: The base of the discharge transistor Q1 is connected to the MCU via a resistor RX.
