Ever on the lookout for new test gear to add to my collection I stumbled across the XR2206-based function generator. These can be bought as a kit pretty cheaply from AliExpress or from eBay, they're easy to put together and use offering 1Hz - 1MHz of range through the use of some jumpers. It has two output terminals, one that gives a square wave and one that gives either a triangle or sine wave, depending on the position of a jumper. The heart of the device is an XR2206 which is an "obsolete" function generator chip with some pretty good specs and a low external parts count.
I bought one of these kits because my ultra low THD sine generator (a Wien Bridge oscillator with a bulb) is fixed at ~1kHz and being able to steep the frequency (and use other waveforms) is a huge help in analysing a circuit
My Ultra Low THD Oscillator |
After building the kit I fired up Arta to measure the THD, the results were... disappointing, 2.7% if you set the amplitude right but around 4-5% most of the time
The XR2206 Oscillator |
If we take a look at the datasheet for the XR2206 and look at the test circuit though we'll see that ~0.5% THD should be achievable, and that there should be two trimmers which weren't included on the kit! The schematic for the kit is pretty much just this test circuit with the trimmers either removed in the case of the Symmetry Adjust or replaced with a fixed resistor in the case of the THD Adjust.
Installing the THD Adjust Trimmer was easy, I just had to desolder the fixed 500R resistor and mount a trimmer in it's place. The Symmetry Adjust trimmer was a bit harder, the two pins of the XR2206 weren't connected to anything on the PCB so I used some thin 30AWG Kynar wire to connect the trimmer legs, I then soldered the wiper contact to the ground terminal of the power jack. Circuit modifications done it was on to testing and trimming.
To start trimming I set the function generator to around 1kHz and I set the amplitude to the half way position (more on this later), then I left Arta running with averaging off so that I could get a real-time THD readout.
I started with the THD Adjust trimmer making fine movements to get as close as I could to an optimal value, this already made a huge difference bringing the THD down to about 0.85%!
Next I moved onto the Symmetry Adjust, this was a lot more finicky with a very narrow optimal range, one wrong move and the THD skyrocketed! In the end this trimmer made almost no difference to the THD. In future I'll replace this with a multiturn pot to try and improve the overall result.
And what was the final result you may ask? I eventually got it down to 0.7% THD at 1kHz and at mid amplitude. A pretty respectable figure for such a simple and cheap device. I've no doubt that with multiturn pots this can be improved further down to the 0.5% of the datasheet.
And finally, the "dark side" of this function generator. The THD figure is amplitude dependent. The further from your trimmed amplitude you go the worse your THD gets.
I chose to trim in the middle since this gives the best THD over the whole range but as you can see below at the maximum amplitude the THD gets pretty bad, although nowhere close to the untrimmed 5%. The minimum amplitude THD isn't quite this poor although it still rises in comparison to the centre amplitude
The highest THD figure post-trimming |
Hopefully this post will help others wanting to get the best out of their cheap test gear. If/when I get around to installing a couple of multiturn pots I'll make a followup post showcasing the results
Comments
Post a Comment