CN207717858U - The fundamental wave frequency measurement circuit of big distortion sinusoidal signal - Google Patents
The fundamental wave frequency measurement circuit of big distortion sinusoidal signal Download PDFInfo
- Publication number
- CN207717858U CN207717858U CN201721752709.2U CN201721752709U CN207717858U CN 207717858 U CN207717858 U CN 207717858U CN 201721752709 U CN201721752709 U CN 201721752709U CN 207717858 U CN207717858 U CN 207717858U
- Authority
- CN
- China
- Prior art keywords
- resistance
- pins
- resistor
- potentiometer
- electrolytic capacitor
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Measurement Of Resistance Or Impedance (AREA)
Abstract
本实用新型公开了一种大失真正弦信号的基波频率测量电路。本实用新型包括输入信号电平稳幅电路、基波频率提取电路和稳压电路。稳压电路为输入信号电平稳幅电路、基波频率提取电路供电。单片机通过控制信号控制电子电位器模块的输出,在经过运算放大器的缓冲后输出峰值稳定为1V的交流信号;峰值为1V的交流信号进入基波频率提取电路后分为两路,分别进入比较器IC3A和比较器IC3B进行比较和整形;在置位端S和复位端R分别输出经过整形的触发信号,最终在D触发器的输出端Q产生和输入信号的基波信号频率完全一致的脉冲信号。本实用新型避免了各次谐波对基波频率的测量的干扰,使得输出的脉冲信号频率和输入信号的基波频率一致,消除了测量误差。
The utility model discloses a fundamental wave frequency measuring circuit of a large distortion sinusoidal signal. The utility model comprises an input signal electric stable amplitude circuit, a fundamental wave frequency extraction circuit and a voltage stabilizing circuit. The voltage stabilizing circuit supplies power to the input signal level stabilization circuit and the fundamental frequency extraction circuit. The single-chip microcomputer controls the output of the electronic potentiometer module through the control signal, and outputs an AC signal with a peak value of 1V after being buffered by the operational amplifier; the AC signal with a peak value of 1V enters the fundamental frequency extraction circuit and is divided into two channels, respectively entering the comparator IC3A and comparator IC3B perform comparison and shaping; output the shaped trigger signal at the set terminal S and reset terminal R respectively, and finally generate a pulse signal at the output terminal Q of the D flip-flop that is completely consistent with the fundamental signal frequency of the input signal . The utility model avoids the interference of each harmonic wave on the measurement of the fundamental frequency, makes the frequency of the output pulse signal consistent with the fundamental frequency of the input signal, and eliminates measurement errors.
Description
技术领域technical field
本实用新型属于工业测量和控制领域,涉及一种电路,特别涉及一种大失真正弦信号的基波频率测量电路,适用于需要测量大失真正弦信号的基波频率值以及凭借该频率值进行反馈控制应用场合。The utility model belongs to the field of industrial measurement and control, relates to a circuit, in particular to a fundamental frequency measurement circuit of a large-distortion sinusoidal signal, which is suitable for measuring the fundamental frequency value of a large-distortion sinusoidal signal and performing feedback based on the frequency value control applications.
背景技术Background technique
正弦信号的频率测量一般如图2所示,是采用先设定一个0V左右的参考电压值,将正弦波信号的即时幅值与该参考电压值进行比较,输出高低电平后整形为方波脉冲信号,再通过脉冲计数或者测量脉冲宽度的方法进行频率的测量。The frequency measurement of the sine signal is generally shown in Figure 2. First, set a reference voltage value of about 0V, compare the real-time amplitude of the sine wave signal with the reference voltage value, output high and low levels, and then shape it into a square wave. Pulse signal, and then measure the frequency by pulse counting or measuring the pulse width.
由于大失真正弦信号由基波和幅值较大的各次谐波组成。波形中包含较大的谐波成分。正弦信号的波形曲线不在是单纯的上升或者下降。如果还是采用常规的频率测量方法,将会产生误差,从而导致频率测量不准。如图2中的B和C的失真信号,则会出现明显的测量误差。Due to the large distortion, the sinusoidal signal is composed of the fundamental wave and various harmonics with large amplitudes. The waveform contains large harmonic components. The waveform curve of the sinusoidal signal is no longer a simple rise or fall. If the conventional frequency measurement method is still used, errors will occur, resulting in inaccurate frequency measurement. As shown in the distorted signals of B and C in Figure 2, there will be obvious measurement errors.
为了提高频率测量的准确率,通常采用改变参考电压值的办法来解决,如图3和图4所示。由图3和图4中可以看出,通过改变参考电平可以改善部分大失真正弦信号的基波频率的测量误差,但是对如图3和图4的C所示的大失真非同步的信号的基波频率测量还是存在误差。In order to improve the accuracy of frequency measurement, it is usually solved by changing the reference voltage value, as shown in Figure 3 and Figure 4. It can be seen from Figure 3 and Figure 4 that the measurement error of the fundamental frequency of some large-distortion sinusoidal signals can be improved by changing the reference level, but for the large-distortion asynchronous signal shown in C of Figure 3 and Figure 4 There is still an error in the fundamental frequency measurement.
发明内容Contents of the invention
本实用新型的目的是针对现有技术存在的不足,提出一种大失真正弦信号的基波频率测量电路。The purpose of the utility model is to propose a fundamental wave frequency measurement circuit of a large distortion sinusoidal signal aiming at the deficiencies in the prior art.
本实用新型解决其技术问题所采用的技术方案如下:The technical solution adopted by the utility model to solve its technical problems is as follows:
大失真正弦信号的基波频率测量电路,包括输入信号电平稳幅电路、基波频率提取电路和稳压电路。The fundamental frequency measuring circuit of the large distorted sinusoidal signal includes an input signal electric amplitude stabilization circuit, a fundamental frequency extraction circuit and a voltage stabilizing circuit.
输入信号电平稳幅电路包括电子电位器模块IC1、运算放大器IC2、电位器W2、电阻R1、电阻R2、电阻R3、电阻R59、电阻R61、电阻R79和电解电容C2;电子电位器模块IC1的3、4、5号引脚分别与电阻R1、电阻R2、电阻R3的一端相连,电阻R1、电阻R2、电阻R3的另一端分别与外接单片机的I/O输出引脚相连接,单片机的I/O输出引脚输出控制信号CS5、SDI、CLK控制电子电位器模块IC1的输出;电子电位器模块IC1的2号引脚接地,1、6号引脚分别外接2.5V电源和5V电源;电子电位器模块IC1的7号引脚与电阻R79的一端相连接,电阻R79的另一端同时与电阻R59的一端、运算放大器IC2的2号引脚相连,电阻R59的另一端与电位器W2的滑动端相连接,电位器W2的电阻端同时与运算放大器IC2的输出端VIN1、电解电容C2的正极相连接,运算放大器IC2的3号引脚与电阻R61的一端相连接,电阻R61的另一端外接2.5V电源;运算放大器IC2的4号引脚接地,运算放大器IC2的8号引脚外接5V电源;运算放大器IC2的输出端VIN1与外接单片机的I/O输入引脚AD-OUT相连接。The input signal level stabilization circuit includes electronic potentiometer module IC1, operational amplifier IC2, potentiometer W2, resistor R1, resistor R2, resistor R3, resistor R59, resistor R61, resistor R79 and electrolytic capacitor C2; electronic potentiometer module IC1 3 Pins 1, 4, and 5 are respectively connected to one end of resistor R1, resistor R2, and resistor R3, and the other ends of resistor R1, resistor R2, and resistor R3 are respectively connected to the I/O output pins of the external microcontroller, and the I/O of the microcontroller O output pins output control signals CS5, SDI, CLK to control the output of electronic potentiometer module IC1; pin 2 of electronic potentiometer module IC1 is grounded, and pins 1 and 6 are respectively connected to 2.5V power supply and 5V power supply; electronic potentiometer Pin 7 of the module IC1 is connected to one end of the resistor R79, and the other end of the resistor R79 is connected to one end of the resistor R59 and pin 2 of the operational amplifier IC2 at the same time, and the other end of the resistor R59 is connected to the sliding end of the potentiometer W2 The resistance terminal of the potentiometer W2 is connected with the output terminal VIN1 of the operational amplifier IC2 and the positive electrode of the electrolytic capacitor C2 at the same time, the No. 3 pin of the operational amplifier IC2 is connected with one end of the resistor R61, and the other end of the resistor R61 is externally connected to 2.5 V power supply; the No. 4 pin of the operational amplifier IC2 is grounded, and the No. 8 pin of the operational amplifier IC2 is connected to an external 5V power supply; the output terminal VIN1 of the operational amplifier IC2 is connected with the I/O input pin AD-OUT of the external microcontroller.
基波频率提取电路包括D触发器IC4、比较器IC3、接插件XJ13、电阻R57、电阻R60、电阻R62、电阻R63、电阻R73、电阻R82、电阻R88、电阻R89、电阻R90、电阻R93、电阻R94、电阻R95、电阻R96、电阻R100、电阻R103、瓷片电容C90、瓷片电容C93、瓷片电容C94、瓷片电容C107、电解电容C97、电解电容C98、电位器W4和电位器W8。D触发器IC4的1号引脚与电阻R73的一端连接,电阻R73的另一端同时与瓷片电容C107的一端、接插件XJ13的1号引脚相连接,接插件XJ13的2号引脚与瓷片电容C107的另一端相连并接地;D触发器IC4的7号引脚接地,D触发器IC4的14号引脚外接5V电源;D触发器IC4的4号引脚与电阻R60的一端相连接,电阻R60的另一端同时与电阻R62的一端、电阻R89的一端、比较器IC3的7号引脚相连接;比较器IC3的5号引脚与瓷片电容C90的一端、电阻R89的另一端、电阻R96的一端相连接;比较器IC3的6号引脚与电阻R94的一端相连接;瓷片电容C90的另一端与电解电容C97的负极、电阻R82的一端相连接同时接地;电阻R96的另一端与电解电容C97的正极、电位器W4的滑动端相连接,电位器W4的两个电阻端分别与电阻R82的另一端、电阻R103的一端相连接;电阻R94的另一端同时与电阻R95的一端、电解电容C2的负极相连接;D触发器IC4的6号引脚与电阻R57的一端相连接,电阻R57的另一端同时与电阻R63的一端、电阻R90的一端、比较器IC3的1号引脚相连接;比较器IC3的8号引脚同时与电阻R63的另一端、电阻R62的另一端、瓷片电容C93的一端相连接且外接5V电源,瓷片电容C93的另一端接地;比较器IC3的3号引脚同时与电阻R90的另一端、电阻R95的另一端相连接;比较器IC3的2号引脚同时与电阻R100的一端、瓷片电容C94的一端相连接,电阻R100的另一端同时与电位器W8的滑动端、电解电容C98的正极相连接;电位器W8的两个电阻端分别与电阻R88的一端、电阻R93的一端相连接;电阻R88的另一端和电阻R103的另一端均外接5V电源;比较器IC3的4号引脚同时与瓷片电容C94的另一端、电解电容C98的负极、电阻R93的另一端相连接且接地。The fundamental frequency extraction circuit includes D flip-flop IC4, comparator IC3, connector XJ13, resistor R57, resistor R60, resistor R62, resistor R63, resistor R73, resistor R82, resistor R88, resistor R89, resistor R90, resistor R93, resistor R94, resistor R95, resistor R96, resistor R100, resistor R103, ceramic capacitor C90, ceramic capacitor C93, ceramic capacitor C94, ceramic capacitor C107, electrolytic capacitor C97, electrolytic capacitor C98, potentiometer W4 and potentiometer W8. Pin 1 of D flip-flop IC4 is connected to one end of resistor R73, and the other end of resistor R73 is connected to one end of ceramic capacitor C107 and pin 1 of connector XJ13, and pin 2 of connector XJ13 is connected to The other end of ceramic capacitor C107 is connected and grounded; pin 7 of D flip-flop IC4 is grounded, pin 14 of D flip-flop IC4 is connected to an external 5V power supply; pin 4 of D flip-flop IC4 is connected to one end of resistor R60 Connect, the other end of resistor R60 is connected with one end of resistor R62, one end of resistor R89, and No. 7 pin of comparator IC3; No. 5 pin of comparator IC3 is connected with one end of ceramic capacitor C90, the other One end is connected to one end of resistor R96; No. 6 pin of comparator IC3 is connected to one end of resistor R94; the other end of ceramic capacitor C90 is connected to the negative pole of electrolytic capacitor C97 and one end of resistor R82 is connected to ground at the same time; resistor R96 The other end of the electrolytic capacitor C97 is connected to the positive pole of the electrolytic capacitor C97 and the sliding end of the potentiometer W4, and the two resistance ends of the potentiometer W4 are respectively connected to the other end of the resistor R82 and one end of the resistor R103; the other end of the resistor R94 is simultaneously connected to the resistor One end of R95 is connected to the negative electrode of electrolytic capacitor C2; the No. 6 pin of D flip-flop IC4 is connected to one end of resistor R57, and the other end of resistor R57 is connected to one end of resistor R63, one end of resistor R90, and one end of comparator IC3 Pin 1 is connected; pin 8 of comparator IC3 is connected with the other end of resistor R63, the other end of resistor R62, and one end of ceramic capacitor C93 at the same time, and an external 5V power supply is connected, and the other end of ceramic capacitor C93 is grounded ; The No. 3 pin of the comparator IC3 is connected with the other end of the resistor R90 and the other end of the resistor R95 at the same time; the No. 2 pin of the comparator IC3 is connected with one end of the resistor R100 and one end of the ceramic capacitor C94 at the same time, and the resistor The other end of R100 is connected with the sliding end of potentiometer W8 and the positive pole of electrolytic capacitor C98; the two resistance ends of potentiometer W8 are respectively connected with one end of resistor R88 and one end of resistor R93; the other end of resistor R88 is connected with the resistor The other end of R103 is connected to an external 5V power supply; the No. 4 pin of comparator IC3 is connected with the other end of ceramic capacitor C94, the negative electrode of electrolytic capacitor C98, and the other end of resistor R93, and is grounded.
稳压电路包括稳压模块IC11、电阻R36、电阻R39、电阻R43、电阻R44、瓷片电容C15、瓷片电容C16、瓷片电容C17、电解电容C22、电解电容C27、电解电容C28、电位器W3。稳压模块IC11的1号引脚同时与电阻R43的一端、电阻R44的一端相连接,电阻R43的另一端同时与瓷片电容C16的一端、电解电容C27的负极、电解电容C28的负极、瓷片电容C17的一端相连接并接地;稳压模块IC11的3号引脚同时与瓷片电容C16的另一端、电解电容C27的正极、电源输入端VIN相连接;稳压模块IC11的2号引脚同时与电阻R44的一端、电解电容C28的正极、瓷片电容C17的另一端相连且连接5V电源输出;电位器W3的两个电阻端分别与电阻R39的一端、电阻R36的一端相连接;电阻R39的另一端外接5V电源,电阻R36的另一端同时与电解电容C22的负极、瓷片电容C15的一端相连接且接地;电位器W3的滑动端同时与电解电容C22的正极、瓷片电容C15的另一端相连接且外接2.5V电源输出。The voltage stabilizing circuit includes voltage stabilizing module IC11, resistor R36, resistor R39, resistor R43, resistor R44, ceramic capacitor C15, ceramic capacitor C16, ceramic capacitor C17, electrolytic capacitor C22, electrolytic capacitor C27, electrolytic capacitor C28, potentiometer W3. Pin 1 of voltage stabilizing module IC11 is connected with one end of resistor R43 and one end of resistor R44 at the same time, and the other end of resistor R43 is connected with one end of ceramic capacitor C16, negative pole of electrolytic capacitor C27, negative pole of electrolytic capacitor C28, ceramic One end of chip capacitor C17 is connected and grounded; No. 3 pin of voltage stabilizing module IC11 is connected with the other end of ceramic chip capacitor C16, positive pole of electrolytic capacitor C27, and power input terminal VIN at the same time; No. 2 pin of voltage stabilizing module IC11 The pin is connected to one end of the resistor R44, the positive pole of the electrolytic capacitor C28, and the other end of the ceramic capacitor C17 and connected to the 5V power supply output; the two resistor ends of the potentiometer W3 are respectively connected to one end of the resistor R39 and one end of the resistor R36; The other end of the resistor R39 is connected to an external 5V power supply, and the other end of the resistor R36 is simultaneously connected to the negative pole of the electrolytic capacitor C22 and one end of the ceramic capacitor C15 and grounded; the sliding end of the potentiometer W3 is simultaneously connected to the positive pole of the electrolytic capacitor C22 and the ceramic capacitor The other end of C15 is connected to an external 2.5V power supply.
稳压电路为输入信号电平稳幅电路、基波频率提取电路提供所需的5V工作电压和2.5V的基准电压。The voltage stabilizing circuit provides the required 5V working voltage and 2.5V reference voltage for the input signal level stabilization circuit and the fundamental frequency extraction circuit.
本实用新型工作过程如下:The utility model work process is as follows:
外接单片机通过控制信号CS5、SDI、CLK控制电子电位器模块IC1的输出信号的幅值,输入的大失真正弦信号VIN2在经过运算放大器IC2的缓冲后输出峰值稳定为1V的大失真正弦信号。峰值稳定为1V的交流信号VIN1通过外接单片机的输入引脚AD-OUT提供幅值反馈信号。峰值为1V的交流信号进入基波频率提取电路后分为两路,分别进入比较器IC3A和比较器IC3B进行比较和整形。比较电路的参考电平由电位器W4和W8分别设置为1V的+30%和-30%左右,约为+0.3V和-0.3V。由于整个电路采用单电源5V供电,所以基准电压不是通常的0V而是2.5V,因此两个比较参考电压分别为2.5+0.3=2.8V和2.5-0.3=2.2V。在D触发器的置位端S(连接比较器IC3A的1号引脚)和D触发器的复位端R(连接比较器IC3B的7号引脚)分别输入经过整形的触发信号,如图5的a和b所示。最终在D触发器的输出端Q产生和输入信号的基波信号频率完全一致的脉冲信号,如图5的d所示。The external microcontroller controls the amplitude of the output signal of the electronic potentiometer module IC1 through the control signals CS5, SDI, and CLK. The input large-distortion sinusoidal signal VIN2 is buffered by the operational amplifier IC2 and outputs a large-distortion sinusoidal signal with a stable peak value of 1V. The AC signal VIN1 with a stable peak value of 1V provides an amplitude feedback signal through the input pin AD-OUT of an external microcontroller. The AC signal with a peak value of 1V enters the fundamental frequency extraction circuit and is divided into two paths, which respectively enter the comparator IC3A and comparator IC3B for comparison and shaping. The reference level of the comparison circuit is set to about +30% and -30% of 1V by potentiometers W4 and W8, about +0.3V and -0.3V. Since the whole circuit is powered by a single power supply of 5V, the reference voltage is not the usual 0V but 2.5V, so the two comparison reference voltages are 2.5+0.3=2.8V and 2.5-0.3=2.2V respectively. Input the shaped trigger signal respectively at the set terminal S of the D flip-flop (connected to pin 1 of comparator IC3A) and reset terminal R of the D flip-flop (connected to pin 7 of comparator IC3B), as shown in Figure 5 shown in a and b. Finally, at the output terminal Q of the D flip-flop, a pulse signal with the same frequency as the fundamental signal of the input signal is generated, as shown in d of FIG. 5 .
本实用新型有益效果如下:The beneficial effects of the utility model are as follows:
本实用新型可以在大失真信号情况下,依然可以将含有谐波信号的正弦波基波频率信号从杂波中分离出来。形成和基波频率相同的方波脉冲信号。从而方便准确地测量出大失真正弦信号的基波频率。The utility model can still separate the sine wave fundamental frequency signal containing the harmonic signal from the clutter under the condition of a large distortion signal. Form a square wave pulse signal with the same frequency as the fundamental wave. Therefore, the fundamental frequency of the large distorted sinusoidal signal can be measured conveniently and accurately.
本实用新型避免了各次谐波对基波频率的测量的干扰,使得输出的脉冲信号的频率和输入信号的基波频率完全一致,彻底消除了测量误差。The utility model avoids the interference of each harmonic wave on the measurement of the fundamental frequency, makes the frequency of the output pulse signal completely consistent with the fundamental frequency of the input signal, and completely eliminates the measurement error.
附图说明Description of drawings
图1为本实用新型的电路图Fig. 1 is the circuit diagram of the utility model
图2为正弦信号的频率测量图。Figure 2 is a frequency measurement diagram of a sinusoidal signal.
图3采用波形峰值的60%为参考电平的示意图。Fig. 3 is a schematic diagram of using 60% of the peak value of the waveform as the reference level.
图4采用波形峰值的30%为参考电平的示意图。FIG. 4 is a schematic diagram of using 30% of the peak value of the waveform as the reference level.
图5采用2个参考电压值的波形合成示意图。Figure 5 is a schematic diagram of waveform synthesis using two reference voltage values.
具体实施方式Detailed ways
下面结合附图对本实用新型作进一步说明。Below in conjunction with accompanying drawing, the utility model is further described.
如图1所示,大失真正弦信号的基波频率测量电路,包括输入信号电平稳幅电路、基波频率提取电路和稳压电路。As shown in Figure 1, the fundamental frequency measurement circuit of a large distorted sine signal includes an input signal level stabilization circuit, a fundamental frequency extraction circuit and a voltage stabilization circuit.
输入信号电平稳幅电路包括电子电位器模块IC1、运算放大器IC2、电位器W2、电阻R1、电阻R2、电阻R3、电阻R59、电阻R61、电阻R79和电解电容C2;电子电位器模块IC1的3、4、5号引脚分别与电阻R1、电阻R2、电阻R3的一端相连,电阻R1、电阻R2、电阻R3的另一端分别与外接单片机的I/O输出引脚相连接,单片机的I/O输出引脚输出控制信号CS5、SDI、CLK控制电子电位器模块IC1的输出;电子电位器模块IC1的8号引脚连接大失真正弦信号的输入端VIN2;电子电位器模块IC1的2号引脚接地,1、6号引脚分别外接2.5V电源和5V电源;电子电位器模块IC1的7号引脚与电阻R79的一端相连接,电阻R79的另一端同时与电阻R59的一端、运算放大器IC2的2号引脚相连,电阻R59的另一端与电位器W2的滑动端相连接,电位器W2的电阻端同时与运算放大器IC2的输出端VIN1、电解电容C2的正极相连接,运算放大器IC2的3号引脚与电阻R61的一端相连接,电阻R61的另一端外接2.5V电源;运算放大器IC2的4号引脚接地,运算放大器IC2的8号引脚外接5V电源;运算放大器IC2的输出端VIN1与外接单片机的I/O输出引脚AD-OUT相连接。The input signal level stabilization circuit includes electronic potentiometer module IC1, operational amplifier IC2, potentiometer W2, resistor R1, resistor R2, resistor R3, resistor R59, resistor R61, resistor R79 and electrolytic capacitor C2; electronic potentiometer module IC1 3 Pins 1, 4, and 5 are respectively connected to one end of resistor R1, resistor R2, and resistor R3, and the other ends of resistor R1, resistor R2, and resistor R3 are respectively connected to the I/O output pins of the external microcontroller, and the I/O of the microcontroller O output pins output control signals CS5, SDI, CLK to control the output of the electronic potentiometer module IC1; the 8th pin of the electronic potentiometer module IC1 is connected to the input terminal VIN2 of the large distortion sine signal; Pin 1 and pin 6 are connected to 2.5V power supply and 5V power supply respectively; pin 7 of electronic potentiometer module IC1 is connected to one end of resistor R79, and the other end of resistor R79 is connected to one end of resistor R59 and the operational amplifier The No. 2 pin of IC2 is connected, the other end of the resistor R59 is connected with the sliding end of the potentiometer W2, the resistance end of the potentiometer W2 is connected with the output terminal VIN1 of the operational amplifier IC2, and the positive electrode of the electrolytic capacitor C2, and the operational amplifier IC2 The No. 3 pin of the resistor R61 is connected to one end of the resistor R61, and the other end of the resistor R61 is connected to a 2.5V power supply; the No. 4 pin of the operational amplifier IC2 is grounded, and the No. 8 pin of the operational amplifier IC2 is connected to an external 5V power supply; the output of the operational amplifier IC2 The terminal VIN1 is connected with the I/O output pin AD-OUT of the external microcontroller.
基波频率提取电路包括D触发器IC4、比较器IC3、接插件XJ13、电阻R57、电阻R60、电阻R62、电阻R63、电阻R73、电阻R82、电阻R88、电阻R89、电阻R90、电阻R93、电阻R94、电阻R95、电阻R96、电阻R100、电阻R103、瓷片电容C90、瓷片电容C93、瓷片电容C94、瓷片电容C107、电解电容C97、电解电容C98、电位器W4和电位器W8。D触发器IC4的1号引脚与电阻R73的一端连接,电阻R73的另一端同时与瓷片电容C107的一端、接插件XJ13的1号引脚相连接,接插件XJ13的2号引脚与瓷片电容C107的另一端相连并接地;D触发器IC4的7号引脚接地,D触发器IC4的14号引脚外接5V电源;D触发器IC4的4号引脚与电阻R60的一端相连接,电阻R60的另一端同时与电阻R62的一端、电阻R89的一端、比较器IC3的7号引脚相连接;比较器IC3的5号引脚与瓷片电容C90的一端、电阻R89的另一端、电阻R96的一端相连接;比较器IC3的6号引脚与电阻R94的一端相连接;瓷片电容C90的另一端与电解电容C97的负极、电阻R82的一端相连接同时接地;电阻R96的另一端与电解电容C97的正极、电位器W4的滑动端相连接,电位器W4的两个电阻端分别与电阻R82的另一端、电阻R103的一端相连接;电阻R94的另一端同时与电阻R95的一端、电解电容C2的负极相连接;D触发器IC4的6号引脚与电阻R57的一端相连接,电阻R57的另一端同时与电阻R63的一端、电阻R90的一端、比较器IC3的1号引脚相连接;比较器IC3的8号引脚同时与电阻R63的另一端、电阻R62的另一端、瓷片电容C93的一端相连接且外接5V电源,瓷片电容C93的另一端接地;比较器IC3的3号引脚同时与电阻R90的另一端、电阻R95的另一端相连接;比较器IC3的2号引脚同时与电阻R100的一端、瓷片电容C94的一端相连接,电阻R100的另一端同时与电位器W8的滑动端、电解电容C98的正极相连接;电位器W8的两个电阻端分别与电阻R88的一端、电阻R93的一端相连接;电阻R88的另一端和电阻R103的另一端均外接5V电源;比较器IC3的4号引脚同时与瓷片电容C94的另一端、电解电容C98的负极、电阻R93的另一端相连接且接地。The fundamental frequency extraction circuit includes D flip-flop IC4, comparator IC3, connector XJ13, resistor R57, resistor R60, resistor R62, resistor R63, resistor R73, resistor R82, resistor R88, resistor R89, resistor R90, resistor R93, resistor R94, resistor R95, resistor R96, resistor R100, resistor R103, ceramic capacitor C90, ceramic capacitor C93, ceramic capacitor C94, ceramic capacitor C107, electrolytic capacitor C97, electrolytic capacitor C98, potentiometer W4 and potentiometer W8. Pin 1 of D flip-flop IC4 is connected to one end of resistor R73, and the other end of resistor R73 is connected to one end of ceramic capacitor C107 and pin 1 of connector XJ13, and pin 2 of connector XJ13 is connected to The other end of ceramic capacitor C107 is connected and grounded; pin 7 of D flip-flop IC4 is grounded, pin 14 of D flip-flop IC4 is connected to an external 5V power supply; pin 4 of D flip-flop IC4 is connected to one end of resistor R60 Connect, the other end of resistor R60 is connected with one end of resistor R62, one end of resistor R89, and No. 7 pin of comparator IC3; No. 5 pin of comparator IC3 is connected with one end of ceramic capacitor C90, the other One end is connected to one end of resistor R96; No. 6 pin of comparator IC3 is connected to one end of resistor R94; the other end of ceramic capacitor C90 is connected to the negative pole of electrolytic capacitor C97 and one end of resistor R82 is connected to ground at the same time; resistor R96 The other end of the electrolytic capacitor C97 is connected to the positive pole of the electrolytic capacitor C97 and the sliding end of the potentiometer W4, and the two resistance ends of the potentiometer W4 are respectively connected to the other end of the resistor R82 and one end of the resistor R103; the other end of the resistor R94 is simultaneously connected to the resistor One end of R95 is connected to the negative electrode of electrolytic capacitor C2; the No. 6 pin of D flip-flop IC4 is connected to one end of resistor R57, and the other end of resistor R57 is connected to one end of resistor R63, one end of resistor R90, and one end of comparator IC3 Pin 1 is connected; pin 8 of comparator IC3 is connected with the other end of resistor R63, the other end of resistor R62, and one end of ceramic capacitor C93 at the same time, and an external 5V power supply is connected, and the other end of ceramic capacitor C93 is grounded ; The No. 3 pin of the comparator IC3 is connected with the other end of the resistor R90 and the other end of the resistor R95 at the same time; the No. 2 pin of the comparator IC3 is connected with one end of the resistor R100 and one end of the ceramic capacitor C94 at the same time, and the resistor The other end of R100 is connected with the sliding end of potentiometer W8 and the positive pole of electrolytic capacitor C98; the two resistance ends of potentiometer W8 are respectively connected with one end of resistor R88 and one end of resistor R93; the other end of resistor R88 is connected with the resistor The other end of R103 is connected to an external 5V power supply; the No. 4 pin of comparator IC3 is connected with the other end of ceramic capacitor C94, the negative electrode of electrolytic capacitor C98, and the other end of resistor R93, and is grounded.
稳压电路包括稳压模块IC11、电阻R36、电阻R39、电阻R43、电阻R44、瓷片电容C15、瓷片电容C16、瓷片电容C17、电解电容C22、电解电容C27、电解电容C28、电位器W3。稳压模块IC11的1号引脚同时与电阻R43的一端、电阻R44的一端相连接,电阻R43的另一端同时与瓷片电容C16的一端、电解电容C27的负极、电解电容C28的负极、瓷片电容C17的一端相连接并接地;稳压模块IC11的3号引脚同时与瓷片电容C16的另一端、电解电容C27的正极、电源输入端VIN相连接;稳压模块IC11的2号引脚同时与电阻R44的一端、电解电容C28的正极、瓷片电容C17的另一端相连且连接5V电源输出;电位器W3的两个电阻端分别与电阻R39的一端、电阻R36的一端相连接;电阻R39的另一端外接5V电源,电阻R36的另一端同时与电解电容C22的负极、瓷片电容C15的一端相连接且接地;电位器W3的滑动端同时与电解电容C22的正极、瓷片电容C15的另一端相连接且外接2.5V电源输出。The voltage stabilizing circuit includes voltage stabilizing module IC11, resistor R36, resistor R39, resistor R43, resistor R44, ceramic capacitor C15, ceramic capacitor C16, ceramic capacitor C17, electrolytic capacitor C22, electrolytic capacitor C27, electrolytic capacitor C28, potentiometer W3. Pin 1 of voltage stabilizing module IC11 is connected with one end of resistor R43 and one end of resistor R44 at the same time, and the other end of resistor R43 is connected with one end of ceramic capacitor C16, negative pole of electrolytic capacitor C27, negative pole of electrolytic capacitor C28, ceramic One end of chip capacitor C17 is connected and grounded; No. 3 pin of voltage stabilizing module IC11 is connected with the other end of ceramic chip capacitor C16, positive pole of electrolytic capacitor C27, and power input terminal VIN at the same time; No. 2 pin of voltage stabilizing module IC11 The pin is connected to one end of the resistor R44, the positive pole of the electrolytic capacitor C28, and the other end of the ceramic capacitor C17 and connected to the 5V power supply output; the two resistor ends of the potentiometer W3 are respectively connected to one end of the resistor R39 and one end of the resistor R36; The other end of the resistor R39 is connected to an external 5V power supply, and the other end of the resistor R36 is simultaneously connected to the negative pole of the electrolytic capacitor C22 and one end of the ceramic capacitor C15 and grounded; the sliding end of the potentiometer W3 is simultaneously connected to the positive pole of the electrolytic capacitor C22 and the ceramic capacitor The other end of C15 is connected to an external 2.5V power supply.
稳压电路为输入信号电平稳幅电路、基波频率提取电路提供所需的5V工作电压和2.5V的基准电压。The voltage stabilizing circuit provides the required 5V working voltage and 2.5V reference voltage for the input signal level stabilization circuit and the fundamental frequency extraction circuit.
本实用新型电位器W2、W3、W4、W8的型号为3362,且W2为5K,W3为500K,W4、W8为2K;接插件型号为SIP2-M-1;运算放大器IC2的型号为DIP8TL082;电子电位器模块IC1的型号为SO-8AD8400;稳压模块IC11型号为SOT-223BW1117-3.3V;比较器IC3型号为DIP8LM393。The model of the utility model potentiometer W2, W3, W4, W8 is 3362, and W2 is 5K, W3 is 500K, W4, W8 are 2K; the connector model is SIP2-M-1; the model of operational amplifier IC2 is DIP8TL082; The model of electronic potentiometer module IC1 is SO-8AD8400; the model of voltage regulator module IC11 is SOT-223BW1117-3.3V; the model of comparator IC3 is DIP8LM393.
本实用新型工作过程如下:The utility model work process is as follows:
外接单片机通过控制信号CS5、SDI、CLK控制电子电位器模块IC1的输出信号的幅值,输入的大失真正弦信号VIN2在经过运算放大器IC2的缓冲后输出峰值稳定为1V的大失真正弦信号。峰值稳定为1V的交流信号VIN1通过外接单片机的输入引脚AD-OUT提供幅值反馈信号。峰值为1V的交流信号进入基波频率提取电路后分为两路,分别进入比较器IC3A和比较器IC3B进行比较和整形。比较电路的参考电平由电位器W4和W8分别设置为1V的+30%和-30%左右,约为+0.3V和-0.3V。由于整个电路采用单电源5V供电,所以基准电压不是通常的0V而是2.5V,使用两个比较参考电压分别为2.5+0.3=2.8V和2.5-0.3=2.2V。在D触发器的置位端S(连接比较器IC3A的1号引脚)和D触发器的复位端R(连接比较器IC3B的7号引脚)分别输入经过整形的触发信号,如图5的a和b所示。只有在置位信号和复位信号交替出现的情况下D触发器才会出现电平变化,电压幅值在2.2V和2.8V之间的干扰信号被D触发器自动忽略,如图5的c所示,最终在D触发器的输出端Q产生和输入信号的基波信号频率完全一致的脉冲信号,如图5的d所示。The external microcontroller controls the amplitude of the output signal of the electronic potentiometer module IC1 through the control signals CS5, SDI, and CLK. The input large-distortion sinusoidal signal VIN2 is buffered by the operational amplifier IC2 and outputs a large-distortion sinusoidal signal with a stable peak value of 1V. The AC signal VIN1 with a stable peak value of 1V provides an amplitude feedback signal through the input pin AD-OUT of an external microcontroller. The AC signal with a peak value of 1V enters the fundamental frequency extraction circuit and is divided into two paths, which respectively enter the comparator IC3A and comparator IC3B for comparison and shaping. The reference level of the comparison circuit is set to about +30% and -30% of 1V by potentiometers W4 and W8, about +0.3V and -0.3V. Since the entire circuit is powered by a single power supply of 5V, the reference voltage is not the usual 0V but 2.5V, and two comparison reference voltages are 2.5+0.3=2.8V and 2.5-0.3=2.2V. Input the shaped trigger signal respectively at the set terminal S of the D flip-flop (connected to pin 1 of comparator IC3A) and reset terminal R of the D flip-flop (connected to pin 7 of comparator IC3B), as shown in Figure 5 shown in a and b. Only when the set signal and reset signal appear alternately, the D flip-flop will have a level change, and the interference signal with a voltage amplitude between 2.2V and 2.8V is automatically ignored by the D flip-flop, as shown in c of Figure 5 Finally, at the output terminal Q of the D flip-flop, a pulse signal with the same frequency as the fundamental signal of the input signal is generated, as shown in d of Figure 5.
如图5所示在电路中设置了2个参考电压值,分别是输入信号电压峰值的+30%和-30%,输出两路不同的比较信号,这两路信号分别驱动一个D触发器的置位端S和复位端R。在一次触发置位端S后,只有没有再次复位,无论接下来触发几次置位端S,都会出现一次置位的情况。同理,在一次触发复位端R后,只有没有再次置位,无论接下来触发几次复位端R,都只会出现一次复位的情况。结合图5的情况,采用2个参考电压值的基波频率提取电路只有输入信号在复位后第一次从低于+30%峰值的幅度直到高于+30%峰值的幅度才会引发一次置位且此后在信号不低于-30%峰值的幅度而引发复位前无论输入信号是低于+30%峰值的幅度还是高于+30%峰值的幅度都不会再次产生置位;只有输入信号在置位后第一次从高于-30%峰值的幅度直到低于-30%峰值的幅度才会引发一次复位且此后在信号不高于+30%峰值的幅度而引发置位前无论输入信号是低于-30%峰值的幅度还是高于-30%峰值的幅度都不会再次产生复位。也就是说只有在置位信号和复位信号交替出现的情况下D触发器才会出现电平变化,电压幅值在-30%峰值左右的交替变化和在+30%峰值左右的交替变化而引起的触发信号被D触发器自动忽略,如图5的c所示,从而避免了各次谐波对基波频率的测量的干扰,使得输出的脉冲信号的频率和输入信号的基波频率完全一致,彻底消除了测量误差。As shown in Figure 5, two reference voltage values are set in the circuit, which are +30% and -30% of the peak value of the input signal voltage, and two different comparison signals are output. These two signals drive a D flip-flop respectively. Set terminal S and reset terminal R. After the set terminal S is triggered once, as long as there is no reset again, no matter how many times the set terminal S is triggered next, there will be a set situation. In the same way, after triggering the reset terminal R once, as long as it is not set again, no matter how many times the reset terminal R is triggered next, there will only be one reset. Combined with the situation in Figure 5, the fundamental frequency extraction circuit using two reference voltage values will trigger a reset only if the input signal is from the amplitude below +30% peak value to the amplitude above +30% peak value for the first time after reset. bit and thereafter will not be set again regardless of whether the input signal is lower than +30% peak amplitude or higher than +30% peak amplitude until the signal is not lower than -30% peak amplitude to cause a reset; only the input signal A reset will be triggered for the first time after being set from an amplitude above -30% peak until an amplitude below -30% peak and thereafter regardless of the input before the signal is not higher than +30% peak amplitude. Whether the signal's amplitude is below -30% peak or above -30% peak will not generate a reset again. That is to say, only when the set signal and reset signal appear alternately, the D flip-flop will have a level change, and the voltage amplitude is caused by the alternating change of the voltage amplitude around -30% peak value and the alternate change around +30% peak value. The trigger signal is automatically ignored by the D flip-flop, as shown in c of Figure 5, thereby avoiding the interference of each harmonic on the measurement of the fundamental frequency, so that the frequency of the output pulse signal is exactly the same as the fundamental frequency of the input signal , completely eliminating measurement errors.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201721752709.2U CN207717858U (en) | 2017-12-15 | 2017-12-15 | The fundamental wave frequency measurement circuit of big distortion sinusoidal signal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201721752709.2U CN207717858U (en) | 2017-12-15 | 2017-12-15 | The fundamental wave frequency measurement circuit of big distortion sinusoidal signal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN207717858U true CN207717858U (en) | 2018-08-10 |
Family
ID=63055985
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201721752709.2U Expired - Fee Related CN207717858U (en) | 2017-12-15 | 2017-12-15 | The fundamental wave frequency measurement circuit of big distortion sinusoidal signal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN207717858U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107894532A (en) * | 2017-12-15 | 2018-04-10 | 浙江省电子技术研究所有限公司 | A kind of fundamental wave frequency measurement circuit of big distortion sinusoidal signal |
-
2017
- 2017-12-15 CN CN201721752709.2U patent/CN207717858U/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107894532A (en) * | 2017-12-15 | 2018-04-10 | 浙江省电子技术研究所有限公司 | A kind of fundamental wave frequency measurement circuit of big distortion sinusoidal signal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102611120B (en) | Power factor monitoring and compensating system | |
CN106324538A (en) | Partial discharge automatic calibration system | |
CN105842537B (en) | Method for measuring phase difference based on integrated phase detection discriminator and circuit | |
CN207717858U (en) | The fundamental wave frequency measurement circuit of big distortion sinusoidal signal | |
CN102539912B (en) | Mains frequency detection method for load monitor | |
CN104391176A (en) | Software and hardware frequency measurement circuit compatible with electric power system signals | |
CN104655916A (en) | Alternating-current voltage effective value measuring device and method | |
CN204389668U (en) | A kind of ground voltage influence amount simulator | |
CN107894532B (en) | Fundamental wave frequency measuring circuit of large-distortion sinusoidal signal | |
CN206876753U (en) | A kind of automobile charging box | |
CN205229295U (en) | A device for photovoltaic power generation electric energy measurement monitoring | |
CN103543345A (en) | Inductor test system | |
CN204514497U (en) | A kind of high-precision temperature testing circuit | |
CN208334480U (en) | A kind of small signal high precision peak detection device of high bandwidth | |
CN212134792U (en) | Balanced symmetrical sampling circuit of direct current electric meter | |
CN202870215U (en) | AC collection apparatus | |
CN203645895U (en) | Load sampling circuit of non-isolated LED driving circuit | |
CN206192942U (en) | Little water wide range coulometer summation circuit for appearance | |
CN203572864U (en) | Detection circuit for detecting output current and voltage | |
CN103217574B (en) | A kind of electric energy data checks the metering outfit of instrument | |
CN201773178U (en) | AC programmable power high-precision measurement circuit | |
CN207798940U (en) | A kind of frequency measurement system | |
CN107666318A (en) | Analog-to-digital conversion module in painting workshop gas concentration detection system | |
CN204101662U (en) | Photovoltaic generating system AC parameters of electric power on-line computing model | |
CN203672928U (en) | Novel guide rail type three-phase power meter hardware platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180810 |