This Blog post will detail the third stage of my project to rebuild the Tektronix SG505 instrument.
Here is the link to the post describing the second version of the design:
https://www.paulvdiyblogs.net/2025/08/diy-rebuild-of-tek-sg505-instrument.html
Here is the first post about this project:
https://www.paulvdiyblogs.net/2025/03/diy-build-of-tek-sg505.html
The reason for the third revision
After the investigations of the second version, I wanted to separate the Power Supply from the Generator in the same enclosure. I also wanted to put the Generator circuits into a full metal enclosure to make the output of the generator as clean as possible and as a minimum, remove the mains hum.
After a very long search, this is the only enclosure I could find that has the required height and width for the front panel layout. It is a ProMa 130 0044 and is also available from Amazon. The outside dimensions are 165x110x80. I would have liked a black enclosure, but alas I couldn't find one. There is one available from ProMa though, with part number 130 0045. I can always spray paint it black myself if I develop the urge. The current Front Panel design will need some modifications and will replace the aluminum panel. The generator PCB will slide in a slot close to the bottom. Unfortunately, the dimensions are a little different so I can't use the current PCB in this enclosure, not even to try it out.
This all means a new PCB for the Generator, for the Power Supply and for the Front Panel.
Splitting the Power Supply
There will be a separation of the noisy mains related parts of the circuit, that need to go outside of the enclosure for the generator. In essence, it means that the transformer, the bridge rectifier, the main capacitor reservoirs and the 40V regulator need to be on a separate PCB that will be housed outside of the generator.
The shunt supplies for the +/-16V rails can move to the main generator, and also the 12V supply can move to the main board. They are quiet and will have no negative effect on the generator. I hope. It also makes the interface from the Power Supply enclosure simple, because I will only need to use two wires for the 40V supply that feeds the other three rails.
The circuit after the transformer and the bridge will get some more filtering to avoid mains related noise getting into the generator.
The Mains Power Supply
This is the circuit that is inherently noisy and will no longer be in the same enclosure as the generator. This is the schematic I'm now working from. There are not too many changes, but I added ferrite coils in between the larger reservoir caps, and I used a common mode coil at the output. I also added a few more capacitors to quiet the thing down as much as possible.
The Power Rails on the Generator PCB
No major changes from the previous design, I just added a few extra capacitors and ferrite beads to the power input lines. This may still change a little based on the new layout.
The Generator circuits
The other circuits stay the same, will just get a revised layout and incorporate the three power rails and needs to fit in the new enclosure.
I finished the new version of the generator PCB, now with the power rails on it.
This is what is ordered. On the bottom part you can see that the LM317 is now flipped around and moved closer to the edge of the board. It will be mounted isolated on the side of the enclosure to remove a considerable heat source.
The Front Panel
This is the new front panel fitting the new enclosure.
The golden rings around the holes connect the front ground fill to the back ground fill to add an EMI shield to the inside circuits.
The rings on the back are larger so will connect to the metal parts of the switches, connecting them to the shield. The 4 mounting holes in the corners also have exposed holes on the back and will connect the shield to the aluminum enclosure.
The enclosure itself is not connected to earth ground but floating. I have created the possibility to connect the GND of the PCB circuits close to the output BNC to an exposed pad on the front panel. In that case, the circuit GND will be connected to earth GND when the BNC is connected to a DSO.
Building up the boards
I received the shipment with the three PCB's and I have built up the power supply by transferring most of the parts from the old board,added the additionalparts and tested it. No problems.
The next step was to add the solderpaste droplets to the main generator board and transfer the parts one by one from the old board. I used my heatgun to remove them and put them on the new board. When that was done, I reflow soldered the board. Because I used smaller solderpaste droplets this time, the reflow process went a lot better, with only a few tiny solder ball bearings and a lot less of the flux gue. I did not clean the board just yet, I wanted to test the functionality first.
Discovering issues
Bad Solder joint
At first I wanted to check the voltage levels of the three power rails. The +16 was only about 9V and then dropped to 3V, the negative 16V was about 30V, the 12V was OK. Although nothing got warm, I quickly shut it off. After connecting the switches and potmeters to the connectors such that the generator could function, I applied power again and saw a welcoming sinewave, albeit with some distortion at the top half. Hmmm, partial good news. When I checked the 16V rails, I still noticed a large unbalance, and that explained the distortion. The good news is that the most complicated circuit seemed to work OK, but the most simple circuit did not, but why?
The hunt for the shunt supply imbalance turned out to become more and more strange. To a point where I started to remove the parts from the shunt supplies one by one, but without any improvement. Using my Lab Supply instead to first power the +16.5V and the -16.5V everything worked, I then supplied the 40V supply, further up-stream and that also showed the correct currents and the system worked fine. Now really puzzled, I used another one of the spare generator boards and started to add the minimum amount of the same parts I just took from the board for the shunt regulator to make it function, which it did flawlessly. Even powering the generator from the second board showed the correct balanced voltages. I was flabbergasted. After thoroughly cleaning the board and resoldering the components back to the board in pairs, everything worked. Bad solder joint!
Wimpey transformer
With the generator working, I started on the counter section. However, when I flipped the power switch, the generator almost stopped working, the output dropped significantly. To make a long and embarrassing story short, I misjudged the amount of power that the counter circuit draws on the supply. I measured it at 120mA, and was under the impression that with the 50mA for the generator I was within the power budget of the transformer. We're not because there is a significant voltage drop of the raw supply, dropping the headroom for the 40V regulator, and then also for the shunt regulators.
Here is the culprit, the VPP28-180, a 2x14VAC @ 180mA. It's not beefy enough. I had that one in my stock so used it. I should have know better, and I should have tested better.
A new transformer will require a turn of the board, but I'll wait to be sure. Extra sure. This time.
To continue with the rest of the assembly and testing, I took off the 12V regulator parts from the main board, so they would not interfere and I could supply an external 12V to power the counter circuit.
Mistake with front panel
When putting everything together, I first mounted the construction for the main potmeter and the reduction unit. It fitted perfectly, unlike with the first front panel. So, happy with that result, I added all the other switches and potmeters and proceeded to slide the board into position, when I hit a barrier.
Turns out that I made a serious measurement mistake with the position of the rotary switch for the multiplier. It was bumping to the board and also bumping the reduction unit. Moving the hole up and left solved that issue, but it will mean another turn of the front panel.
This is how it looks now, so close...
This is the inside view of the now fully working instrument:
Mains related hum
When I did the first FFT tests, I still saw some 50Hz hum and some harmonics. When touching the metal parts of the front panel, it got sometimes worse, sometimes better. I did not have the main potmeter knob mounted, and when I touched the metal axel, the hum got worse. Connecting the Earth GND from the output BNC to the metal parts of the main potmeter and reduction unit did not do anything, but connecting it to the common GND of the main board reduced the hum dramatically.
It turned out that the mounting holes for the main potmeter support and the reduction unit did not connect the metal parts to the common ground of the PCB. I used star washers on each support to improve that. I also added a blank ring to the layout around one more hole of the contraption to improve that going forward.
Connecting earth GND to common GND?
I intentionally connected the front panel shielding to the metal enclosure to create a Faraday cage, but I separated it from the common GND of the board.
In my current setup, with the USB connected EMU0202, however, that produced too much unwanted mains related hum.
I added a solder tab on the back of the front panel as an option to make the connection possible. When I soldered a wire to it, and connected the other end to a solder lug I added on one of the supports for the main potmeter to connect the two GND's together, it solved the hum issue completely. But now the instrument is earth grounded through the EMU to the laptop, which by the USB-C cable to the power supply is connected to earth GND.
The other possible connection for the instrument to get earth GND connected is through a BNC cable to a CRT or DSO and that will connect it to earth GND.
The original SG505 has a switch to connect the common GND to earth GND. If you also want to have the option to separate or connect the enclosure from earth GND, you could add a toggle switch to the back of the unit, or a sliding switch on a side. I'm undecided at this moment, but it's easy to add afterwards.
Result after the fixes
After all these mishaps and corrections, I wanted to share the first FFT from the generator, hot of the press. Note that I was able to quickly trim the second Harmonic visually into oblivion (0.00002%).
Result, no hum, no noise.
Unfortunately, with H2 gone, H3 is now sticking out, but the rest of the harmonics are virtually invisible.
I'm almost there...
Power Supply V4
To counter the lost head room when the current goes up, I tried a 15-0-15VAC one that I have in stock and is much beefier with 800mA. I used one of the spare PCB's to build-up a new version, and also made some changes.
I used larger filter capacitors with 2200uF/63V, the only ones that I have with this voltage. 1000uF/50V that I used before is a little tricky now with the higher input voltage. I ordered 1000uF/63V, and also 3300uF/63V to give them a try later. By that time the transformer should be here too.
The second 75mA fuse is gone, the larger load and the filter capacitors cause an in-rush current that is blowing the fuse. I now use a 500mA PTC instead while testing, it can probably be lowered to 200mA.
When using the new transformer, I measure the ripple at a load current of 200mA (using my Dynamic Load), and I only see 400mV, the raw voltage is 42.5V, which should be enough head-room for the regulator to provide 40V.
When I increase the current to 240mA, the voltage regulator drops out of regulation, so this should give me plenty of headroom.
At a load of 160mA, the raw voltage is 43.2V and this is the expected current draw of the instrument as far as I can tell. I need to measure that again, but I need to put the parts that I removed from the 12V circuit back in to do that. That requires a disassembly of the instrument again, and is next on my list, but not today.
I added the 12V regulator components on the main board and started testing again. The generator works fine when the counter is off, but when I switch it on, the positive 16.5V supply drops, this is due to the 40V dropping a bit, and that is because the raw unregulated voltage is dropping too much for the 40V regulator to continue to provide a steady 40V. Bummer, When I used my DC load on the supply it worked.
The result of this investigation is that even a 2x15VAC is not enough, even though the transformer should have plenty of power.
Here is what I measured at the DC unregulated side with that supply:
Open : 49V, Generator 46V, Generator + Counter 42.7V: not enough.
Next try is with a VPP36-560, a 2x18VAC transformer, another one that I have in stock, a left over from the Curve Tracer project. I don't need the 560mA it provides, but this transformer type is also available in lower VA versions.
Open : 60V, Generator 56V, Generator + Counter 51V. The ripple is still 200mVp-p.
With this unregulated input, the 40V regulator must now have a good heatsink, which was not required with the lower voltages. It's easy to create some room on the PCB to add one, and I will turn it around and move it close to the edge such that it can also be mounted (isolated) on the side of a metal enclosure.
With this transformer, there is no voltage drop anymore, and the other good news is that the generator continues to function very well with the counter on.
New power supply, counter off:
And this is with the counter on:
Note that this FFT is not as nice as the previous one, it has some hum and I had to readjust the H2 but this time could not make it disappear. I now found that the Vernier adjustment changes the H2 distortion level. Looking at the circuit, that seems to make sense as it is in the feed-back loop of U1 where also the AGC is used as an input. I'm speculating that the hum could be the result of the 40V regulator needing to work so much harder due to the significantly higher raw input voltage.
Virtually no change in the noise floor (-128dBV and also in the harmonics). The 12V section is now quiet enough although for very clean measurements, you could switch it off, just in case.
THD is now 0.00033%.
Adding a pre-regulator
With the extra head-room that the 2x18V transformer provides, I can now implement a pre-tracking regulator. Because the job is now split in two, with one working on the line regulation, and the other on the voltage output, the load is shared as well, so I can use two much smaller heatsinks as well.
Besides, the split will also create more separation between the mains related hum and the output voltage. The U1 pre-regulator provides a 5V head-room for the U2 voltage regulator. Only 4 additional parts needed for this pre-reg circuit.
With the Manhattan style modification, and the long flying leads to the transformer, I can't see the benefits in the FFT, but my hope is that it will once everything is on a proper PCB.
As soon as the ordered filter capacitors come in, I can try the 1000uF versions and see if they are adequate.
In the mean-time, I'm working on the new layout for the power supply.
Almost ready to order...
The layout has provisions for the VPP36-560 (11,62 Euro's at DigiKey) transformer I have, and the smaller VPP36-280 (8,62 Euro's at DigiKey) which should be sufficient.
Stay tuned for more information while I go about making the final changes...