Square wave signal generating device
By designing a square wave signal generating device including an operational amplifier and a voltage controlled oscillator, and using a potentiometer and bias resistor, the frequency and duty cycle of the square wave signal can be flexibly adjusted, solving the high cost problem in the existing technology. and poor flexibility, achieving cost-effective square wave signal generation.
Patent Information
- Application Number
- CN202420527917.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-18
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2034-03-18
AI Technical Summary
Existing square wave generating devices have problems such as high cost, high complexity, or poor flexibility in achieving adjustable frequency and duty cycle. In particular, the single-chip microcomputer solution is not cost-effective, and the duty cycle of the operational amplifier solution cannot be adjusted, which limits the Its scope of application.
A square wave signal generating device is designed. Through a controlled circuit and a square wave frequency control circuit, an operational amplifier and a voltage controlled oscillator are used, combined with a potentiometer and a bias resistor, to realize the frequency and occupancy of the square wave signal using pure hardware. The adjustment of the space ratio adjusts the output square wave signal by controlling the frequency of the voltage signal and the sine wave signal.
It achieves flexible adjustment of the frequency and duty cycle of the square wave signal, has a large adjustable range of parameters, low production cost, and does not require software support, making it more flexible and economical.
Smart Images

Figure CN221900853U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of electronic circuits, in particular to a square wave signal generating device. Background Art
[0002] Square wave generator, as an electronic term, is an electronic device that generates square wave signals. It uses specific circuit design and electronic components to output stable and regular square wave signals.
[0003] At present, the duty cycle and frequency of the square wave waveform output by the square wave generating device can be controlled by the following two square wave generating schemes.
[0004] The first is to use a single-chip microcomputer to implement a square wave signal output solution, such as Figure 3 As shown in the figure, the square wave signal generated by the single-chip microcomputer is characterized by high precision, good square wave waveform, and flexible and adjustable frequency and duty cycle, which is the current mainstream square wave generation method. However, from the perspective of actual product application and cost, it is a waste. First, the single-chip microcomputer is relatively expensive, and second, it must be implemented by writing software. Therefore, the single-chip microcomputer solution is generally used in scenarios where products with single-chip microcomputers are used. It is not economically cost-effective to use a single-chip microcomputer to generate square wave signals.
[0005] The second is the square wave signal output scheme implemented by the operational amplifier, such as Figure 4 As shown, the positive feedback characteristics and RC delay characteristics of the operational amplifier are used to output a square wave signal with a fixed duty cycle, where RP1 and C1 form an RC delay circuit. Adjusting the parameters of the RC delay can change the frequency of the square wave. Compared with the first solution, the square wave generated by the operational amplifier is simple to implement and low in cost, but its duty cycle cannot be adjusted, which limits its application range.
[0006] Therefore, it is necessary to develop a square wave signal generating device which can realize square wave signal output with simple and low-cost hardware, and the frequency and duty cycle of the square wave are adjustable. Utility Model Content
[0007] The utility model aims to provide a square wave signal generating device, which can conveniently adjust the controlled circuit by changing the value of the voltage signal and the frequency of the sine wave signal, thereby obtaining square wave signals with different frequencies and duty cycles.
[0008] To achieve this purpose, the utility model adopts the following technical solutions:
[0009] A square wave signal generating device comprises a controlled circuit, a square wave frequency control circuit, a control voltage input terminal Vtune and a square wave output terminal Out;
[0010] The input end of the controlled circuit is electrically connected to the square wave frequency output end and the control voltage input end Vtune of the square wave frequency control circuit respectively, and the output end of the controlled circuit is the square wave output end Out, and the square wave output end Out is used to output a square wave signal;
[0011] The square wave frequency control circuit is used to adjust and output sine wave signals of different amplitudes through the square wave frequency output terminal;
[0012] The control voltage input terminal Vtune is used to input voltage signals of different values;
[0013] When the square wave frequency output terminal outputs sine wave signals of different frequencies, the square wave output terminal Out outputs square wave signals of different frequencies;
[0014] When the control voltage input terminal Vtune inputs voltage signals of different values, the square wave output terminal Out outputs square wave signals of different duty cycles.
[0015] Preferably, the controlled circuit comprises an operational amplifier A;
[0016] The first terminal of the operational amplifier A is the square wave output terminal Out, and the square wave output terminal Out is used to output a square wave signal;
[0017] The second terminal of the operational amplifier A is electrically connected to the control voltage input terminal Vtune;
[0018] The third terminal of the operational amplifier A is electrically connected to the square wave frequency output terminal;
[0019] The fourth terminal of the operational amplifier A is electrically connected to the positive terminal +Vcc of the power supply voltage;
[0020] The fifth terminal of the operational amplifier A is electrically connected to the negative terminal -Vcc of the power supply voltage.
[0021] Preferably, the controlled circuit further includes a bias resistor R1 and a bias resistor R2;
[0022] The two ends of the bias resistor R1 are electrically connected to the second end of the operational amplifier A and the control voltage input end Vtune respectively;
[0023] Two ends of the bias resistor R2 are electrically connected to the third end of the operational amplifier A and the square wave frequency output end respectively.
[0024] Preferably, the square wave frequency control circuit comprises a voltage controlled oscillator VCO and a potentiometer RP1;
[0025] The third terminal of the voltage controlled oscillator VCO and the first terminal of the potentiometer RP1 are both grounded;
[0026] The first end of the voltage controlled oscillator VCO is electrically connected to the second end of the potentiometer RP1;
[0027] The second end of the voltage controlled oscillator VCO is electrically connected to one end of the bias resistor R2;
[0028] The third terminal of the potentiometer RP1 is electrically connected to the positive terminal +Vcc of the power supply voltage.
[0029] Preferably, when the square wave frequency output terminal outputs a sine wave signal of a fixed frequency, the duty cycle of the square wave signal output by the square wave output terminal Out of the controlled circuit is proportional to the value of the voltage signal input by the control voltage input terminal Vtune.
[0030] Preferably, when a voltage signal of a fixed value is input to the control voltage input terminal Vtune, the frequency of the square wave signal output from the square wave output terminal Out of the controlled circuit is proportional to the frequency of the sinusoidal wave signal output from the square wave frequency output terminal.
[0031] One of the above technical solutions has the following beneficial effects: not only can the control voltage Vtune inputted through the control voltage input terminal Vtune be used to adjust the duty cycle of the square wave signal outputted by the controlled circuit with arbitrary precision, the parameter adjustable range is large, and the adjustment is convenient. It is also possible to input sine wave signals of different amplitudes through the square wave frequency control circuit to control the controlled circuit to output square wave signals of different frequencies, and the frequency adjustment is accurate and has a wider range.
[0032] Furthermore, compared with the single-chip square wave generator that must use software + hardware to achieve the effect, the utility model only uses pure hardware, which is more flexible in application. For example, the frequency and duty cycle of the square wave signal can be adjusted, while the single-chip microcomputer needs to be connected to a computer to modify the single-chip microcomputer operating parameters. Therefore, the production cost of the utility model is more advantageous. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 This is a circuit diagram of a square wave signal generating device of the utility model;
[0034] Figure 2 This is a schematic diagram of the results of comparative examples 1-4 of a square wave signal generating device of the utility model;
[0035] Figure 3 It is a circuit diagram of a single chip microcomputer realizing a square wave signal output solution in the prior art;
[0036] Figure 4It is a circuit diagram of a square wave signal output scheme implemented by an operational amplifier in the prior art;
[0037] In the attached drawings: a controlled circuit 100, a square wave frequency control circuit 200, a control voltage input terminal Vtune, and a square wave output terminal Out. DETAILED DESCRIPTION
[0038] The technical solution of the utility model is further explained below with reference to the accompanying drawings and through specific implementation methods.
[0039] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0040] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present utility model, unless otherwise specified, the meaning of "plurality" is two or more.
[0041] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0042] like Figure 1 As shown, a square wave signal generating device includes a controlled circuit 100, a square wave frequency control circuit 200, a control voltage input terminal Vtune and a square wave output terminal Out;
[0043] The input end of the controlled circuit 100 is electrically connected to the square wave frequency output end and the control voltage input end Vtune of the square wave frequency control circuit 200 respectively, and the output end of the controlled circuit 100 is the square wave output end Out, and the square wave output end Out is used to output a square wave signal;
[0044] The square wave frequency control circuit 200 is used to adjust and output sine wave signals of different amplitudes through the square wave frequency output terminal;
[0045] The control voltage input terminal Vtune is used to input voltage signals of different values;
[0046] When the square wave frequency output terminal outputs sine wave signals of different frequencies, the square wave output terminal Out outputs square wave signals of different frequencies;
[0047] When the control voltage input terminal Vtune inputs voltage signals of different values, the square wave output terminal Out outputs square wave signals of different duty cycles.
[0048] Compared with conventional square wave generation technology, the square wave generator formed by only using an operational amplifier in conventional technology not only makes the duty cycle of the output square wave signal unadjustable; and the frequency adjustment of the output square wave signal is to adjust the size of the resistor RP1 in the RC parameter, and its frequency adjustment accuracy and range are limited.
[0049] The utility model can not only adjust the duty cycle of the square wave signal output by the controlled circuit 100 with arbitrary precision by inputting the control voltage Vtune at the control voltage input terminal Vtune, but also has a wide parameter adjustable range and convenient adjustment. It can also control the controlled circuit 100 to output square wave signals of different frequencies by inputting sine wave signals of different amplitudes through the square wave frequency control circuit 200, and the frequency adjustment is accurate and has a wider range.
[0050] Furthermore, compared with the single-chip square wave generator that must use software + hardware to achieve the effect, the utility model only uses pure hardware, which is more flexible in application. For example, the frequency and duty cycle of the square wave signal can be adjusted, while the single-chip microcomputer needs to be connected to a computer to modify the single-chip microcomputer operating parameters. Therefore, the production cost of the utility model is more advantageous.
[0051] In summary, compared with the prior art, the present invention can conveniently adjust the controlled circuit 100 by changing the value of the voltage signal and the frequency of the sine wave signal, thereby obtaining square wave signals with different frequencies and duty cycles.
[0052] To further illustrate, the controlled circuit 100 includes an operational amplifier A;
[0053] The first terminal of the operational amplifier A is the square wave output terminal Out, and the square wave output terminal Out is used to output a square wave signal;
[0054] The second terminal of the operational amplifier A is electrically connected to the control voltage input terminal Vtune;
[0055] The third terminal of the operational amplifier A is electrically connected to the square wave frequency output terminal;
[0056] The fourth terminal of the operational amplifier A is electrically connected to the positive terminal +Vcc of the power supply voltage;
[0057] The fifth terminal of the operational amplifier A is electrically connected to the negative terminal -Vcc of the power supply voltage.
[0058] In this embodiment, the operational amplifier A is used as a comparator, which is used to compare the voltages at its input terminals 2 and 3. When the input voltage at the terminal 3 is higher than the input voltage at the terminal 2, the output voltage at the terminal 1 is a high level; conversely, when the input voltage at the terminal 3 is lower than the input voltage at the terminal 2, the output voltage at the terminal 1 is a low level.
[0059] Furthermore, the power supply voltage Vcc of the operational amplifier A includes a positive power supply +Vcc and a negative power supply -Vcc, which is the amplitude value of the square wave signal. That is, by adjusting the power supply voltage Vcc of the operational amplifier A, square wave signals with different amplitude values can be obtained.
[0060] To further illustrate, the controlled circuit 100 further includes a bias resistor R1 and a bias resistor R2;
[0061] The two ends of the bias resistor R1 are electrically connected to the second end of the operational amplifier A and the control voltage input end Vtune respectively;
[0062] Two ends of the bias resistor R2 are electrically connected to the third end of the operational amplifier A and the square wave frequency output end respectively.
[0063] In this embodiment, the bias resistor R1 and the bias resistor R2 are mainly used for isolation to prevent the external input voltage from affecting the operation of the operational amplifier, thereby ensuring the normal operation of the operational amplifier A.
[0064] To further illustrate, the square wave frequency control circuit 200 includes a voltage controlled oscillator VCO and a potentiometer RP1;
[0065] The third terminal of the voltage controlled oscillator VCO and the first terminal of the potentiometer RP1 are both grounded;
[0066] The first end of the voltage controlled oscillator VCO is electrically connected to the second end of the potentiometer RP1;
[0067] The second end of the voltage controlled oscillator VCO is electrically connected to one end of the bias resistor R2;
[0068] The third terminal of the potentiometer RP1 is electrically connected to the positive terminal +Vcc of the power supply voltage.
[0069] In this embodiment, the voltage controlled oscillator VCO is used to provide a sine wave signal. One feature of the voltage controlled oscillator VCO is that the frequency of the sine wave output from its second terminal can be changed by adjusting the voltage at its first terminal.
[0070] In this embodiment, the potentiometer RP1 is a sliding resistor, and its function is to adjust the power supply voltage VCC to a suitable voltage required by the voltage-controlled oscillator VCO.
[0071] To further explain, when the square wave frequency output terminal outputs a sine wave signal of a fixed frequency, the duty cycle of the square wave signal output by the square wave output terminal Out of the controlled circuit 100 is proportional to the value of the voltage signal input by the control voltage input terminal Vtune.
[0072] To further explain, when a voltage signal of a fixed value is input to the control voltage input terminal Vtune, the frequency of the square wave signal output from the square wave output terminal Out of the controlled circuit 100 is proportional to the frequency of the sinusoidal wave signal output from the square wave frequency output terminal.
[0073] The basic working principle and workflow of the utility model are as follows:
[0074] First, by adjusting the resistance of the potentiometer RP1 in the square wave frequency control circuit 200, a working voltage V1 is given to the voltage controlled oscillator VCO, so that the voltage controlled oscillator VCO outputs a 10KHz sine wave, and its amplitude is set to Vpp;
[0075] Secondly, since there is no feedback resistor in operational amplifier A and it works in an open loop, according to the characteristics of operational amplifier A, the operational amplifier constitutes a comparator. Moreover, the sine wave input to the positive phase terminal of the third terminal of operational amplifier A changes periodically with time; while the voltage input to the negative phase terminal of the second terminal of operational amplifier A is a constant voltage. At this time, according to the comparator principle of operational amplifier A, when the voltage at the positive phase terminal of the third terminal is greater than the voltage at the negative phase terminal of the second terminal, the first terminal of operational amplifier A will output a high level of 0.8Vcc, otherwise, the first terminal of operational amplifier A will output a low level of -0.8Vcc.
[0076] Comparative Example 1
[0077] When the square wave frequency control circuit 200 outputs a sine wave with a frequency of 10KHz and an amplitude of Vpp to the bias resistor R2, it enters the third terminal of the operational amplifier A after passing through the bias resistor R2.
[0078] At the same time, the control voltage input terminal Vtune inputs a voltage Vtune with a value of 0.5Vpp to the bias resistor R1, and enters the second inverting terminal of the operational amplifier A after passing through the bias resistor R1.
[0079] See Figure 2 As shown in the first part, the square wave signal generating device will eventually output a square wave signal with a frequency of 10KHz and a duty cycle of 50%.
[0080] Comparative Example 2
[0081] When the square wave frequency control circuit 200 outputs a sine wave with a frequency of 10KHz and an amplitude of Vpp to the bias resistor R2, it enters the third terminal of the operational amplifier A after passing through the bias resistor R2.
[0082] At the same time, the control voltage input terminal Vtune inputs a voltage Vtune with a value of 0.15Vpp to the bias resistor R1, and enters the second inverting terminal of the operational amplifier A after passing through the bias resistor R1.
[0083] See Figure 2 As shown in the second part of the figure, the square wave signal generating device will eventually output a square wave signal with a frequency of 10KHz and a duty cycle of 30%.
[0084] Comparative Example 3
[0085] When the square wave frequency control circuit 200 outputs a sine wave with a frequency of 20KHz and an amplitude of Vpp to the bias resistor R2, it enters the third terminal of the operational amplifier A after passing through the bias resistor R2.
[0086] At the same time, the control voltage input terminal Vtune inputs a voltage Vtune with a value of 0.5Vpp to the bias resistor R1, and enters the second inverting terminal of the operational amplifier A after passing through the bias resistor R1.
[0087] See Figure 2 As shown in the third part, the square wave signal generating device will eventually output a square wave signal with a frequency of 20KHz and a duty cycle of 50%.
[0088] Comparative Example 4
[0089] When the square wave frequency control circuit 200 outputs a sine wave with a frequency of 20KHz and an amplitude of Vpp to the bias resistor R2, it enters the third terminal of the operational amplifier A after passing through the bias resistor R2.
[0090] At the same time, the control voltage input terminal Vtune inputs a voltage Vtune with a value of 0.15Vpp to the bias resistor R1, and enters the second inverting terminal of the operational amplifier A after passing through the bias resistor R1.
[0091] See Figure 2As shown in the third part of the figure, the square wave signal generating device will eventually output a square wave signal with a frequency of 20KHz and a duty cycle of 30%.
[0092] In summary, comparison Figure 2 In parts ① and ② or parts ③ and ④, it is obvious that since the value of the voltage Vtune inputted by the control voltage input terminal Vtune is continuously adjustable, when it is adjusted between 0 and Vpp, the duty cycle of the square wave formed will also change from 0% to 100%, thereby realizing the continuous adjustable duty cycle of the square wave signal. At the same time, the following inference can be obtained: when the control voltage input terminal Vtune inputs a voltage signal of a fixed value, the frequency of the square wave signal outputted from the output terminal of the controlled circuit 100 is proportional to the frequency of the sine wave signal outputted from the square wave frequency output terminal.
[0093] Same, contrast Figure 2 In parts ① and ③ or parts ② and ④, it is obvious that when the resistance value of the potentiometer RP1 in the square wave frequency control circuit 200 is adjusted to change the frequency of the sine wave output by the voltage controlled oscillator VCO, the frequency of the square wave signal output by the operational amplifier A will also change accordingly and be equal to the frequency of the VCO. At the same time, the following inference can be obtained: when the square wave frequency output terminal outputs a sine wave signal of a fixed frequency, the duty cycle of the square wave signal output by the output terminal of the controlled circuit 100 is proportional to the value of the voltage signal input by the control voltage input terminal Vtune.
[0094] As described above, the square wave signal generating device realizes the square wave generating function, and the frequency and duty cycle are adjustable.
[0095] The technical principle of the present invention is described above in combination with specific embodiments. These descriptions are only for explaining the principle of the present invention and cannot be interpreted as limiting the protection scope of the present invention in any way. Based on the explanations here, technicians in this field can think of other specific implementations of the present invention without creative work, and these equivalent variations or substitutions are all included in the scope defined by the claims of this application.
Claims
1. A square wave signal generating device, characterized in that: It comprises a controlled circuit (100), a square wave frequency control circuit (200), a control voltage input terminal Vtune and a square wave output terminal Out; The input end of the controlled circuit (100) is electrically connected to the square wave frequency output end and the control voltage input end Vtune of the square wave frequency control circuit (200) respectively, and the output end of the controlled circuit (100) is the square wave output end Out, and the square wave output end Out is used to output a square wave signal; The square wave frequency control circuit (200) is used to adjust and output sine wave signals with different amplitudes through the square wave frequency output terminal; The control voltage input terminal Vtune is used to input voltage signals of different values; When the square wave frequency output terminal outputs sine wave signals of different frequencies, the square wave output terminal Out outputs square wave signals of different frequencies; When the control voltage input terminal Vtune inputs voltage signals of different values, the square wave output terminal Out outputs square wave signals of different duty cycles.
2. A square wave signal generating device according to claim 1, characterized in that: The controlled circuit (100) comprises an operational amplifier A; The first terminal of the operational amplifier A is the square wave output terminal Out, and the square wave output terminal Out is used to output a square wave signal; The second terminal of the operational amplifier A is electrically connected to the control voltage input terminal Vtune; The third terminal of the operational amplifier A is electrically connected to the square wave frequency output terminal; The fourth terminal of the operational amplifier A is electrically connected to the positive terminal +Vcc of the power supply voltage; The fifth terminal of the operational amplifier A is electrically connected to the negative terminal -Vcc of the power supply voltage.
3. A square wave signal generating device according to claim 2, characterized in that: The controlled circuit (100) further comprises a bias resistor R1 and a bias resistor R2; The two ends of the bias resistor R1 are electrically connected to the second end of the operational amplifier A and the control voltage input end Vtune respectively; Two ends of the bias resistor R2 are electrically connected to the third end of the operational amplifier A and the square wave frequency output end respectively.
4. A square wave signal generating device according to claim 3, characterized in that: The square wave frequency control circuit (200) comprises a voltage controlled oscillator VCO and a potentiometer RP1; The third terminal of the voltage controlled oscillator VCO and the first terminal of the potentiometer RP1 are both grounded; The first end of the voltage controlled oscillator VCO is electrically connected to the second end of the potentiometer RP1; The second end of the voltage controlled oscillator VCO is electrically connected to one end of the bias resistor R2; The third terminal of the potentiometer RP1 is electrically connected to the positive terminal +Vcc of the power supply voltage.
5. A square wave signal generating device according to claim 1, characterized in that: When the square wave frequency output terminal outputs a sine wave signal of a fixed frequency, the duty cycle of the square wave signal output by the square wave output terminal Out of the controlled circuit (100) is proportional to the value of the voltage signal input by the control voltage input terminal Vtune.
6. A square wave signal generating device according to claim 1, characterized in that: When a voltage signal of a fixed value is input to the control voltage input terminal Vtune, the frequency of the square wave signal outputted from the square wave output terminal Out of the controlled circuit (100) is proportional to the frequency of the sinusoidal wave signal outputted from the square wave frequency output terminal.
