Show by Label

Thursday, September 25, 2025

DIY rebuild of the Tek SG505 V3

This Blog post will detail the third version 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 and 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 dimensions of the board are such that it can go in any kind of enclosure, and mounted on studs through the 4 mounting holes.


The Power Rails on the Generator PCB

These three rails are very quiet by themselves and can now move to 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.

Just when I was about to order the PCB from PCBWay, I decided to skip the idea of using a heat sink for the LM317, because it will still get too hot. It will now be mounted isolated to the side of the aluminum enclosure.

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.


I received the shipment with the three PCB's and I have built up the power supply and tested it.

The next step was to add the solderflux 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 paste 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.

After adding the control items to the connectors such that the generator could function, I applied power and saw a waveform, albeit with some distortion at the top half. When I checked the 16V rails, I noticed a large unbalance, and that explained the distortion.

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 one by one, but without any improvement. Using my Lab Supply instead to power the board 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 parts for the shunt regulator to make it function, which it did flawlessly. Even powering the generator from the second board showed the correct voltages. Something is wrong here.  I'm now going to check the generator board for possible trace "shorts" that could cause this error. I'm still puzzled by this weird error.




Stay tuned for more information while I go about making all these changes...



A Github repository is available here Note that 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.


Monday, August 25, 2025

DIY rebuild of the Tek SG505 instrument V2

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 - I ran out of the 0805 types) 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.

Aftermath of reflow soldering

This is a little deviation, but I wanted to share it with you nonetheless. I will probably move this information to a new post, but at least you know why I did not present any progress for about a week.

After a reflow process, you end-up with a lot of flux that was part of the solder paste. Unfortunately, you need to remove that completely because it will have influences on hf circuits, and is hygroscopic so will attract water that will result in corrosion. Another side-effect of using solder paste is that you end-up with a number of so called ball-bearings. They are very tiny solder balls that are the result of the part sucking down to the PCB and that will push solder from beneath the part to the sides of the component.

Below is a good example of this issue. Mind you, this is after cleaning and scrubbing the board twice already!


The whitish goo is the solder flux and you can clearly see several ball bearings. 

The remedy is to soak the board in a solvent for a while, and then vigorously scrub the PCB with a brush to remove the unwanted flux and the ball bearings. 

Sounds easy, but is not so. The selection of the most optimum solvent is a science by itself, and is highly depending on the solder paste you are using. Some have water base paste, most have not. When you soak the board with a solvent, and use a brush, you typically end up with a very sticky board. To remove that, you can use IPA 99% to rub the PCB some more, and then generously poor fresh IPA on the board to let is drop of the board, and hopefully take the sticky goo with it. After that process, you can use clean (distilled to avoid calcium deposits) water to wash the remaining IPA off, and then dry the board. You can use a hairdryer, or use a solder heat gun, as I do, because that will allow you to blow the remaining liquid out of small pockets.

That's the process, and I have been using that for a long time.

This time however, it did not go well at all. First of all, the PCB was the largest I ever used on my reflow hotplate and that meant that the solder in the middle was overly done, and on the edges just about. There was an abundance of flux and I have never seen so many ball bearings. Cleaning as I describe above did not give a good result. Even after soaking for several hours, the goo stayed and the ball bearings with it.

Rather frustrated, I finally bit the bullet on purchasing an ultrasonic bath. I had been eyeing them for a while, but thought I could do without yet another box and also save the money. So I bought one for 2 liters that is just large enough for this PCB (160mmx115mm). It fits, but not in the wire-bucket.

After trying it with my solder paste solvent in the pure state, I first set the heating of the solvent to 50C and tried it for 5 minutes. That was much, much better, but still not good enough so I tried it for another 10 min. after adding some liquid dish washing soap to further breakdown the flux. That resulted in about a 90% successful cleaning. The edges of the board were not as clean as the middle, but that's because the single transducer is in the middle, and I'm pushing the size limit. 

In the process, I noticed that one of the tiny 0402 diodes that I soldered by hand after the reflow soldering got loose (note the circle below). It must have been a cold solder joint, but I'm actually glad that happened because finding that error would have been difficult and I'm warned for the next time.



You can also clearly see the cloud of the solder paste solving into the liquid.

In any case, I'm happy with the results of the cleaning session now.

In the meantime, I may have discovered the reason for my reflow issues. It turns out that my solder paste is probably expired. I used SN4258 (Sn42/Bi58/Ag1), 138C melting point with a mesh (size of balls) 20-38um, or size #4. Unfortunately, there is no expiration date.
The effects that I see are exactly what is described when using expired solder paste. I always keep mine in the fridge, but it explains a lot. Unfortunately, I can't find the purchase date anymore but must be less than a year. I ordered it when I was working on my reflow hotplate. Lesson learned...


First Power Up

I connected the 12V rail to my Lab Power Supply to keep an eye on the current and used a jumper to select the frequency ranges, and listened for the relays clicking, which they did.

I then added the +/- 17V rails again using my Lab Supply and set the current to the expected value of 35mA. That didn't work, the supply went into current limiting, so something was wrong. Upon inspection, it turned out that I goofed with the location of two of the NE5534 Opamps, they were rotated 180 degrees. The marking is very difficult to see on them.. Unfortunately, trying the power again did not result in a lower current. I probably fried them, because after replacing them, I got the expected current result.

By then I could use the current shunt power supply for the SG505 and use that from now on. While checking the voltages, I noticed that the +17 could no longer be adjusted higher than 16.4V, so I lowered the -17V to also 16.4V to have symmetry. I need to investigate that in more detail later on, but I now had the 12V rail and the +/- 16.4V rails.

I then added the three potmeter connections and used my DSO to look at the generator output. Nothing, just some weird very low frequency flopping of the trace. That smelled of a bad connection in the overall loop so I hunted for poorly soldered parts. It took a while adding some flux (here we go again) and using either the heat gun or my solder iron to go over all the possible parts. Eventually I found the culprit and was presented by a beautiful sine wave. The frequency setting worked, the vernier worked and the frequency ranges worked as well.

With that result, I can now investigate and test the output amplifier and that's next on the list.

Wired-up all the required parts to make the amplifier functional, and eventually got it all working. 

Oops!

I found one serious issue that I didn't see when using the prototype. I never tested the counter and then also looked at the sinewave distortion. In addition, I also used a slightly different pick-up point to tap the output frequency for the counter. That's a mistake, the 1K series resistor loads the feed-back loop of the output amplifier way too much due to the clamping of the diodes on the other side. I even tried 10K and that's still not good enough. Higher values result in no signal at the diodes. 

The fix is rather easy and only involved a single trace cut from RV2 to the 1K of the squarer circuit and connect it now via a jumper wire to the Sine Out test point. I will fix this in the schematic and layout of course.



Tuning the highest range

While it is still lying on my desk and easily accessible, I decided to tune the X10K range because the frequency was a little too high compared to the lower ranges. I replaced the 100pF capacitors for C16 and C26 to 140pF. I didn't have that value, so I used a 150pF probably an X-version. That resulted in a frequency of 105KHz instead of 100KHz. The 140pF COG should get it closer. 

Looking into the rail situation

I also investigated the fact that I could not get the positive rail up to +17V, while the -17V worked. The raw supply is also a little lower than I hoped for with the transformer I'm using, so I adjusted that output to 40.0V. With that, I adjusted the rails now to +/- 16.4V so they are equal. I don't think it will matter much. The original SG505 used +/- 15V rails, I decided to use the SG505 Option 2 rails that are +/- 17V which will give a bit more head-room for the Opamps.

I have not made any distortion measurements yet, I'll wait until everything is inside the enclosure and I have shortened all the leads that go to the front panel to the appropriate length.

Using the front panel

The next step is to mount the controls on the front panel and the PCB in the enclosure. I also need to make a few mechanical adjustments to the front panel because the holes do not match they way I designed it, and I made a mistake with the size for the main potmeter. These turned out to be a KiCad footprint issues and the result is that the holes are too small. Easy to fix but I also need to move the hole for the BNC connector a bit. Obviously, all the changes will be updated in schematics and the the Gerber files that I will publish.

Putting it in the enclosure

I finished the assembly of the front panel and put the main PCB inside the enclosure. It all works as advertised, but I had to make several changes to the front panel design.



Here is a view from the back that shows a few more details.


The power supply is still outside the enclosure as you can see, and I connected it with flying leads that still look untidy.

Now that I have the main potmeter reduction unit installed, the adjustment of the frequency is very precise and feels great. If you're in doubt of getting one, do it, you won't regret it.

Adding the frequency counter

I also fixed the counter loading problem that I mentioned earlier so I can now start to add the Arduino Nano, the opto-coupler and the OLED display.

The installation went pretty easy, also because I used tape to secure the display to the front panel.
However, making it all work was more involved than I anticipated, even though I built a prototype that (seemed) to work very well. After a few hours of struggling, I ended-up making several hardware and software changes to make it work reliably throughout the frequency range. 

I eliminated the squarer circuit and replaced the BJT with a MOSFET to reduce the load on the frequency generator tapping point. I could now also use a much larger series resistor, and placed that very close to the generator output again, instead of using the output amplifier because that signal can be attenuated.
The trace that goes from the generator output to the MOSFET for the counter is very long, so I wanted to reduce the current and hence the possibility for cross-talk.

I also had to power the opto-coupler open collector output with the Arduino 3V3 instead of the 5V rail to reduce the 5V p-p hammering on the port. That made a significant improvement to the precision of the counter.

Lastly, I tried to get a bit more fancy with the frequency count display, and wanted to add decimals for frequencies below 1KHz. After trying for some time, I realized that the library I'm using is optimal for the higher frequencies, but not so much below 1KHz. For those frequencies, to get a decimal digit, I needed to select a gate time of 10s which makes the counter unresponsive for this application. Selecting a library that fixes that will not work well with the higher frequencies, and I have not figured out how to use both libraries and select them dynamically. It is what it is. The solace is that the counter is a lot better (more precise) than the frequency dial of the original SG505. If you need a higher precision, use a real 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!

Next step is to mount the power supply in the top half of the enclosure and create the correct length for the power interconnects. By then, it's time for some distortion measurements, some tuning/calibration and see if I need to add shielding to the inside. I think I will...

Oh boy, oh boy...

I finished with putting everything inside the enclosure, calibrated the 0dBm output level and found out that I need to make changes to the -10dBm switch circuit.. I have a new set of values that I tried and worked for the Pi attenuator but will need to take the board out to replace the resistors. That can wait. 

I wanted to make a distortion measurement to see where we are:


The 50Hz mains is everywhere, I kind of expected some of it because there are two transformers in the box but was hoping some serious shielding would help, but this is out of the question. The good news is that the principle has pretty good harmonic distortion results. THD h2-12 is 0.00063%, but's it's overwhelmed by the hum. 

It's abundantly clear that the power supply has to move out. There is no place for both of them in this house. Bummer. 
That means going back to an earlier idea and that was to use a separate enclosure to house the power supply and keep it away from the generator. That's pretty easy to try with some longer connection leads for the power rails.

Unfortunately, even with the generator in a metal box, the hum and the AC-DC supply generated noise is still there.
Here is the result with the +/-17V connected, but without the 12V supply connected. There is no sine wave because the relays don't work. This is kind off the noise floor.


It seems that the shunt supplies are working OK, it's the 12V supply and circuits. 

This is with my lab supply feeding the 12V rail, activating the relays.


And below is the same measurement but with the Arduino Nano out of it's socket. I also did a quick trimming of the H2 reduction, and that worked very well. Went from -110dB to -126dB.


The silver lining

Without the 12V AC-DC convertor, and without the Nano/LCD display, the generator works fine. 

THD-N is 0.0033%, THD H2-12 is 0.00020%, with H2 at 0.000050% and H3 at 0.00014%
That's good to know and very good news! Now I need to find some solutions.

Finding the root cause

We already established that it is mainly the AC-DC 12V supply, but is there more to it? I tried it also with the Nano powered, but pulling the LCD connector. This dramatically reduces the noise so it's not the Nano itself, adding little peaks at 15KHz and 19KHz, but more the i2c signals and the power devices on the OLED board itself:



Using a 1uF blocking capacitor and using the E-MU to look at the AC-DC 12V rails, it sees this:


And without the OLED display this:


So the dominant culprit is the OLED display, and there is also seems to be some back-coupling from the generator into the 12V rail. On a hunch, I disconnected the generator output signal to the counter input circuit and presto, we have proof that the harmonics are from the Nano and counter input circuits.


When I pulled the opto-coupler, the harmonics went away. Putting it back in and removing the 3V3 for the open collector pull-up did not make a difference. Disabling the Arduino loop reading the counter did also nothing. It sure looks I need to cut the power to the Arduino and the display to make that circuit quiet.

The two part solution:

Powering the 12V section of the Arduino counter with a SPST switch, I can now eliminate the generated noise from that circuit. It works great, when I power the 12V with my lab supply. Have a look:


With the Arduino Nano circuit turned on, it looks like this:


Mind you, the noise is still below 120dB, but the root of the problem is the AC-DC 12V supply. That will need some serious filtering, or another solution.

The second part of the solution

I need to filter the AC-DC supply much better, or create a different solution. Seriously reducing that noise is going to be a challenge to force it below 120dB. I first need to profile that supply better.

The 12V supply draws 46-48mA when everything is powered.
We're looking mostly at 50Hz mains related hum, plus many harmonics in the higher frequencies.

I can try to filter the hum and noise, but the whole reason for the AC-DC convertor feeding the separate 12V supply and to avoid coupling to the generator fell flat on its face. That's not the solution.

So, when the coupling is there anyway, I might as well do away with the 12V circuit and tap the 12V rail from the main supply. I quickly added a few components to the 5V section of a bare Jung supply PCB and modified the output for 12V. It's actually 11.5V but that has no consequence. When powering the 12V rails with the new supply, we're making real progress. This is when the Nano supply is switched off:


I still want see if I can get rid of the mains related hum on the left, but the part on the right is now clean.

To give myself some peace of mind, I also tried the Jung SuperReg again for the +/-17V rails. Surprisingly, with the current configuration, it produced more harmonics. Go figure.

So, all in all, I decided to redesign the power supply by removing the AC-DC converter, and add a third rail fed by the 40V Vreg supply, to provide the 12V supply. The 12V rail does not connect to the common ground, so it stays floating from the rest. 
I tried many things to reduce the mains hum and was partially successful by using more capacitance on the main supply.

The next step is to work on the grounding/shielding of the generator. Right now, the front panel is isolated from GND, and I need to change that now, and also ground the switches and potmeters on the front panel. The whole generator will continue to be isolated from earth ground.

Major changes and a departure from this version

After considerations off the issues described above, I have now decided to make a significant change to the generator, now that the power supply is no longer going to be in the same enclosure as the generator. I'm now going to use a full metal enclosure for the generator and put the noisy parts of the power supply in another enclosure.

This means that with the other changes I already had to make/want to make, I will go through a redesign of the main PCB, the Power Supply and the Front Panel.

The sponsoring agreement with PCBWay requires a new Blog for every set of PCB's that they sponsor, so I will start a new Blog for the new Version 3 of the DIY SG505 rebuild. This one was already too long, so it's a good reason to start a new one anyway.


The V3 information can be found here:  



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.


Wednesday, August 13, 2025

Building a new 100MHz Differential Probe

This post will describe the DIY build of a new 1MHz, a 10MHz and a 100MHz differential probe with several power alternatives.


In 2017, my buddy in crime Bud and I (well, mostly Bud) build a DIY X10 100MHz differential probe that has been popular because so many other makers have build it, or even changed it to their liking. We know of a 1x and a 100x design modification. Our earlier design was described here:


Unfortunately, that 2017 design has some hard to get and rather expensive parts, especially the Opamps, the voltage regulator and also some hard to get capacitors. 

In early 2025, Bud has started a new project to revisit the design and look into making the probe easier to build and make some desired and some needed improvements. He investigated the whole concept again and came-up with a main probe PCB that can be used to build a 10x 100MHz, a 10Mhz and a 1MHz version. The 10 and 1 MHz probes produce less noise. The other constraint on the earlier design was the external power supply. Now that we have USB-C PD capabilities available to us, Bud added a number of power options that can be added to power the probe to your liking. 

When testing my diff probe, we found that only GaN technology, low power (<35W) good quality USB-C PD adapters are quiet enough to be used with the diff probe. Be aware! Below we explain why. 

Another main issue that he wanted to address was a 3D printable enclosure and also making the probe slimmer so it's easier to hold while probing around with it.

There are some more improvements and refinements and if you're interested, you can follow along his very detailed design and test efforts here:

Bud has built several probes and verified and tested everything. Now that he is done, I will also build two probes and can verify the BOM's and describe the building procedures here and also add some more information that will hopefully help others building this very useful instrument. 

When I'm done (and only then), the details like schematics, pictures, the BOM's and Gerber information will be available in a new Github project. I will also enter the information in the Shared Project list of my sponsor PCBWway so PCB's can be easily obtained there too.

If you're looking to build a diff probe, all I can say at the moment is to stay tuned for a little while longer. I will most likely be finished in October/November of 2025, so if you can hold-off a little longer, I recommend you do so.


What I'm going to build

I already have the earlier 100MHz probe, but wanted to build another one so I can test it with my gear that is a little bit different from what Bud has or uses. More specifically, my DSO is a 350MHz version, and while he has a modern and much more improved and new DSO (12-bit, touch screen, etc, etc. I'm jealous!) it is a 100MHz version. He has a function generator, but that only goes to 60MHz. I have a fast edge (<1ns) pulse generator, and also a nanoVNA.

So I completed two purchase orders that is mixed between LCSC and DigiKey to get all the parts for the 100MHz version, most of  the different parts for the 10MHz version, and then the USB-C based power supply items.


Building the 100MHz probe

The schematic is largely based on the previous design, but with a number of refinements and changes. The input attenuator is changed so we have equal resistors, and that allows us to have equal capacitors that are now parallel to every resistor.

As with the old probe, during the verification and calibration, you will have to add capacitors to the not placed (NP) C11 and C12 so the trimmers C15 and C16 can properly adjust the AC compensation. There are extra values listed in the BOM that need to be ordered so you have the possible values at hand.
The next change is the first gain stage. The positive output now has an optional offset adjustment that can be installed when you need it. When you don't need it, don't install it because it degrades the output a little bit. Both outputs from the gain stage go to a summing amplifier. Unfortunately, Bud was unable to find suitable alternatives for the two Opamps, which may be a little difficult to get.

The rail splitter Opamp is replaced by a device that is easier to get, and there are several alternative devices that can be used. Some refinements were necessary because we no longer use the difficult to get small Tantalum capacitors. The ones we use now need a tiny resistance (act as a snubber circuit) to make everything stable.

Next additional and optional circuit deals with a power on LED. Depending on the way you power the probe, or what power supply you use, you can populate these two parts to get a visual power indication.

Last major change is the power input circuit. Note that there is no "real" connector on the PCB, but only two pins. The idea behind it is that you can add a selection of tiny power modules (called daughter boards) to the bottom of the probe, based on your particular taste or need. More about that later in the power section.

Lastly, as you can see from the picture at the beginning of the post, there is now a 3D printable enclosure available.

Here is the schematic for the 100MHz probe:


The PCB looks like this in the 3D viewer:



You will note that it's a much slimmer design, that will be easier to hold and maneuver when you're probing around in a circuit.
Note also that the middle pin of the front-end will have to be removed to create the creeping space. The 3D model for the header is not modified, so it shows all three pins.



The bottom of the PCB houses the rail splitter circuit, and is also the place where the power supply PCB will be added. That's where those four square holes are for. Bud calls these little boards Daughter Boards.

Below is my version of the probe:


The calibration went without a glitch and I added two 47pF trimmer caps to get the AC gain in the range.

 

The new Power Supply Options

There are two components to the power supply. One is the input, and one is the regulator. The three probe models require different input voltages, 5.3V for the 100MHz and 15V for the 10 and 1MHz probes.

The USB-C input board

The input voltage for the probe regulator can come from a variety of supplies. The most optimum is a USB-C PD Trigger Board board that fits inside the probe enclosure. These Trigger Boards are very inexpensive, are widely available, but you have to select a certain type and size. 


These Trigger Boards communicate with the USB-C Wall-Wart supply, and request the desired voltage. There is a CPU on the Trigger Board that takes care of the rather complicated communication protocol. 

These tiny boards are available in different voltage configurations, like 9V, 12V, 15V and 20V. Although the voltage you order is fixed for the board, you can still change it by closing or opening a bridge (a 0402 0 Ohm resistor or a solder blob). So 9V can be configured to 12V by adding a bridge, and 20V can configured to 15V by removing a bridge. 

The board in the picture is a 20V version, and if you remove the resistor in the top right, it will be configured for 15V.


The 100MHz probe requires the 9V Trigger Board version, and the required voltage regulator will bring that down to 5.3V. The 10Mhz and 1MHz probes require the 20V Trigger Board version and the required voltage regulator will drop that to 15V. I ordered a number of each of them, they typically come in lots of 5.

These Trigger Boards need to be securely fixed (glued) on to the probe regulator board. The voltage regulator board is fixed to the probe by soldering 4 power/support pins. The Trigger Board with the USB-C connector needs to have a firm connection to the Trigger Board, because of the force that will be applied when you push the USB-C cable into the connector. 

The output of the Trigger Board needs to be connected to the probe regulator board by two wires that are soldered on the pads.

Below is a picture of Bud's version.


This construction will fit snugly into the 3D printed enclosure.



Obviously, these USB-C Trigger Boards need to be fed by a USB-C cable going to a Power Delivery (PD) supply.

The diff probe does not draw a lot of power (about 50mA) such that a 20..30W supply for mobile phone chargers will do. 

WARNING
I was planning on using a 100W supply myself, because I wanted to use it for many other applications. The one I ordered turned out to be a mistake! Don't get a high power one, it may not work well with the probes.  Read on to find out why.

The probe voltage regulator options

Bud create a number of voltage regulator boards to satisfy your particular need or preference.  There is a switched power regulator, an LDO linear regulator and a discrete voltage regulator.

As mentioned earlier, there are two output voltages required for the probes from the regulator, 5.3V for the 100MHz probe, and 15V for the 10MHz and the 1MHz probes. The 100MHz probe requires an input voltage of 5.3V (+/- 5%), to create accurate +/-2.62V positive and negative rails for the Opamps.

The 10MHz and 1MHz probes require an input voltage of 15V to create the +/-7.5V (+/- 3%) positive and negative rails.

I decided to build a linear regulator (the VREG SOIC-8) and also try a VREG discrete regulator for the 100MHz version with a  9V output, and another VREG discrete regulator for the 10MHz version with 15V output.

The VREG SOIC-8 daughter board

The VREG SOIC-8 Daughter Board (DB) is intended to be used with the 100MHz probe, because it outputs 5.3V and requires an input voltage of 9V. 

It can be configured with a number of LDO voltage regulators. I have decided to use the LP2951 LDO voltage regulator. It comes in an SOIC8 package, and Bud designed a Daughter Board specifically for these devices.

Here is the schematic:


As you can see, there are a number of voltage regulators that can be used on this PCB.

Here is the 3D picture of the PCB for it:


The parts are located on the bottom of the PCB, here is the top:



And here is a slanted 3D picture to make it a little bit more clear:



The USB-C Trigger Board and the Voltage Regulator combo

I populated the SOIC-8 low drop regulator board, and connected it to a 9V Trigger Board. That all worked well, but I ran into a gotcha that took quit some time to investigate.



These two boards need to be firmly glued together, but I first wanted to see what the power-up sequence was for the whole chain (USB-C PD supply, 9V Trigger Board and the 5.3V SOIC-8 regulator. It turns out that it performs really well with a nice and gradual power-up. The output voltage was a perfect 5.3V




Next step is to glue the boards together after aligning them with the enclosure.



Detecting a nasty surprise...

After I installed the board combo to the probe and verified the calibration and while further testing the probe, I noticed nasty spikes on the probe output signal. Up until now, I had used my Lab Supply to power the probe and running the calibration and tests. The output was noisy, as expected, but otherwise clean.

Eventually, comparing notes and measurements with Bud, we found out that the root cause of my problem (he does not have these switching glitches) is the 100W USB-C wall-wart I purchased. When I looked for one, I wanted to make sure that it produced all the voltages and I could not find many that listed them. I ended-up buying one that was advertised as a laptop charger and that may have been a mistake. 

I purchased mine from Amazon that is called a Basicvolt 100W laptop charger. This is what it shows on the label:



Note the second caution. Is that the give-away?

It turns out that this supply is very noisy. So much so that it is unusable with our probe. The hf switching transition stuff comes through everything. Below is the wall wart output at 20V. The ripple is a non issue, the regulator will take care of that without even blushing, but the hf stuff at several 100's of mV is another story. This screenshot is from the supply, the probe is not connected.


The output of the connected 9V Trigger Board looks like this. Note the 2V p-p hf noise: 


The Trigger Board itself does not contribute of create the hf noise. It only tells the USB-C supply what to do.

Here is what the probe output looks like on my DSO:


It's a little hard to see, but the hf is very present on the GND output signal of the probe. The circuits on the regulator and the probe itself filter the hf noise a lot, but it is not sufficient.

The net-net is that I need to change my USB-C supply and see if I can get a better one. The trouble is that almost all of these power adapters are specified for laptops or phones, and they don't care. 

Bud is using 20W and 30W wall-warts and they are clean, so I ordered a 20W one as well.
This is one of the ones he is using:

Here it is with a 9V Trigger Board:


Mine is in the mail and will arrive this evening, so I can report more about this issue.

In the meantime, I tested a genuine Apple PD charger that supports 5 and 9V outputs.
This is the result.


The switching noise is not even that high at 150mVp-p, but the minute 60mA load is already enough to cause a ripple. Not good enough for the diff probe.

Just for kicks, I then tested my Dell laptop supply, also a USB-C PD version.


Unusable! 
By now I was getting a bit worried...

The one I ordered is this small power supply, hoping that would be the answer:

This is a simple USB-C PD supply.
However, below is the zoomed-in switching noise riding on the output:


Note the V/Div scale of 1V! This is a terrible supply and certainly unfit for the diff probe. Even when you use it to just charge a phone, the noise it generates will be everywhere. Very badly designed. How did that get through any certification? I returned it right away.

After more consulting with Bud, it transpired that he is using two GaN technology wall-warts. Could this be the answer? With the GaN technology, the switching frequency can be up to 10MHz. The switching noise is then much easier to tame.

So, I found a seemingly suitable one and ordered it: 

When it arrived, I found that even the packaging was very well done. It felt solid with a surprisingly "heavy" weight of 138 grams. My hopes were going up. It produced this: 


Notice the much higher switching frequency, and the V/Div scale at 200mV/Div. 
However, I was still disappointed, so with some more consulting from Bud, I tried to tame this tiger by adding a snubber circuit of a 4.7 Ohm resistor and a 4.7uF capacitor, mounted right on the 9V Trigger Board. I then also used two 1K at 100MHz ferrites to connect to a 510 Ohm 1W resistor that acted as the 60mA load. All four added parts are 0805 size.




With this addition, the switching noise is completey gone. All that is left is the residual noise of the adapter, my environment and that of the DSO.


Time to take a step back, and realize what we have here. Bud already put a 10uF/1 Ohm snubber on the probe in addition to two ferrites. Is that already sufficient?

So the next step was to use a clean 9V Trigger Board, connect it to the diff probe and measure the noise again.

Below is the setup I used. 
The new GaN USB-C PD supply is connected through a good quality USB-C cable of 1 mtr to the USB-C monitor connected to the 9V Trigger Board. I did not want to modify the battery supply connection to the probe, so from there it connects to a 9V battery adapter that is plugged into the 9V battery holder connector. The battery holder is connected to the discrete VREG Daughter Board mounted on the probe through at least 35cm of plain but flexible 26AWG wire. The diff probe is outside the shielded enclosure. The input of the probe has no signal, but is terminated by a 50 Ohm feed-through. This must be a realistic but worse case condition setup.


And this is the output of the diff probe itself on my DSO.



Apart from the inherent noise generated by the diff probe amplification, there is no switching noise from the adapter visible. So the on-board measures are already sufficient to remove the switching noise!

The net-net is that we now highly recommend that you use a good quality GaN technology low power PD  (<35W) adapter powering the diff probe. The designed-in filtering on the DB regulators and diff probe should be sufficient to eliminate the adapter noise.

However, if you end-up with one that is a bit noisier, you can still add the snubber circuit right on the Trigger board as I tested earlier.

Problem identified and solved.


A battery + VREG power option

Because of the noise mishap, and while waiting for the new wall-warts to arrive, I switched to using another power option for the probe. Obviously, the most optimum low noise power for the probe is by using a battery. I decided to keep it simple and selected a 9V rechargeable battery to power the VREG board.



Because I will also build an 18V supply by putting two 9V cells in series for the 10MHz probe, I wanted to add the high voltage protection that Bud designed for the discrete VREG option. When I tried it, it nicely cuts out at about 13V and drops the output to about 3V, so no harm is done when I accidentally use the 18V battery supply with my precious 100MHz probe.



Below is the construction. I use a 9V battery holder that has a power switch. They are widely available. I then soldered two flexible 26AWG wires to it and they were soldered to the VREG board +VIN and -VIN solder pads. The VREG board lowers the 9V to the required 5.3V for the probe with more than enough head-room for a decaying cell voltage.


Because there is no strain relief for the wires, I decided to solder the wires coming from the other end of the VREG board, so the folding of the wires is over the board and I hope that will create a form of strain relief.

Shielding the probe

When the power supply worked well, I continued putting the probe together with the required shielding. The probe functions without it, but your fingers and near equipment will have a large effect on the signal fidelity due to the close proximity to the very sensitive attenuation parts at the input of the probe. Any additional disturbence gets amplified and will show itself on the DSO. Unfortunately, Bud found out that shielding at the inside of the enclosure ruined the calibration and functioning, so he elected to add the shield the outside.

If you're experienced with this, you could try a conducting paint spray to cover the insides of the enclosure and figure out a way to connect that layer to the earth ground. I have no experience with that, so I skipped it.

When Bud put together his probe, he used a copper foil trace to go from the SMA connector to the shielding in the front, and wrapped the shielding around the closed probe. He then used shrink-wrap tubing to make it looks nice and prevent accidental grounding of the shield (earth ground!) to the DUT.




pictures are from his Hackaday post with details: 


I wanted to try another approach, that would allow me to open up the probe without damaging the shielding.

Here is the result of what I did:



I added the copper foil shielding to both halves of the enclosure in two sections. A smaller one for the front part just past the bend to the thicker part, and one larger section just overlapping the front part by about 3-4 mm. As you can see, I folded the shielding around the edges to the inside of the enclosure. I then used a sharp knife to cut it nicely. 

The top half copper foil has an extra tab and I soldered the ground wire to it before pressing it to the plastic, to avoid warping the plastic enclosure. The other end of the ground wire was soldered to one of the SMA connector ground pins.

When you close the probe, the foil gets pressed together at the seams and makes surprisingly good contact. 


The covered trimmer holes need to be opened on the one side, and the screw holes on the other. Note that you need to cut away the shielding around the two holes for the capacitor trimmers, because you can create a short to ground if you use a metal screw driver. I use the plastic trimmer tool in the picture that has a metal insert the size of an 0603 part as the tip to reduce the metal influences.

The resistance from the SMA connector to the very beginning of the probe tip was about 0.5 Ohm to both halves, so a perfect connection. My "finger" effects on the output signal are now completely gone. It works better than I expected and hoped for.

When I calibrated the probe again while in this shielded enclosure, I was able to get a true flat line for the CMRR and a 0mV offset adjustment. Unfortunately, the capacitance trimmers are now at the edge of their range so I need to change the 47pF caps to 39pF, which I don't have in the 0603 size yet. They are on their way.


I will not yet add the shrink-wrap tubing yet because I will need to open the probe a few more times. At least one time to change the trimmer capacitors. I also want to experiment more with the USB-C PD power option.

The calibration procedure and some measurements with pictures will follow soon.


Building the 10MHz probe

The basic schematic is the same as the 100MHz probe, so it can be built on the same PCB, but there are several part and part value differences.


One of the major reasons to build a 10MHz and a 1MHz probe is to reduce the output noise of the probe, which is quite substantial for the 100MHz version. Initially, Bud was able to find two alternative Opamps, the OPA2810 and the OPA810, that are 1/3 the cost of the LTC6268/9 pair of the previous model. 

In order to finish building this version, I needed to order a few more parts. In that process I noticed a few items that Bud and I will use to update the BOM, like we did with the 100MHz version. Unfortunately, the main Opamp is on back-order at LCSC and the C trimmers are no longer available but there is an alternative so we're looking into that. It will take a few more weeks before I can finish this probe and have all the documentation verified.


Building the 1MHz probe

As with the 10MHz probe, this version can also be built on the same PCB, and again there are part value differences to make it a 1MHz probe with the least amount of output noise. It uses the same Opamps because Bud could not find less expensive ones that had the right specifications.




At the moment, I have no plans to build this version myself.


The Calibration Procedure

When I have the new USB-C adapter and the 39pF caps for the 100MHz probe, I will describe the calibration procedure and add pictures of the calibration and testing of the probe.


The DIY pulse generator

In order to create a pulse that can be used to calibrate the probe, Bud and one of his friends designed a little circuit that can be put together easily on a protoboard, and uses parts that are commonly available. More information can be found on his Hackaday postings.

Here is the circuit:


I didn't have the 2N7000, but used a BSS100 MOSFET.


I'm powering the contraption with my Lab Supply at 30V to create a 30Vp-p pulse. The leading edge has about a 330nS rise time. I'm using one of my DSO probes to trigger the waveform from. The input signal comes from the 1KHz calibration output of my DSO. If you use the scope probe, you should not connect the scope calibrator GND connection, because it will create a ground loop. Use only one of them.

I used my grabber lead contraption from my earlier 100MHz diff probe to connect the calibration signal to the diff probe. There are 510 Ohm resistors in series of both leads to reduce reflections due to the inductance of the leads.  I may have to select other resistor values for the new probe.

Look at the older Blog for details.







Stay tuned for more...