Description: A simple 1 kHz, 6 Vpp sine wave generator was constructed using a few operational amplifiers and passive components. The goal was to evaluate the quality of the generated sine wave, which is fundamentally a wave-shaped triangle wave. The assessment focused on harmonic distortion, as a perfect sine wave contains only the fundamental frequency component, while real sine waves exhibit harmonic content that is undesirable. To quantify the quality of the sine wave, a notch filter centered at 1 kHz was designed to eliminate the fundamental frequency and isolate the harmonic content. An LTSPICE schematic of the sine wave generator and notch filter was created. When the 1 kHz signal was passed through the notch filter, the fundamental frequency was removed, leaving only the harmonic content, with the third harmonic present at approximately 3 kHz. The FFT analysis of both the input sine wave and the notch filter output demonstrated a reduction in the fundamental frequency amplitude while maintaining the harmonic content. After validating the simulation, a physical version of the 1 kHz notch filter was constructed in an Altoids box using a "dead bug" style assembly. Although lacking a network analyzer or spectrum analyzer, a function generator and oscilloscope were utilized to sweep the output frequency from 10 Hz to 100 kHz, confirming the filter's effectiveness at attenuating 1 kHz signals. To further validate the findings, a HP 331A distortion analyzer was employed. This device required calibration for full-scale input, followed by frequency and balance adjustments to achieve the lowest total harmonic distortion (THD) reading. Observations confirmed the successful removal of the 1 kHz fundamental frequency, with only the third harmonic remaining, resulting in a measured THD of 7.4%, which was close to the homemade notch filter's 6% reading. The homemade filter likely attenuated the third harmonic more effectively than the HP 331A's notch filter. A final test was conducted using a BK Precision 3011B to generate a cleaner 1 kHz, 6 Vp-p sine wave, and the notch filter was used to measure its THD.
A comprehensive circuit schematic for the sine wave generator and notch filter can be constructed using operational amplifiers configured in an inverting or non-inverting arrangement to generate the desired sine wave output. The sine wave generator typically employs an integrator to shape a triangle wave and then a comparator to convert this triangle wave into a sine wave. The operational amplifiers should be selected based on their bandwidth and slew rate to ensure they can accurately produce the 1 kHz sine wave.
The notch filter can be designed using a band-stop configuration that includes resistors, capacitors, and operational amplifiers to create a filter that effectively attenuates signals at 1 kHz while allowing other frequencies to pass. The design parameters, such as resistor and capacitor values, should be calculated to achieve a quality factor (Q) that provides sufficient attenuation at the fundamental frequency without significantly affecting the harmonic content.
The performance of the notch filter can be evaluated through frequency response analysis, which can be conducted using simulation software like LTSPICE or through physical testing with a function generator and oscilloscope. The use of a distortion analyzer, such as the HP 331A, allows for precise measurement of the total harmonic distortion, providing insight into the effectiveness of the notch filter and the overall quality of the sine wave generated. The results from both simulation and physical testing can be compared to assess the accuracy of the circuit design and implementation.
Overall, this project illustrates the importance of analyzing and refining signal quality in electronic circuits, particularly in applications where sine wave purity is critical, such as in signal processing and communications.I built a simple 1KHz 6Vpp Sine Wave Generator from a handful of opamps and passives I had laying around. You can check out that project here. I thought it would be fun to quantify just how good of a Sine Wave this circuit was; after all it was just a wave-shaped triangle wave, so I wasn`t expecting too much.
But if I quantify h ow good of a sine wave it is I can tweak the circuit to try and make if better. Essentially, a perfect sine wave should only have a single frequency component at the fundamental frequency, but real sine waves have harmonic distortion. This harmonic distortion is the part of the sine wave that we really don`t want; a poor sine wave has lots of harmonic content and a good sine wave has little to no harmonic content.
So if we measure the amplitude of the harmonics we can quantify how good our sine wave is! What we need to do is design a Notch filter at 1KHz. This will remove the fundamental frequency and leave the Harmonic content. Below is an LTSPICE schematic of Sine Wave Generator and Notch Filter. When the 1KHz signal is passed through the 1KHz centered notch filter the fundemental frequency is removed and what is left is the Harmonic content. You can see the 3rd harmonic at ~3KHz is what is left. Below is the FFT of the input Sine Wave and the Output of the Notch Filter; you can see the fundamental frequency amplitude is lower with minimal effect on the harmonic content.
Now that I had a base line simulation working I grabbed my soldering iron and built up the 1KHz Notch Filter dead bug style in an Altoids box. I wish I had a Network Analyzer or at minimum a Spectrum Analyzer with a tracking output to measure my filters frequency response, but all I had was a function generator and a scope.
I swept the function generator`s output frequency from 10Hz to 100KHz and could see that my filter worked well at filtering out 1KHz signals. I wanted a second opinion, so I grabbed a HP 331A Distortion Analyzer and set it up. I hadn`t used one of these since I interned at an RF Radio Manufacturer back in 2002. I used it to measure receiver sensitivity performance. I had to dig up a manual to remember how to setup the HP 331A. It is a bit confusing because you have to setup the meter to 100% full scale based on your input, then adjust the frequency & balance adjustments until you get the lowest % THD reading.
I monitored the Output of the 331A with a scope to see that I had fully removed the 1KHz fundamental and all that was left was a dirty looking 3KHz waveform (3rd harmonic). The HP 331A measured a THD of 7. 4%; pretty close to my homemade notch filter 6% reading. It makes sense that my filter`s THD measurement would be lower, because it probably attenuated the 3rd harmonic a bit more than the much more precise HP 331A`s notch filter would do.
Both filters did a nice job removing the fundamental and the 3rd harmonic is defiantly the most dominate remaining frequency. This was a fun project and cool to see that my Notch Filter implementation`s THD readings weren`t that far off from a HP331A`s measurements.
I thought I would do one last test to see the performance of the Notch Filter on a much cleaner sine wave. I used a BK Precision 3011B to generate an identical (but much cleaner) 1KHz 6Vp-p Sine Wave and used the Notch Filter to measure its THD.
Achieving the appropriate amplifier loop gain is a significant challenge in generating a low distortion, constant amplitude sine wave. Nevertheless, this issue can be addressed with...
Amplifier loop gain is a critical parameter in the design of audio and signal processing...
The artwork style of the operational amplifier and the meter face suggests that it is an ACC design from an old issue of ACC Notes. The second image was scanned, and the text below was written from scratch. If the...
The figures below illustrate using opamps as active 2nd order filters. Three 2nd order filters are shown, low pass, high pass, and bandpass. Each of these filters will attenuate frequencies outside their passband at a rate of 12dB per octave...
This circuit will provide both a sine and square wave output for frequencies ranging from below 20 Hz to above 20 kHz. The frequency of oscillation can be easily adjusted by changing a single resistor.
This circuit is designed to generate...
The circuit is designed to convert sinusoidal input signals into TTL output signals and can process input voltages exceeding 100 mV.
This circuit typically employs a comparator to achieve the conversion from sinusoidal to TTL levels. The sinusoidal input signal is...
This circuit is intended to provide good square waves converting a sine wave picked up from an existing generator. Its main feature consists in the fact that no power source is needed: thus it can be simply connected between a...
Integrated circuits (ICs) that were previously too costly for hobbyists are now more affordably priced. An example is the AD8099 from Analog Devices, which is available for only a few pounds. The AD8099 is a very fast operational amplifier (op-amp)...
This is a kHz sine wave generator circuit built based on the configuration of an inverted Wien bridge (see C1-R3 C2-R4). R5 and R7 are used for output amplitude setting. Set R5 to read 1V RMS on an audio millivoltmeter...
The only drawback of a single operational amplifier (op-amp) stage is that it inverts the signal, necessitating an additional inverting buffer to restore the original phase if absolute phase is a concern. Various schematics exist for both configurations, but the...
We use cookies to enhance your experience, analyze traffic, and (if you allow) serve personalized ads.
By clicking Accept All, you agree to our use of cookies.
Learn more