Show by Label

Showing posts sorted by relevance for query sg502. Sort by date Show all posts
Showing posts sorted by relevance for query sg502. Sort by date Show all posts

Friday, September 15, 2017

DIY build of a Tektronix SG502 Sinewave Generator

Because I sold all of my Tektronix gear, I was a bit sad to loose three particular instruments.
One was the DIY 5CT Curve Tracer with my readout modifications that was already covered in another post, the 5A22N Differential Amplifier, and the SG502 Sinewave Generator.


When I was at Tek, I build several instruments from parts, the SG502 being one of them.



I really liked the SG502, for its simplicity using analog(!) discrete parts only, and the overall specifications that made it perfect for most if not all of my applications. This instrument covers the frequency range from <5Hz to >500KH and has a pretty good distortion performance with only 0.0035% THD between 20Hz and 50Khz. The output is 5V RMS open circuit or 2.5V RMS into 50 Ohm. It also has a good step attenuation ranging from 0-70dB. Finally, it has a 5Vp-p square wave output that can also function as a trigger out.

The reason I seldom used it over the last years was that it comes as a TM500 plugin, and that uses a lot of real estate. The TM500 series are very deep, and they are heavy. I don't have room for them on my desk or counter anymore, so eventually I cut the umbilical cord and sold everything I had from Tek. Well, not really everything (sorry Raymond). I kept a few goodies.

I also have the so called Victor Mickevich Ultra Low Distortion 1kHz sinewave generator with a reported 0.00001% THD for special measurements (also described in another post: simple-but-precisice-1khz-distortion-tool), and I recently purchased the FeelTech FY6600S-30 14 bit DDS. That instrument is a Dual Channel Function/Arbitrary Waveform Generator, very versatile, but, it's digital...

If you consider building one, the SG502 has a few critical or rather special (unobtanium) parts. One is the dual N J-FET (Tek p/n 151-1054-00 or the 2N3958), used for the input differential amplification, another J-FET (Tek pn/ 151-1021-00 or the FN815) used in the AGC, and then the precision dual 10K tracking pot and satellite adjustment contraption, used to set the frequency. Less critical is the matched capacitor set (10uF, 1uF, 0.1uF 0.01uF and 0.001uF). They are used in the bridged T notch filter in a rather clever dual purpose way. The last rather special item is the SG3501D (156-0208-00) IC that is the center of the dual tracking +/- 20V power supply. I recently found that this IC died in my SG502, but I was able to order replacements on flea-bay.

I happened to have all these items as "spare" parts, and kept them since the early 70's, waiting to be used again. I did not have the special matched set of timing capacitors, but individual ones and testing revealed that they were so close and precise that they didn't need any further matching or adjusting.

Just to kinda take care of my guilt in letting my trusted and self build Tek gear go, I decided to rebuild the SG502, but in a much smaller enclosure. I use the TEKO KL22 enclosure in black/aluminum a lot for my projects. They cost less than 15 Euros, and have just the right size for most of my projects. I used them already for my three power supplies, my DC load, and now my SG502.

I first dabbled with the idea to upgrade the design with modern OpAmps and see if I could improve on the specifications. After thinking about this for a while, I decided not to. I could have build the SG505, Tek's own upgrade to the SG502 which uses OpAmps, but in my opinion, this classic should stay the way it was designed by Steve Stanger in the early 70's. Period! 

BTW, the PG505 has been described as a real masterpiece of analog design wizardry. The instrument was designed by Bruce Hofer who now is at Audio Precision, and is a true analog design genius. So, my statement "I could have built the SG505", must be taken with a handful grains of salt. It will not be easy to replicate that instrument. (well, it's now 2025 and that's exactly what I'm going to try)

In contrast, rebuilding the SG502 instrument turned out to be rather simple. If you follow some common sense design and layout rules, anybody with a little above average skills can do it. If you can't get your hands on the critical parts, you could try to find an SG502 unit on flea bay or on one of those surplus markets where they sell old electronics. Sometimes these SG's can be bought for less than 20 Euro's. Because all components are THT, it's real easy to harvest and use the most critical parts.

I'm not going to cover the design, you can find the Tektronix Instruction Manual online, here.  It has everything you ever wanted to know about this instrument. One thing you should note is that Tek made some important changes to the original design (especially the ACG, the voltage supply and the output attenuation circuit), and I used the latest available Change Reference (M34075 from 1-19-79) in my redesign. 

Just recently, I found a note from Bruce Hofer, the designer of the SG505 with some additional low distortion modifications that will reduce the distortion to well under 0.002%. Modifications
I have not yet added these modifications myself.

One of the challenges is to get or replace the S50 push button switch set for the frequency selection and also the S160 push buttons used for the output attenuation. I used the same technique again that I already used for my DIY 5CT, and that is by using (reed) relays to do the switching. This will allow you to use inexpensive single deck rotary switches, in combination with diode matrices if required.

Here is the schematic of the range switching for the frequency selection:


Here is the schematic for the AGC damping (top) and the output attenuation:


After completing the unit, and testing it, I noticed a "design flaw" in my output attenuation switching design. When you switch between especially the higher attenuation settings, there is a short moment in-between the "clicks" that the output goes back to full scale. I need to add a delay to the relay fall-off times, to create the equivalent of a make-before-break action, change the rotary switch to make-before-break, or add a master output relays contact that prevents glitches to the DUT in-between setting changes.

I also redesigned the power supply somewhat. Normally, the SG502 uses the big transformer, diode bridge, electrolyte smoothing capacitors and the power transistors from the TM50X mainframe. I measured that the original SG502 uses about 70 mA on each 20V supply rail, so I could get away with a much simpler design.

First of all, I am a big fan of not putting mains transformers into the measurement enclosures. It keeps the hum out, and you don't have to deal with the bulky transformers, the main switch, filter, bridge etc. It allows me to use smaller enclosures, and put the transformer and the needed other stuff in a separate box that I can put someplace out of sight or away from my precious desk or bench space. Another benefit is that I can get multiple usages out of these transformers/supplies boxes.

Here is a photo of the 24-0-24V AC 160mA transformer box :



I didn't produce a schematic for the supply, so let me describe what I did. In the enclosure above, I put a 24-0-24VAC 160mA PCB transformer. I put a dual pole switch, a fuse and a neon indicator lamp on the primary side. On the secondary side, I connected the 24-0-24 AC outputs to 4mm binding posts.

Because the current demands are so small, I put the rectifier (1N4002) diodes directly on the 4 mm binding posts in the SG enclosure and also mounted the two smoothing caps (1000uF/50V) Manhatten style on them. On a little circuit board, I mounted the power section directly from the SG502 manual, and used two smallish power transistors that I had for the series transistors. I selected the voltage setting resistor (R348) to get as close as possible to the +/- 20V DC. Tek also hand selects this resistor, and I ended up with a value of 14K7, probably due to the fact that I used different power transistors.

To drive the two sets of (reed) relays, I wanted to balance the transformer and rectification loads a little, so I used an LM317/LM337 pair with 270 and 820 Ohm resistors to get + and - 5V rails. The +5V section is used to drive all the reed relays for the frequency selection and AGC dampening, and the -5V drives the 3 output attenuation relays. The grounds of both the 5V supplies are not connected to the analog ground on the analog circuit boards.

Here is a photo of the power board:


The left section on the board deals with the +/-5V and the right side with the +/-20V. I just happened to have the SG3501D chip, otherwise I could have used another set of LM317/337 to obtain the +/- 20V supplies. With these  more modern components, I really don't believe the supplies need to be tracking, because the LM317/337 are stable  and good enough.


The oscillator section is mounted on the main board, and looks like this:

Top left is the AGC damping section with 5 reed relays. On the right half is the frequency selection with the two sets of 5 reed relays. The large 10uF precision capacitor is mounted on top of the 1uF and 0.1uF capacitors to save some space. On this picture, the two output transistors(Q82 and Q83) are still the (isolating plastic!) 2N3904 and the 2N3906, they have been replaced by the 2N2222 and the 2N2907 metal can transistors after I was happy with the performance and took the picture. (Watch out for the different pin-out between these transistor types, as I forgot myself (;-o) )


I'm showing the backside with the rats nest, because it's a testament to the quality of the original design that I could stay well within the specifications without using a properly laid out PCB.

The output amplifiers for the sine wave and the output attenuation, in addition to the square wave generation and amplifier are on a separate board.


This board will be mounted through the output level potmeter to the front panel, and also on a stud to the main board.

The rest is mounted directly on the front panel:
The open hole on the left is for the output potmeter, and the hole on the right for the power LED.


To the left is the 5 position  rotary switch for the frequency multiplier then the special potmeter with the fine adjustment hardware contraption, and to the right the 8 position rotary switch with the diode matrix for the output attenuation (0 to -70dB in -10dB steps).

Together it looks a little bit cramped, but it fits easily.


The cool ribs you see on right at the outside of the back are not needed. I just stumbled on this old adhesive CPU cooler, and added it to the back initially, just in case.


And here is the front panel in detail:



I typically make a design of the front panel in PowerPoint, together with the drill map. I print the design on a color printer, using the best photo paper I can find, and in the highest resolution and best color quality.
I use double sided tape to secure the front panel and use a very sharp knife to cut the holes, I then carefully, without twisting the front layer of the paper, mount the hardware. Note that I try to use the same color scheme Tek used in the 70's. I really like it and use that for all my designs.


And here is the final unit.

While I was building the various sections, I was checking and verifying the results. When I was at Tek, I used to repair these instruments and I was amazed how well the original design worked, even with my modifications and wire nests and felt proud to have been part of this bit of T&M history. In retrospect, I'm glad I started on this project.

Using the procedure in the Instruction Manual, I verified everything as good as I could. I don't have a distortion analyzer or dedicated spectrum analyzer so I can't specify the distortion level. I used the FFT capability of my Rigol DS2302A scope, and that looked very good.

A small bit of info:
I went from using Tek equipment to a Rigol scope. Well, you probably didn't know this, but the Rigol subsidiary for the America's is located in Lake Oswego, which is only a few minutes from Beaverton, the home of Tek. You wonder why Rigol picked this location? (;-))

At a later date I will try to do a comparison with my Mickevic oscillator, my active double-T notchfilter together with an external sound card and my PC based analyzer software.

Everything else, except the rise/fall times for the square wave (>50nSec instead of <50)  is well within specification. I have not investigated this edge issue yet, for me it's good enough.

I did tweak the capacitor for the 50-500kHz range to match the other ranges. The 100Khz signal is the most critical, so I went back and force a few times to adjust the value of C55 the timing capacitor so when I switch ranges, the frequency setting is well within the specification. The original C565 value is 87pF, I ended up with 92pF.

What that means is that when I set the frequency setting to the (reference) 100.0MHz in the X100K setting, and switch to the X10K setting, the frequency is 10.17kHz, in the X1K setting 1.03kHz, in the X100 setting 101.7Hz and in the X10 setting 10.2Hz. That is excellent I think.

One caveat, and you may have already missed it. I don't have room for the frequency dial. First of all, I don't have one in the first place, but because I normally attach my scope anyway, it has a digital read out of the frequency setting, so I don't need the dial.

Even though I did not have the calculated precision resistors for the attenuation switch, I got really close by getting the closest E96 resistor value or selected a couple, and again, I was able to stay well within the specification.
If you're interested why Tek used these funny resistor value: have a look here :
matching-t-attenuator-calculator (use the 600 Ohm input/output setting and you'll see that the values match exactly to those that the Tek designers probably calculated with a slide ruler (;-))

One thing I need to do still, is to order copper sheet metal and use that on the inside of the (plastic) enclosure. Whenever I use my T12 solder iron, the high frequency pulses from the heater come right through. That's not just this unit alone though, but I want to create an extra barrier for this one.

All in all, I am mightily impressed with the design quality the Tek engineers at the time were able to pull off in the 70's. Rebuilding this unit and staying well within the original specification is again a testament to their skills. Hats off!

UPDATE 22-11-2017

After a lot of issues, I was finally able to create a vastly improved setup to measure FFT's, so I can now present the THD distortion number. A measured THD of 0.026% is even better than the specification for the original, which is 0.035% for the 20Hz to 50KHz range.
Here is the screenshot:


Enjoy!

If you like what you see, please support me by buying me a coffee: https://www.buymeacoffee.com/M9ouLVXBdw


Saturday, October 14, 2017

Setting up an FFT Measurement System


In this post I'll describe how I use a number of components/instruments to create a system that you can use to measure harmonic distortion and noise by using FFT's. This system can be configured in several ways to verify and measure the distortion of amplifiers, sine wave generators, power supplies etc.

Here is the complete set of instruments that make up the analyzer.
From top to bottom, the modified E-MU 0202 USB Sound "Card" digitizing interface to the PC, the "Pete Millett" Sound "Card" Interface, and on the bottom the combined "pure" Victor Mickevic 1 KHz sine wave oscillator and an active 1 KHz Twin-T notch filter.


First a little overview

To measure the performance (here the amount of distortion generated or added) of a black-box system (the Device Under Test - DUT), a very clean and low distortion sine wave (the fundamental) is used to stimulate the DUT, while the output is sampled. The output signal is stripped from the fundamental sine wave by means of a sharp filter, and the remaining residual, the combined noise and distortion is fed to an FFT system that can show the results.

Following is a picture of the setup needed to measure the Total Harmonics Distortion (THD) and the THD plus noise (THD+N) from a DUT.






This is a setup that can be used to measure sine wave generators, or to verify the Sound Card interface to the PC and the FFT software.

A high quality low distortion 1KHz sine wave is fed to the DUT, here symbolized as an amplifier. The output signal from the DUT is fed to the Soundcard Interface and is probably attenuated. This interface protects the delicate and sensitive inputs of the other intruments in the chain, like the T-filter and the USB Sound Card, and also facilitates making a few measurements. The resulting output is then fed to an (active or passive) Twin-T filter which removes the 1KHz fundamental. The residual (everything added by the DUT to the pure sine wave) is then fed back into the Soundcard Interface and then going to the USB Sound Card Interface, here a simple SD-AUD20040, where it is digitized and sent to the PC over a USB link. On the PC/Laptop, a software application like AudioTester, is used to show the residual (and noise) by means of an FFT.

This same setup can also be used to measure the noise performance of a power supply. In that case, the power supply output is first stripped from the DC component by using a capacitor (not shown), and then fed to the Sound Card Interface, and from there to the USB Sound Card for digitizing and on to the PC and the AudioTester FFT software.

If you want to measure the quality of sine wave generators or verify the components in the link, you can also use the following much simpler setup.



How you inter-connect the various instruments depends on what they offer. In this example, the output of the sine wave generator is fed directly to the Twin-T filter and the residual is digitized by the USB Sound Card. The Sound Card Interface is not needed, because the input levels can be set low enough, althoug you need to be carefull or use attenuation adapters.


The instruments that are used in the chain

In an earlier post on this Blog, I already described how I put the the "vicnic", a very high quality sine wave generator, and an active Twin-T filter in an enclosure.
On the left is the 1KHz sine wave oscillator with a dual output connector. One the right is the Twin-T notch filter, optimized for a 1KHz sine wave.



This instrument is described here:  simple but precise 1khz distortion system

The sound card interface

I also used a DIY Sound Card Interface, to attenuate (high) signals coming from the DUT, which would otherwise destroy the input of the USB Sound Card, or the other measurement components. The output from the Interface then goes to the Twin-T filter and then to an actual USB Sound Card (to digitize the analog signal) connected to a PC. The digitized output of the Sound Card is used by the AudioTester software running on the PC to show the results, typically by showing a pseudo Spectrum Analyzer  FFT diagram.





The Sound Card Interface above is another DIY project based on a design from Pete Millett and described here

The USB sound card interface

A USB sound card is used to digitize an analog signal (typically music) so it can be send to a PC for prossesing. It's still called a sound "card" interface because in earlier years this was actually an add-on (or more precise, an add-in) board that plugged-in to a PC slot. With Laptops, that option is no longer possible so a separate instrument with typically a USB interface has to be used instead. 

The same instrument can be used in our chain to digitize the resulting signals for further processing on the PC/Laptop.

During my first baby steps in putting this system together and collecting some experience, I used this inexpensive (around 25 Euros) USB Sound Card Interface:


It worked OK as you can see in the posts I mentioned earlier, but I was not very impressed with the results. It needed further tweaking, adjusting and modifying. After getting it all working and playing with the chain of intruments and making some measurements, I moved on to other projects. So for a few years, I really didn't need this setup so didn't spend any more time on it.

New technology and upgrades broke the chain

When I recently wanted to profile my DIY Tek SG502 rebuild, I put the system together again and quickly made some changes to the inter-connect cabling that makes the connections between the units easier.

However, problems showed-up right away that I had not seen before. It was probably caused partially because in the meantime, I switched to a newer and different Laptop and I also upgraded to W10. I could also very well have done something wrong during some of my experiments, because I suspect that something in the USB Sound Card box could have be damaged because it now shows a lot more harmonic distortion then I remember having seen before.

At first I was mystified to the cause, and could not put my finger on it. I now attribute it to a combination of my W10 Laptop, the W10 sound drivers, the W10 drivers for the USB Sound Card, plus something wrong with the drivers of the AudioTester software, because it is now crashing all the time.

Fault finding...

There were way too many variables in play so I started to address them one by one.

When I used my FY6600 DDS Function Generator, it showed THD+noise performance that looked pretty good and only a little worse than the specifications. 
My unprofiled and just finished Tek SG502 was also just outside the distortion specifications, but that was to be expected. So far so good. 
However, the ultra pure 1KHz sine wave generator designed by Victor Vickenich (vicnic) showed results that were only a little bit better than the other two, so initially I started to suspect the 1 KHz reference. 

To address my first suspect, I got in contact with Victor because I suspected a problem that I must have created with his reference. With his patient and excellent help, we found out by making some measurements on the oscillator itself, that the problem was not due to his sine wave generator. Of course it wouldn't.

I then focussed my attention to the PC software side. I have a license for the AudioTester software, but I was not happy with the overall driver situation after I switched to W10 and I also had problems with the calibration. To eliminate that aspect, I tried another software package, called ARTA. I selected this, because there are many references on the web and many examples of measurements made using Victor's oscillator in combination with the ARTA software, so I could start to compare. However, it still did not improve on the root cause of the problem I was having, the excessive harmonic distortion on Victor's oscillator. Have a look here...


That simply looks terrible! It has to be something else in the chain...


A better USB Sound Card

It was now time to take the next step, and invest in a better USB Sound Card. After quite a bit of research, I purchased a (brand new) ASUS Xonar U7 from Amazon. To my utter dismay, I found out that the CD that came with the unit did not have W10 drivers. Also online was nothing to be found. C'mon ASUS, we're in the middle of 2017, and you have not updated the CD yet? Obviously, that did not give me a lot of confidence. Making a few measurements did not improve the situation much, so I returned the unit the next day.

Time for a reset. I realized that I lacked the knowledge to get to the bottom of this issue, so I had to learn a lot more first of all. I literally spend a few weeks going through all kinds of Forums and Blogs to see what other people were using, and to learn more about the overall system and the components in the chain in much more detail.

Eventually, after going through many blogs and forum's, I found that there were a number of USB Sound Cards that stood out. The majority were from the same company, the E-MU 0202 and the E-MU 0404 and also a few others. The good news was that they were available "as used" on eBay now and then for reasonable prices.
I decided to try to score one of these and after some miss-hits, I scored a used E-MU 0202.


Modifying the E-MU 0202

After I scored the bid for an E-MU 0202, we were out of the country for 7 weeks (Winter Birding), so the unit would arrive but I would not get my dirty little hands on it. This gave me the time to do some more investigations, so I started to study more about the 0202. 

The ultra-pure 1KHz sine wave generator I have was designed by Victor Vickenich (vicnic), and to my delight, I found that he also published a couple of modifications to his own E-MU 0202 Sound Card, with lots of pictures together with the FFT results using the same 1KHz source. With the modifications to the 0202, Victor was able to get incredibly good results. 

That was going to be my reference now.

During my investigations, I also learned that the schematics for the 0202 are very similar to the 0404, although in a different layout and with several value changes and part numbering changes. Schematics for the 0404 are available, but I did not find good ones for the 0202. The various sources of 0202 schematics I found on the Web had errors, or were incomplete.

Since I had nothing else to do at the moment, I took the time to capture all information I could find in my schematic capture program (DipTrace), so I would have a record of the original status, and could put a description together for the modifications Victor did.

Based on the various sources and photographs of the PCB, here is the resulting schematic I was able to put together for the E-MU 0202 "B" channel input to the ADC, the well known AK5385AVF. That chip provides 24-bit resolution at a 192KHz sampling rate and has a 114dB dynamic range.
Here is the data sheet from DigiKey.

E-MU 0202 Front-End Schematic Diagram Channel B 



And here is the slightly more complex "A" channel:

E-MU 0202 Front-End Schematic Diagram Channel A




For the time being, I left out all power related parts. I may add them when needed, because at the time, I was considering adding an external separate power input, instead of using the (typically very noisy) USB 5V coming from the PC. That's a potential project for later.

My plan was that as soon as I got home and could start to work on my unit, I would start with the modifications that Victor made to his 0202. He eliminated much of the front-end of the unit and only used the "B" channel. He also uses an attenuation of his own, so there was no need for the input section. 

I will be using my Sound Card Interface only for this application, so this is no limitation for me either. Cutting that input section out of the loop saves a number of dB's in noise, and turns the Sound Card (more accurately a digitizer) more into a tailored measurement instrument.

Modifying my E-MU 0202

The EMU0202 I scored on fleabay was supposed to be working, but that was not true. The output amplifier did not work. I could not find the error, but I really didn't care. I wanted the digitizing front-end, so I applied the same modifications Victor published and did on his 0202.

Here are the two links to Victor's modifications and measurement results, they start with post #171 on page 9:
Victor's modifications and results

Scroll to page 10 and post #184 to get to his contribution with the photographs and the modifications. 
Note that a little below this post is another one from him with a correction to the value of R46, which needs to be 6K8. This is in post #187.

Below is the schematic information I put together for his modifications to the "B" channel, and highlighted the parts to be removed to isolate the front-end components to ADC input.




The volume control potmeter is removed to make place for an RCA or BNC connector on the front panel. I used a BNC connector myself.
The two removed series resistors, R54 and R32, both 1K4, will isolate the front-end input from the drivers for the ADC. The two resistors that are used to create the dynamic zero balance, R35 and R41 need to be removed too.

Following are the value changes and the new additions to form the new input circuit to the ADC.


The RCA or BNC connector can be mounted on the front panel in the hole of the R-Hi-Z/Line potmeter. I had a BNC connecter that fitted perfectly. After that, the input series resistor, the capacitor and the input Z resistor can be mounted Manhattan style. Note that Victor mentioned that this resistor can be tweaked in value to remove artifacts. I kept mine to 220K.

Three feed-back resistors change in value.
R28 : replace the 1K value to 6K8.
R46 : replace the 1K value to 1K5
R34 goes from 1M to 1K. (Victor used the original removed 1K resistor from R28 and simply soldered that resistor on top of R34 with the 1M value.)

Finally, the connection from the output of U6-B to the input of U6-A can be created by soldering the second removed 1K4 resistor, (the originals are too small, I used a new 1K5 0603) "Tomb Stone" and with a small wire to the input of U6-A. His detailed photographs show the way.

The results are stunning!

Connecting his reference oscillator to my now modified EMU0202 shows rather stunning results I think THD = 0.00096%,  noise at -120dB. Wow!


So now my modified EMU0202 digitizing front-end together with Victor's high quality oscillator, is a perfect reference combination for my distortion measurement applications.

As you can see from the picture below, I used a BNC as the input connector.





Here is a screenshot of the modified EMU0202 with my analog DIY Tektronix SG502:


The measured THD of 0.026% of my DIY re-build is actually better than the Tektronix specification of 0.035%. Not bad at all!

And here is the result from my digital FeelTech FY6600-30 Dual Channel Function/Arbitrary Waveform Generator:



So with the described changes to my setup I finally solved the issues I had in the chain. 

Next step will be to add in the Pete Miller Soundcard Interface and do some more measurements.

It may take a while, I have a few other projects I'm working on, but stay tuned for more...

Enjoy!

Monday, August 25, 2025

DIY rebuild of the Tek SG505 instrument

This post will describe the building of a complete instrument based on the earlier investigation of the Tektronix SG505 Signal Generator described here: 

https://www.paulvdiyblogs.net/2025/03/diy-build-of-tek-sg505.html



Enclosure and Front Panel

I'm going to use the same enclosure as I used for the SG502, which is a TEKLA KL-22. This is a black plastic enclosure with a metal front panel and back panel. I would have liked to use a full metal enclosure but the ones I found where either too small, too low, or too large and mostly all of them had the wrong dimensions to use a front panel.

To get a feel for the proper handling of the knobs and the overall layout, I typically create a mock-up using a paper front panel with a card board backing functioning as the PCB.

I made a number of changes to the initial layout to make sure I can turn and switch everything without cumbersome finger acrobatics. I also want to group controls together as much as possible, and make the positions logical. Also the position of the BNC output and the main frequency control contraption needs to be positioned correctly.

Here is that mock-up in the final version, after spending a few days relocating and printing and mounting the controls again. (this is not the final version (see the PCB below), some text got moved a bit here and there)


Here is the view from the back:


And here the detail for the mounting of the main potmeter contraption.



This is an earlier version, the mounting holes for the bracket line up in the final one. (;-))


After finishing this, I could finelize the design of the Front panel PCB for The KL-22 , so it has a nice looking feel for the instrument. Here is the 3D viewer result of the final version:


The rectangle in the top is the cut-out for the OLED display that will show the frequency. There are no mounting holes on the OLED display board itself, you have to find a way to somehow glue it to the back of the front panel.

All the holes are isolated from the front and back ground poor to add some more strength and EMI blocking. I will order the black solder mask with white silkscreen lettering as I usually do for all of my front panels.

New PCB Layout

I have also started to create a new layout for the main board, and added the relay's for the range switching, as well as the output amplifier. 

Here are the circuits for the frequency range selection, using a simple rotary switch located on the front panel.

This is the frequency setting for the phase shift amps.


Here are the dampening circuits for the AGC and the Peak Detector.


And here is the circuit for the frequency multiplier rotary switch:



A new Power Supply?

I'm very happy with the Jung SuperReg, but it is more than a bit of an overkill for this instrument. I'm now looking into testing a dual shunt supply that I also very recently used for my Twin-T notch filter and the Victor Mickevics oscillator. I'm using Victor's design to start with. I've used LTSpice to learn a bit more about the principle and I think I now know enough to be dangerous and feel brave enough to give it a try. I also need to add the 12V rail for the relay's and feed the Arduino and LCD display.

This will decide whether I'm going to add the components to the main PCB, or create a separate one, and then add the Arduino counter circuit to it.

Well, after some fooling around with prototypes, I finally got it going on two protoboards.

Here is the schematic of the supply:


The prototype below does not have the transformer snubber and the bridge capacitors implemented.

The power LED is optional. If you're going to use the OLED display, it will show that there is power. During testing, I used an LED to tell me that power is on, otherwise I can't see it visually, and before I added it, to my dismay, I left the unit powered on for a whole night. Not good.

The Shunt Supply principle is quite simple, almost literally taken from my Twin-T notch filter design and I only added trimmers for the key voltages and tweaked the current distribution. I'm now also using a much smaller transformer that I can mount on the PCB.

Here is the first result:


For some reason that I do not understand yet, there are more harmonics of the principle visible and you can also see a bit more of the mains frequency. I'm hoping that a real PCB and complete mains and transformer filtering will reduce that.


The top protoboard on the left is the raw supply circuit fed with the ac from the 2x 28VAC transformer. It has the rectification and filtering plus the LM317HVT that feeds the 44V to the dual shunt supply, located on the lower board. The two boards are connected together using the two 91 Ohm resistors that provide the shunt supply current headroom.

I'll do some more long term testing and look at the temperatures, but it looks like this supply is adequate for this application.

I finished the layout of the new power supply. It will be mounted up-side down from the top of the enclosure. There is a normal transformer located on the bottom for the +/- 17V rails, and the top rectangular in black is the 12V DC power module. That circuit is completely isolated from the +/-17V rails.


And finally, here is a 3D picture of the main board:


The 12V supply for the relays, the Arduino and the OLED display is completely separate from the generator circuits itself.


A reconsideration for the front panel

While working on the final layout for the main board and the front panel, I became more and more agitated with the two screws that mount the potmeter reduction unit that are visible on the font panel.

After some hemming and hawing, I bit the bullet and redesigned the hardware construction such that there are no more screws visible on the front panel. It meant that I had to move some parts on the main board out of the way, and add another bracket and holes to the main board. I also used this moment to slightly change some positions and changed some of the silkscreen text.
This is how the front panel looks now:



And here is the new construct for the potmeter and the reduction unit:


The reduction unit is now no longer mounted on the front panel, but has it's own bracket mounted on the main PCB. The two brackets are made of an L shape aluminum 1mm thick and is 20x30mm. Commonly available in DIY stores.

Here is the main PCB:


On 22-aug-2025 I uploaded the three PCB fabrication files to PCBWay and asked them to produce them under the sponsoring agreement. They already passed their review successfully. I hope to get their approval for the sponsoring soon in which case they can be here in 7-10 days.


Construction Details

The three boards have arrived from my sponsor PCBWay and as usual, look great. Especially the front panel came out very well with the black color of the solder mask and the crisp white silkscreen. Compared to other fab houses, PCBWay uses a special matt black color that is especially interesting for front panels because does not shine or mirror and does not leave finger prints. It is more difficult to clean though, so don't spill any flux on it. I use it on all my front panels and I quickly counted 5 of them on different instruments.

This time I forgot to ask them to put their manufacturing number on the back side of the board. By default, they put it on the front, as you can see here in the bottom left. It's not hindering though.




The Power Supply

I already populated the power supply board (top left above) the same afternoon. The next day I tested the vitals and all the voltages where there. 

One important notice that I now also added to the schematic is that with this supply, you always need to connect a nominal load to the output of the shunt supplies, otherwise the TL431's will get too hot. They will try to reduce the voltage by sinking all the current. I used two 680R 1/4 W resistors as a load, connected to the board as you can see in the picture below.

I could easily adjust the voltages, the trimmers have a good range. The LED that I mounted on the board, to have a visual indication of the applied power, was too bright. I changed the series resistor from 10K to 47K to reduce the brightness.  Now that I know that the supply is working, I can give it a good soak & scrub. 



The Main Board

After knowing that the power supply works, I can start on the main board. I normally keep the prototype in a functioning state, but there are so many special parts on it that I can't do that. I'll simply transfer the parts from the prototype to the new board.

The challenge will be that I used the Tek part identifiers on the prototype, but started anew for the new board. I will have to use the iBOM plugin for KiCad on both PCB's to figure out which is which and where.

Here's a very valuable tip.
If you don't have this iBOM plugin installed yet, you're missing out on a fantastic addition. Highly recommended! My buddy Bud looked at it when I told him, and initially was not impressed. However it took only a little explanation of the features to make him a true believer as well. Now he swears by it.

Here is how that looks like:


The top screen shows the iBOM windows for the prototype with the parts list on the left, and the layout on the right. Everything is linked, so when you select a part in the layout, iBOM parts list or iBOM layout, the cursor will go there and highlight the part(s).

The bottom screen shows the Version 2 board, using a second browser. So I select a certain part value on the prototype, and also select the same part value on the V2 and then know where it is located on the prototype and where it needs to go on the V2 board. I first apply solder paste on the V2 board, and then use my heat-gun to remove the part from the prototype and place it on the V2 board. When everything is done, I can use the heat-gun or reflow plate to solder all the parts on the V2. Easy-peasy in theory, not so easy in practice, but after discovering and correcting a few errors, I could also add the other parts. 

In the parts list, there are checkmarks you can fill in so you can keep track of where you are.

The main board is now ready for a reflow soldering process on my new hot plate. This is the largest board with a lot of parts, so yet another good test of the hot plate design.

Wave soldering went well, although I had to nudge a few tiny (0402 diodes - which were a mistake) components in place. I'm now soaking the boards for several hours so I can clean them properly in order to inspect them better with my microscope. With the amount of flux and very tiny solder ball bearings in the way, that's not really possible.




A Github repository is available here it will be updated with information during the project when I have verified the correct operation. I'm still working on it, so there is very little information there at the moment so please be patient.