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 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
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.
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:
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.
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.
Aftermath of reflow soldering
First Power Up
Oops!
Tuning the highest range
Looking into the rail situation
Using the front panel
Putting it in the enclosure
The power supply is still outside the enclosure as you can see, and I connected it with flying leads that still look untidy.
Adding the frequency counter
The DMM shows the frequency from the SG505 output and can be compared with the counter display. Not a perfect match, but good enough!