Mar 022024
 

Sense Wire Loop

The first step to prepping for installation is to clip the sense wire used for testing and convert it into a loop – to act as a terminal on the board. The plan is to clip the existing sense wire in the controller and insert “sketchy” into that line. In order to make that work we need to have an easy way to connect both ends of the clipped sense wire. A loop on each end of the board will do nicely.

Find Power

The next step will be to identify the cleanest way to get power to our board. As it turns out the controller has regulated 5V rails in the middle of it’s board AND (lucky for us) there are two adjacent holes on those rails exactly in the right place for our ribbon wire. Here you can see the red and black ribbon wire matched up with the rails… carefully inspecting the circuit to make sure the polarity is correct and precisely where these wires will come through the controller board.

Not visible in this shot, on the top side of the board near the top of this picture I identified the 5V regulator and it’s pins to make sure which of the two rails in the middle are positive and negative.

Power Leads Inserted Top Side

Here I’ve inserted the power leads from the amplifier into the controller. They fit correctly flush up against the board and it’s clear that the colors for + (red) and – (black) match up with other connections on the board. This is another good sign that I have the polarity right.

Power Leads Inserted Bottom Side

Viewed from the bottom side we can see the wires coming through the holes in the power rails on the controller. It all looks correct (again checking carefully) so we can solder it in.

Power Leads Soldered

Here is a close up inspection of the new connections soldered into the rails. No unwanted solder bridges. Nice smooth, shiny solder joints. Some of the other nearby joints leave holes uncovered but otherwise they look fine… so I resist the urge to reheat them.

No Melted Insulation Top Side

One of the reasons I resisted the urge to re-heat those other joints is because I don’t want to begin melting insulation or causing other trouble. The connections themselves are electrically just fine – -it doesn’t matter at all (except maybe aesthetically) if the holes aren’t completely filled in. But, it DOES matter if the insulation melts potentially causing a shorting hazard.

Here we can see that the newly installed wires to power “sketchy” are not melted at all. That means there was just enough heat for just long enough to make a good solder joint.

Clip Existing Sense Wire

Now that power is available to the amplifier board we need to put it in line with the sense wire. The existing sense wire is the white wire in the maw of the clippers. I have dry-fit the board into that location in the box and so I know I can clip the sense lead right in the middle of that location. One side of it will bend back to the input of the amplifier and the other side will bend back to the output. This will leave just enough extra lead to safely solder the connections and move the new board around to the right position in the box.

Carefully Calibrate Stripper

A tricky part of the installation will be trimming the insulation off of the freshly clipped sense wire. It’s important to get this right the first time… because if this step goes wrong then there will be a lot more work to do replacing that wire and it’s other connections.

The wire strippers have a small bolt and nut that can be slid into the correct position to calibrate the strippers and then tightened down. So, with the calibration bolt loosened, I take a similar wire that I can use as a gauge and carefully close the strippers on it until they just barely cut all of the insulation without nicking the conductor. Then I carefully tighten the bolt and re-check that the calibration didn’t move during that process. It seems like a lot of work – but sometimes there is no substitute and I “really” don’t want to have to replace those wires if I can avoid it so it’s worth the effort.

To make sure I have it right, I strip a few more bits of insulation off of the test wire and inspect the conductor to ensure it’s not nicked; all the while making note of the pressure required to squeeze and pull the insulation so I know what will feel right when I do the real thing.

Sense Lead Cut, Stripped, and Tinned

Once I’ve stripped off about half a centimeter of insulation from both halves of the sense wire I tin the ends so that it will be easy to get these soldered into place. With tinned wires, one can push them through the connector loops and give them a quick hit with the soldering iron to get them connected. Then when both are done it’s easy to go back and re-heat them and fill them in a bit without having to worry much about the board or connections moving around during the process.

Sense Leads Inserted Into Loops

Here is a shot of the board in place, top-side up, with both ends of the sense wires “tacked” in place.

Sense Leads Soldered

With that done, we can go back and re-heat the connections and fill them in a bit to make things good and solid. Here is a shot of that from the top at about the angle I saw soldering them.

Side View

Here is a shot more from the side.

Sense Lead Output Close Insepection

Just to make sure the connections are solid I used the camera to take close-up inspection shots — here is the output lead close up.

Sense Lead Input Close Inspection

Here is the input lead close up. This shot is a bit motion-blurred, but it’s clear that the connection is solid and shiny.

Installed

With all of the wires connected it’s time to flip the board over into it’s permanent location. Part side down, directly over the input connections. This protects the parts by keeping them (as much as possible) in free space away from the top, and makes the circuit easily accessible for any probing I might want to do later.

Smoke Test – Green Light!

A quick look around to make sure everything still seems correct and then we turn on the power. Hurray! No magic smoke has escaped and as expected the green light is on! The tuner is virtually always in a tuned state so this is what we expect. It looks like the project is a complete success.

Hrmmm, That’s Not Right

… except, after letting WSPR tune up on a few bands I notice that the green light never seems to go out. Occasionally, as I recall, the amber light should come on while the tuner is working it’s magic… and that doesn’t seem to be happening.

So, I hook up the meter to the input side of the amplifier via some clips and I see it’s barely a diode drop below the 5V rail… or should I say a BE (base, emitter) drop.?

It seems that my sketchy open collector signal amplifier works too well. It’s clear that the signal line from the tuner is not open, and it’s also not shorted, nor is it being pulled to ground as expected. In previous tests I noted that the voltage did vary quite a bit as if some signal were making it through that line and into the controller… so I expected that I could amplify that signal and get the desired result.

As it turns out, that was not a good assumption… and I will have to go back to head-scratching, and perhaps go and investigate connections out near the antenna to see what’s actually happening there.

In any case, this was a fun little project and it does do what it’s designed to do… it’s just that this sketchy idea has turned out not to be the right solution. I guess that makes it a successful failure.

Feb 142024
 

There are a lot of ways to build quick prototypes. These days it’s even arguable that you should have a PCB made since you can get them so cheaply and quickly… and then also, if you go on to make a production grade project you’re further along.

However, I decided to do something really old school and just put the parts into a perf board. This is actually a pretty rare way of doing things these days since I won’t be using any kind of purpose built prototyping PCB, nor manhattan style construction, nor any of the other popular methods. I’m not even going to use perf board pins (that’s another old-school method… can you even buy those anymore??)

Instead, I’ll plan it out so that only the component leads and a bit of wire are required. With a bit of practice this method is perfectly fine for anything that’s not going to be using RF (because there is no ground plane of any kind with this method). This method is just shy of being sculpture… but working this way is quick because it doesn’t require anything more than what you have on hand, and therapeutic because getting it all together is a bit of an art form: working with your hands, bending wires just right, growing the circuit somewhat organically one part at a time… limited only by the parts themselves, your patience, and your imagination.

Plan the layout.

Lay a piece of perf board on a piece of graph paper, and imagine that each crossing point is a hole in the perf board. I like to work from the top side with an “x-ray” view of the wiring. Actually, the wiring might be on either side so “x-ray” means you can see it no matter where it is.

This approach will limit you to making circuits that don’t require jumpers (mostly)… and that tends to keep things simple. It’s not that you can’t use a jumper if you wish; but it’s easier if you avoid them… and that will make you think a little more carefully as you proceed.

You’ll also want to be very careful about the pin-outs of any components you’re using. Check everything more than twice as you lay out the circuit. It sometimes helps to actually pick up the part, find the correct pins, and put it in the perf board somewhere just so you can see and feel how that goes together. Not everyone can do all of that in their head (I can, but I have had a lot of practice). Seeing your drawing right next to an actual part in a board can be a very powerful way of making it all “real” so that you can reason about it without too much effort. The more time you spend relating the two physically the easier it will be (eventually) for you to see that process in your mind’s eye.

Generally proceed from input to output; complete the nets for any given component before moving on to the next (but have in mind where the next connected parts will fit into the layout); and try to keep the rails on the outside edges of the board. By working this way, eventually you will complete all of the work for one section of your design before moving on to the next section. As you complete each section it’s a good time to check that it’s really complete and everything is properly connected before moving on to the next.

Don’t be afraid to start over if you run into a dead-end of some kind… like painting yourself into a corner in a room, it’s possible to go through this process and eventually find out that you don’t have room for something; or maybe you might discover a better layout along the way. At this point it’s only paper! Toss it out and start again… this time starting from experience… it will go faster and be better each time you iterate through this process (if you need to).

After having done this for a while, I can usually get through a complete design in a single pass with almost no re-work… mostly because at this point I can see forward several steps at each stage and because I can have a rough block-diagram kind of model in mind even before I begin. All of that comes with experience and it’s the kind of thing that can save you huge amounts of time and trouble if and when you do start designing PCBs… starting with a “rats nest” and dragging parts into place, of course (you don’t use auto-routing do you!!!).

In this case, I started with the input (one resistor, yeah, not much of a section), then since it’s next connection is to the input amplifier I completed that next: first by placing the input transistor so that it’s base is right next to it’s side of the input resistor, then by adding the filter capacitor from that net to the emitter side of the transistor and the positive rail, then I cheated just a little by adding in the pull down resistor that’s at the gate of the output stage… I say I cheated but I didn’t really, it was a natural progression to the next stage and (depending on how you look at it) the collector resistor of the input amplifier IS the pull-down resistor for the gate of the output switch… either way, that part completes the input section and makes for a good time to look it over and check that all of the circuit up to that point is complete and will work as expected. A pause, then on to adding in the FET, and so forth…

I like to imagine actually mounting the parts as I draw them on the page so that when it comes time for physically mounting the parts and soldering them together I’ve already had a dry-run through that process.

This includes considering how the parts will hold each other in place through that process and when the project is completed. Some combination of bent wires against the circuit board, little loops, and other mechanical tricks will be combined to make this process work. Working out those details while laying out the design drawing is a powerful way to avoid problems during assembly and after things are complete.

By the time you’ve finished the drawing you should have complete confidence that all of the nets have been accounted for and that the physical rendering of the circuit will not only work, but might even have some aesthetic value 😉

Cut out some perf board.

Once you’ve finished your drawing you will know precisely how many “holes” of your perf board are required by counting the squares on the graph paper that are taken up by the completed design. Use a marker (sharpie) to sketch out the boundaries on your perf board and then score over those with an exacto knife. After that, you should be able to fairly easily use needle nose pliers to cleanly break the perf board along those lines.

I like to use the long edge of the pliers along a scored line and start bending the board at one end of it… that usually leads to a nice clean break as the needle nose pliers will tend to protect the part of the board that they cover.

Mount the input resistor.

Right away I start with some of those little physical tricks I mentioned. One end of the input resistor must also create a terminal for connecting the input. Here, I’ve used that to physically hold the resistor in place when it’s first mounted.

Using the end-on style of mounting this resistor (as was popular in old transistor radios) I chose to put the body of the resistor close to the input transistor. This way, the other lead of the resistor makes a handy test point and also is easier to work with while weaving the end of it through the perf board and back to make an input terminal (loop). Down through one hole, up around the edge of the board and back down through an adjacent hole bent into a loop. This lead holds the input resistor into the board early and acts as a strain relief for any wire(s) that might be soldered to the terminal later.

Mount the input transistor.

Next up I added the input transistor. This being a PNP transistor, I know I want the emitter toward the positive rail (eventually), and the collector toward the negative (ground) rail. Luckily the pin out has the base in the middle so it’s really easy to get precisely what I want just by making sure the flat side is away from the input resistor and the input resistor is “in the middle.”

To hold the transistor in place I can start by slightly splaying the leads out on the underside of the board, or perhaps even bending some of them into their final direction prior to soldering.

If you look closely you’ll see another physical trick similar to what was done with the input resistor. In this case, the emitter lead is weaved through the perf board to stick up through the top side eventually to connect to the positive rail and the filter capacitor. This required a little thinking ahead and was only one of several options; but I decided it was a good way to hold the transistor in place and provide options for binding the positive rail later.

Input connections underside.

Looking at the underside you can see that the input resistor lead is bent flat against the perf board and runs right next to the base lead of the input transistor. This way, the base lead can be laid flat right next to it in the other direction making for a tidy connection and a strong physical mount for both.

You can also see off to the right of that where the emitter lead has been fed back up through the perf board to connect to the positive rail and the filter capacitor (coming up next).

Add the filter capacitor.

Back on the topside of the board you can see how the filter capacitor fits perfectly (skipping a hole) between the extended emitter lead and the base lead. Here again was an opportunity during the planning stage to put a part through the perf board and understand exactly what size it is.

With the filter capacitor in place the emitter lead is bent down to meet it at the hole on that side. I actually tried to get the lead to go down through the same hole– but it was a bit too short and thick for that. No matter, I planned ahead so there will be plenty of ways to sure up this connection electrically.

Solder in place on the top side.

To start with, I just soldered the emitter lead to the filter cap lead on the top of the board. That works fine for these first steps and holds the filter capacitor in place while working on it’s other lead.

Connect filter capacitor to input, underside.

Back on the underside of the board the filter capacitor lead gets bent flat across the base lead and the input resistor lead. Having all three of these laying in parallel to each other will make for a good electrical connection.

Solder in place, underside.

Once soldered, the net for the base of the input amplifier is complete; and the net for the emitter side of the input amplifier is well prepped. Assembly of the circuit is progressing essentially in the same order as it’s planning was done.

The output section is highly dependent on the power rails being in place so I decided to get that work done before installing the FET and other components. This kind-of breaks the rule of progressing from input to output… but not really since in this case best way to install the next section would be to have the power rails (the ground rail especially) in place first.

Wire for rails and output.

I happened to know I had some color coded ribbon wire when I started this so I planned to use it from the beginning. It normally has 4 conductors, but at this point I’d stripped off the green wire leaving a convenient red, black, and white. In other parts of the project the input is generally white so that works out perfectly.

The imperfect part is that the white is not in the middle– but it will be on the perf board… and as it turns out, with a little planning, even that won’t matter for long because I’ll be removing the white wire to create a terminal instead during integration. For now, however, having these all together in a ribbon will help hold things in place.

Wire for rails and output fed into board.

After stripping off sufficient insulation to reach back to the existing circuitry I put the wires through the perf board and bent their leads flat along the required straight lines on the underside.

Route the positive rail into place, underside.

The most useful next step is to complete the positive rail. Note that the wire ends up parallel to the lead from the filter capacitor; but it runs past that so that it can be fed into the hole where the emitter lead was previously woven back up through the board.

Positive rail soldered into place, underside.

Having soldered the positive rail to the filter capacitor lead, which was laid down parallel to it, and having extended that further to the emitter lead, the positive rail net is now complete and quite solid.

Reheat the emitter at the positive rail.

For good measure I reheated the emitter, filter capacitor, and positive rail on the topside of the board.

Add pull-down resistor to collector.

The next best connection to complete the input section and begin the output section is the pull-down resistor. Here you can see it mounted with it’s body at the collector of the input transistor and it’s tail going through the board in line with the negative rail.

In this case I opted to have the tail connect to ground since that is a safer thing to expose and also because it keeps the lead connected to the signal in the circuit as short as possible.

Bend pull-down resistor leads for ground rail and collector net.

Back on the underside, the tail of the pull-down resistor is extended along the path of the negative rail; and the body side lead is folded flat in parallel with the collector lead of the input transistor. The transistor lead is then extended along that path to eventually meet up with the gate of the output FET.

Solder collector lead.

With the collector lead soldered to the pull-down resistor the resistor is held solidly in place and it’s time to mount the output switch (FET).

Mount FET.

The pin-out of the FET is also convenient. In this case we can put the source in line with the ground rail, put the gate in the next hole in line with the collector of the input transistor, and end up with the open drain perfectly in line with the output wire. To do this, the flat side of the FET must face the flat side of the PNP transistor… but that conveniently makes for a nice space where the pull-down resistor can live comfortably.

Bend FET leads for ground rail, collector net, and output.

Back on the underside of the board the FET leads can be bent flat against the perf board in parallel with the ground rail, the collector output of the input stage, and along the path of the output lead.

Solder the gate to finish off the collector net; prep ground rail.

At this point all of the parallel leads have been pressed and bent together. Some of them (the ground rail especially, and the output lead) are “a little squirrely” so I save them for the next step where I plan to use some clips as helping hands to get them soldered up cleanly.

Also, in keeping with the input-to-output flow of work, I soldered the gate to the collector net finally completing the input section.

Solder ground rail first pass; prep open drain output.

With a bit of patience and a strategic placement of the alligator clip I made a first pass at soldering up the ground rail. That’s enough to hold it in place and keep it tidy while working on the output line.

Open drain output and ground rail done.

Finally, I soldered and trimmed the output line and reheated the ground rail. That completed all of the nets! Now is a good time to inspect the work and do any final clean up that’s required.

Finished view from the top, ground rail side.

Finished view from top, positive rail side.

Smoke test; input open.

Satisfied that the circuit was correct and anxious to move forward I hooked it up in place of the original prototype on the bread board, turned on the power and the meter, and made a quick test. With the input open the output is also open.

I notice that the numbers are a little different, but not by much, and I expect that having scavenged the parts for this build from those that were used in the breadboard, and that breadboards are notorious for acting differently than soldered circuits, I paid it no mind.

Open for open is GOOD!
No escaping magic smoke!
next test…

Smoke test; input weakly grounded.

Next I put the weak ground lead through the input terminal and I expect the circuit to close.

It works! The circuit closes, the LED comes on, and still no magic smoke!!
…but did you spot the measurement error?

Just now I realize why the numbers are slightly off.

It turns out that in my excitement I put the meter in ACV mode instead of DCV. At first I was very puzzled that I got a stable reading at all… let alone one that was so close to what I expected.

I did some digging. Many (most) meters (this Fluke is one of them) don’t actually block DC when measuring ACV and so will tend to show something close to the DCV measurement when a DC input is present and an AC input is not.

Three takeaways then:

  • Hurray! It’s works, and it doesn’t look half bad.
  • Be more careful when setting up your measurements. For example, don’t ASSUME that having left your test rig set up it’s all ready to go if you just turn it on; and don’t assume that getting a measurement that’s close to what you expect is a sure sign everything is correct!
  • A DVM on ACV will probably (almost) measure a DCV that’s close to what you expect. Who knew?!
Nov 112023
 

I thought “Ok, so let’s throw some parts at this thing and see if it works like the simulation…” and so I did:

As it turns out, I had a few different parts laying around the bench and using those would be easier than hunting down the specific values I had in my original simulation… those values aren’t critical really, so I just used what was already lying on the bench and updated the schematic in EveryCircuit to match:

Built up on the breadboard it looked like this:

I find that with a little effort and creative thought it’s not difficult to get breadboard layouts to closely resemble schematic diagrams… and from there it’s not too much of a leap to get to what the prototype(s) and final build(s) will resemble.

A clockwise tour of the circuit on the breadboard…

Here you can see from top to bottom on the breadboard matching roughly from left to right on the schematic: There is a 47K input resistor that I’ve connected to a white wire that will act as the switch.

I describe that as a “wire” so that I can reserve the word “jumper” for the short color coded jumpers I use to make patches between segments of the breadboard. These are fantastic, by the way, because they are color coded for the number of points they span. This saves a lot of time when building up more complex circuitry or trying to trace where one or more of these jumpers go…

See the red jumper connecting 2 points away, and the orange 3, and so forth… very nice. I bought a bunch of boxes of these and I use them all the time. They’re so cheerful and perky. Full of potential – like a fresh box of colored pens and a new graph pad. I love that… but I digress.

You can see the input resistor go directly to the base of the PNP transistor, and on the back side of that transistor you can see the filter capacitor between base and emitter; an orange jumper connecting that to the positive rail 3 points away.

Moving down from there we come to the MOSFET acting as a switch. A red jumper connecting the collector of the input transistor to the gate of the switching MOSTFET and then from there you can see another 47K resistor pulling that down to the negative rail on the right.

In parallel with that a yellow jumper connects the source of the MOSFET to the negative rail (which will be common ground)… so that the other side of the switch is a typical “open drain” version of the “open collector” type of switch. The key idea being that it’s either open, or connected to ground.

Speaking of the “open drain” you can find an orange jumper crossing the centerline gap to the left and acting as the “output” of the circuit. Over on the left side you see couple of header pins stuck in the breadboard as a test point connector of sorts and then a panel mount LED connected on it’s other side to the positive rail through a 470 ohm resistor. (It was laying right there, and I didn’t care about the LED being a little bit dimmer, so I just went with it!)

You may have a little trouble spotting the header pins because there is a white alligator clip chomping on them… and if you look over to the right you’ll see a black alligator clip chomping on another set of pins plugged into the negative rail. These two clip leads make it easy to keep the DVM in circuit to measure the voltage across the output of the circuit… that way we can see just a bit more detail than whether the LED is on or off.

Testing Sketchy with a floating input

The guess is that the tuner controls the status line as an open-collector type of output. This means that the long wire running from the shack out to the tuner would see a very high impedance and would be essentially “floating” whenever the open collector is “off” at the tuner.

In this test you can see that the white input wire is hanging in the air on the left. The voltage at the output of our circuit is about an LED drop down from the positive rail… I guess because the DVM pulls just enough current to see that drop. 1.256v = 5 – 3.743

The LED is off… so all is well.

Testing Sketchy with a “human antenna” input

A long “floating” wire seems a lot like an antenna that might pick up all kinds of noise or even some stray RF (this is going to an antenna tuner after all). We want to make sure the circuit isn’t sensitive to that so we put in a filter capacitor across the BE junction of the input transistor. The idea is that the input resistor and the capacitor make a low pass filter that will reject almost anything that isn’t close to DC.

Connecting myself to the input wire to give it some “extra length” we can see that I do inject some noise; but not enough to cause the circuit to really switch. The LED stays off, and the voltage across the output only goes down by a couple hundred millivolts. That’s enough to see on a DVM, but not enough to matter when switching LEDs on and off. (Nor even enough for any logic circuit that might come later to care about it either.) 201mv = 3.743 – 3.542

Testing Sketchy with the input pulled high

Another design spec is that the circuit should be happy with a TTL input. So, connecting the input to the positive rail (+5V) we get the same result as the floating input: The output is off as expected!!

Testing Sketchy with the input pulled low

Testing the other side of the TTL input spec as well as the open collector input spec, we pull the input low by connecting it to the negative (ground / common) rail. As expected, the output goes to ground and the LED comes on!! Not only on, but VERY on… 11mv measured across the output.

This is a benefit of using a good switching MOSFET vs a bipolar transistor for this kind of output (open drain/collector). The “closed circuit” or “on” condition of the output with the MOSFET will have a much lower voltage than you can get from a bipolar transistor. Definitely closer to ground.

Testing Sketchy with the input pulled low weakly

Finally, since our theory about the status line problem is that it may be oxidized at the connector near the tuner, we tested again with a high resistance in place. In this case, a 220K resistor to simulate whatever that unwelcome resistance might be out there. Again success! The LED is fully on just as if the input had been pulled hard to ground.

Qapla’ !!

Oct 102023
 

A while back we replaced the SGC-237 at the feed point of the big loop. Since then, the controller has been a bit sketchy. The indicator for a good tuning solution is intended to light either the yellow panel LED or the green panel LED; but since the upgrade the best it seems to manage is a bright or dim yellow.

I’m not sure what’s going on there, but I have a few theories. One is that the junction for the control indicator line in the box under the tree might be a bit oxidised causing extra resistance in the line. Another is that the design of the SGC-237 might have changed with the unit I have now, or that perhaps it never really was an open collector on the tuner end (that was a guess afterall). Another is that I just got lucky with the first design and that the long lead length might have something to do with my indicator not-quite getting the clear signal it needs.

I did measure the voltage across the input while the system was up doing it’s WSPR thing (where it must tune with each band change)… and I observed that the voltage from the indicator to ground seemed to get no higher than about 4V and no lower than about 3.2V… that’s weird, and suspiciously close to a silicon junction drop (about 0.8V)… almost as suspicious as frog’s breath… but of course, nothing is as suspicious as frog’s breath. Whatever is going on there has to do with how the indicator circuitry in my controller is interacting with the tuner through the controller cable and the junction box in the middle.

Anyway– at some point I will go out there and lie on the ground and “improve” the connections in the box. In the meantime, since the tuner seems to otherwise work just fine, I’m looking for a quick fix to get my indicator working properly again and generally make it more robust.

So, based on the idea that it’s probably some thing that looks reasonably like an open collector at the tuner end, or that even if it’s a TTL signal I might be able to interpret it like an open collector… I designed a circuit to clean up the indicator signal and make it FIRMLY on or off in an open collector manner.

Here is a snapshot of the schematic from Every Circuit (which was handier and a bit cleaner than my usual graph pad + phone camera… even if the N-Channel Mosfet symbol is a bit odd):

The diagram presumes I’ll be using the 5V supply from my existing controller. There is an SPST switch representing the input of the circuit which is the indicator line from the tuner. The output is the drain of the N Channel MOSFET that I’ve shown here connected to an LED via a 330 ohm resistor… but essentially that output will either be open if the input is “open” or “high”, or closed (shorted to ground) if the input is drawing current down from the 5V supply … as if it were “closed” (or trying to be) or “low” if it’s acting like a TTL signal.

Either way, the circuit should clean up the input by slamming the output fully open or closed. Here is the theory:

The input is tied to the base of a PNP transistor through a 47K resistor to limit the base current. The emitter of that transistor is tied to +5V (the positive rail).

If the input represents a high impedance between the positive rail and ground then effectively no current will flow through the base of the PNP transistor and it will be off. This will happen if either the input is something close to +5V like a TTL signal, or if the input is high impedance in general like an open collector would be.

The collector of the PNP transistor drives the gate of an N Channel MOSFET which is otherwise pulled to ground through another 47K resistor. So, if there is no current on the input then there is no current through the PNP transistor and the gate of the MOSFET will be at 0V. This will turn the MOSFET off and so it’s output will be “open” to ground.

On the other hand, if any current (even a fairly small one) flows to ground on the input, then the PNP transistor will switch on and pull up the gate on the MOSFET thus turning it on. The voltage gain of the PNP transistor given a 47K load (the MOSFET gate being essentially invisible to it) will be very high so that even a tiny current through the input will be enough to pull the MOSFET gate well above it’s “ON” voltage.

The choice of a 47K resistor on the input and also on the collector/gate is the same in both cases… it’s a high impedance (but not too high) and a handy value (I have a pretty good inventory of standard values like this). On the collector side of the PNP transistor this means a lot of gain. On the base side of the PNP transistor it means that not much current can flow through the transistor no matter what the input voltage is (within reason). That said, the beta of the PNP transistor is likely on the order of 100 so whatever the input current is at the base the output current will try to be about 100 times that amount.

I measured a 0.8v change between on and off in the existing circuit. The new circuit will amplify that by about the beta of the PNP transistor since the same resistance is on the base and on the collector, so any gain as big as 6 or so will be enough to swing the collector side between the 5V rails. With a beta of 100 I’ll be more concerned about instability than missing a weak signal. (I’ll address that if it shows up; but for now, simpler is better.)

Since I have these parts around I chose a 2N2907 (the complement of the 2N2222) as the PNP transistor; and a 2N7000 (a very common switching part) for the MOSFET.

Oct 052023
 

It was a dark and dismal November, a few years back; and there had been a lot of sudden, unwelcome changes that year. The house was empty, it didn’t feel very festive at all; but I had decided to treat myself to a new IC-705 and some other toys to try and break the gloom.

I sat in my living room pondering all the things, and wondering what to do for an antenna so I could light up the new rig and lighten the mood. I’d had a few discussions with folks who were trapped in apartments or even in tall buildings where there were essentially no good antenna options… so that was fresh in my mind.

I could have used the big loop outside — but it was busy with the robots, and not where I was. I looked out the window into the damp, cold, darkness… sinking slowly into madness.

Then, I thought, I could maybe string some wire around that window and make an antenna… surely I could at least receive with such a thing… and there’s nobody here to stop me or complain about it… My mood got a little brighter… but I knew the math and it wasn’t promising… and strictly receiving didn’t sound like quite as much fun as I hoped for.

I pondered some more, and the outside got darker; but eventually I dragged a few random bits of wire and odds and ends up from the lab along with a few other new toys I had… the random wire and bits and pieces reminded me of what the Grinch had left on the walls when he stole Christmas… it seemed fitting enough.

I figured if I was going to have “staring into the abyss” on my schedule I might as well tinker while I was at it… so I also grabbed my new Nano-VNA and my new LCR meter… additional toys I would be acquiring from Santa soon (or well, I could pretend anyway).

I’m normally the sort that draws a zillion pictures and diagrams and does all the math to figure out my designs before I set about building anything. This time, that seemed like a lot of work, and I wasn’t up for it… and since I had new toys that gave me the ability to “see” what the various parts and circuits “looked like” electrically, I decided to go the other route and just try stuff and see what happened. I figured I’d eventually end up with “something”, or I’d keep playing with it to see what I could learn. Besides, I’ve got plenty of theory in my head to give me some direction… it would keep me busy anyway.

The first idea I had was to take some shielded, multi-core cable I had and cross wire it so that it would be a 7 turn loop the size of my front window. I figured that with a large diameter and 7 turns it would be a pretty good inductor. I also thought that with the shielding in place it would be purely magnetic and so probably less noisy. But, in my temporary excitement I forgot about the inter-electrode capacitance. Each of those wires were all right next to each other inside the loop shield so that would defeat the multiple turns. I figured this out after trying it and being disappointed with the results.

The multi-turn loop idea had a few fairly narrow resonant points, but it didn’t really act like I wanted it to and was going to be really fiddly with the tuning. In fact, I had a devil of a time getting it to be sufficient at any of the frequencies I wanted to use.

Once I realized that the multi-core idea wasn’t going to work I grabbed some electrical ground wire I had laying around and decided to try a single loop with a loading coil to make up the difference in electrical length. That was less chaotic, but also didn’t quite work.

I knew I didn’t want to use a coupling loop because that would be impossible to hide as an inside antenna around a window… and well, also because I just didn’t like the idea! But that did make me think about the fact that that’s really a kind of transformer… So, I wrapped a couple of turns around the loading coil I’d made and that seemed to work much better.

I tried a handful of variations on that theme and got similar but varying results. I could see what was happening using the Nano-Vna, and I could measure the inductance and capacitance of the parts I was using with my LCR meter. This gave me a few ways to turn the wheels in my head… and so I kept tinkering… and it became morning, and then evening again…

2 turns on the primary of the transformer and 14 on the secondary with the tuning capacitor in series seemed to get an interesting result; so I played with that for a while… but I realized that the capacitor wasn’t really helping that much, and I also couldn’t get that second resonant point to be where I could really make use of it.

I started experimenting again… and essentially replaced the capacitor with an inductor… a loading coil, just to see how that would change things…

Tiger was supervising all of this work… Truth be told, it was Tiger who suggested replacing the cap with a coil and I told him it was a crazy idea and that it would never work because that’s not how you tune loops and … well, he’s a cat and … just … oh FINE, FINE! I’ll put in a coil and show you how it doesn’t work like that … you’ll see right!?

Nope, the crazy idea actually worked… the second resonant peek disappeared and the first one expanded… not quite as much as I had wanted, but quite a bit. Tiger, just looked at me as if to say “I told you so…”, but being a very cool cat, he refrained and just let me soak in the moment… then went back to doing cat things and occasionally supervising my continued tinkering.

After stumbling upon this solution I thought about it and realized I’d created a match that draws on several techniques.

The loading coil is borrowed from short whip antennas where it makes them electrically longer and therefore (typically) a higher impedance that’s easier to match to the feed line.

The high ratio transformer is borrowed from end-fed dipoles and similar kinds of antennas where it converts the high impedance at the end of the wire into a lower impedance that matches the feed line.

The loop antenna fed this way is completely balanced so it doesn’t need any kind of counterpoise nor does it have any free ends of it’s own which might expose high voltages.

I decided to take this to an extreme of sorts and scale it up. I basically doubled the number of turns on the loading coil and ramped up both sides of the transformer as well. The primary now had 3 turns, and the secondary had 30. The loading coil has 16 turns symmetrically split and bound to the secondary of the transformer so that there are no cuts in those wires… that is, the secondary of the transformer becomes the loading coil on a second core.

I have since called this contraption a Swamped Impedance Match because conceptually, the antenna and loading coil virtually guarantee a high impedance that “swamps out” the vagaries of the radiating element; and then that high impedance is divided by 100 using the high ratio transformer so that any of those “vagaries” are also divided by 100 thus making a reasonable match to the feed line across a wide range of frequencies.

The results were pretty good as far as matching goes. The antenna with the match manages to have a very wide frequency response covering most of the HF bands I wanted to play with and offering a usable SWR from about 4 MHz up to about 20 MHz. The antenna wire itself is a square about 80 inches on a side… but the actual loop isn’t critical. I picked that just because it would perfectly fit my window all the way down to the floor… the idea being that with any kind of drapes on the window the antenna could be completely hidden from view!

BUT, I hear you say; and I said it too; just because the thing has a reasonable 50 ohm match doesn’t mean it makes a good antenna… even if you can receive with it that doesn’t mean it’s actually a “good” antenna. It could be just a mediocre, and somewhat frequency specific, dummy load!

Tiger scoffed, and gave me a look, and an up-nod, and said (via kitty mind control) “You’re the Mad Scientist … do some science and prove it to yourself.”

So, I turned off the big rig temporarily and fired up WSPR on my Spectre laptop running Linux, and my new IC-705; connected it to the Terrible Tiny Antenna; and let it run for a couple of days to see what the rest of the world could tell me about the antenna’s performance.

It worked! No, really!! WSPR data from this setup shows fairly respectable results even when compared to my big loop in the back yard!

Here you can download the raw data (a text file) from that experiment. The top part of the data is for the Terrible Tiny Loop with the Swamped Impedance Match; and the bottom of the file is data from the big loop (with an SG-237 tuner at it’s feed point) for comparison. Both were running 5 watts. The small rig in my living room with the IC-705, and (at separate times) the big loop running from my lab with the Flex 6300.

Just to be extra sure about the results I asked some friends of mine in AMRAD to build the antenna themselves … and they also found it worked pretty well (though, their build quality was a bit better than my initial experiments.)

Here are some pictures of one of those builds:

Here is a schematic I hastily drew up for my friends to use as a guide… it’s simple enough as is the construction of the antenna and match.

The toroids are typical of what you might use for an HF balun (FT-240-43). Begin with about 4 meters of wire folded in half and wind the secondary on the first core from that mid-point. Half of the windings on each side of the core spaced so that they finish just opposite of the starting point.

Then, use a zip tie to attach the second core where the secondary wires are free and wind each of those wires through the second core about 8 turns on each side as if they are one winding split in the middle at the transformer.

This completes the secondary of the transformer and the loading coil with a single piece of wire. There should be just a bit left so that you can make some kind of connections for your antenna loop. Banana jacks are a good choice here.

Then complete the primary of the transformer by winding 3 interleaved turns of wire at the point where you began the secondary. Attach the free ends of the primary to some kind of coax connector of your choice. (it might be helpful to put a small value capacitor across the primary, but it’s not strictly necessary.)

The Swamped Impedance Match can be left loose like this for experiments, or it can be put in a box if you want it to look better and hide under your window behind your curtains 😉

The antenna loop itself as originally designed is approximately 80 inches on a side, but given the nature of the antenna the length is not critical and as long as you don’t have a lot of metal in your walls you can probably mount the antenna anywhere that works for your needs. I have taken this antenna out for demonstrations and simply stood it up in the air on a pair of lighting tripods with good results… it’s appears to be very tolerant of variations on installation and environment.

While the large toroids I used might imply that you can use some significant power with this — I don’t recommend it… certainly not if you’re using it inside where radiation and interference with other devices might be a concern. I simply used those toroids because they were what I had on hand. I suspect you could easily reduce the size and cost of your toroids and still get good results. Let me know if you try this and how it goes with any of your experiments.

Jan 042022
 

At the heart of the “big loop” antenna is the SG-237. Click here to see the manual for that.

The tuner can be run without a controller, but it offers a few features with a controller that are useful (and sometimes important) in practice. I took a look at the controller suggested in the manual and re-designed it a bit to better suit my purposes. First, because I wanted to use parts that I had laying around the lab, and second because I wanted a better “light-show.”

The important features are:

  • You can tell the tuner when NOT to tune. I find in practice that this can be particularly important when running digital modes as switching things around at the antenna can inject unwanted noise to your transmitted signal.
  • The tuner can tell you when it’s found a good tuning solution. Sure, it seems like this would be obvious enough once the SWR stops bouncing around… but it is awfully handy to have a nice green light tell you when the tuner has stopped looking.
  • I found this out AFTER I built my controller – The tuner can tell you when it didn’t find a solution but has given up trying! On my tuner controller there is an amber light for when the tuner doesn’t yet have a solution and a green one for when it has found a solution. One day I saw these flashing back and forth like it was shaking its’ head. I figured out that’s what it does when it gives up trying. This doesn’t seem to be documented anywhere, but it’s also a nice feature.

The first step was to draw up a schematic for the circuit and do a little math to make sure everything would work.

In the controller recommended in the manual they roll their own ~9 v regulator using a zener diode and an NPN transistor. They only use this to drive their LEDs, so I did something similar but instead used an actual 5V regulator.

The next thing I changed was the “tuned” indicator logic. Their controller pulls one side of their tuned indicator to ground when the tuner is happy. I presume this is done through something like an open collector in the tuner.

I wanted two lights instead of one so I added a 2N2222 transistor and a resistor to turn on an amber “not-tuned” LED when the green “tuned” LED is not on. Basically, the green LED and its’ current limiting resistor act like a pull-up resistor to bias the transistor on whenever the “tuned” LED is not pulled to ground by the tuner. The 47K resistor in series with the base ensures that any current that flows is tiny enough that the green LED won’t light (at least not in a way you can see it). The gain of the transistor is high enough that it will still effectively saturate in this condition thus turning on the amber “not-tuned” LED.

The rest of the circuit is essentially the same as their controller – so the tuner sees almost precisely the same signals. This consists of a DPDT switch, a momentary SPST push-button, and a handful of decoupling caps. All of this, a handy box, and some LEDs with built-in current limiting resistors were all handy in my lab… courtesy of the recently (at the time) defunct local Radio Shack – and my irresistible urge to grab everything I could from them in their last days.

Once the design was done it was time to put the mechanical components into the box and see how they all fit. Here is where some on-the-fly creativity was required because one cannot always be sure what parts they have nor how they can be used to solve a particular problem… I mean, I wasn’t building this from a BOM where I could order up precisely what I wanted right?! I had to see what I had around and improvise with that.

As it turns out all of the parts I had handy fit perfectly including some PCB mounted screw terminals that I was able to adapt to the back of the box with a little bit of drilling, sanding, and some small pieces of protoboard.

Next up I designed the layout of the electronics on another piece of proto-board. It’s always a good idea to take this extra step rather than going directly to soldering parts in place – even on something simple like this. The end result almost always turns out better and cleaner for the extra effort.

Then, once I’d put all of the parts in place I made a few measurements (idiot test) to make sure I got it right. A quick look at the box also informed me that I was going to need to make a notch somewhere on the board so that the wires from red LED could get to the other side. The simplest solution to that was to knock off a corner of the board.

Finally I connected everything together and “stuffed” it into the box. I say “stuffed” because, well, it’s a sloppy jumble of wires going everywhere all kind-of crammed into that space. I thought about making it neater, or maybe doing a more sophisticated PCB that would eliminate much of the wiring, but in the end this was a quick-and-dirty job. As such, the extra length of the wires was needed in order to be able to assemble and disassemble the device for testing and/or changes.

If you make the wires too short then there’s no room for getting the circuit board into and out of the box without having to desolder something. The lead length also doesn’t matter too much in this case since it’s all low-voltage DC, and the heat dissipation requirements are vanishingly small – so “stuff” it is.

Make one connection at a time until everything is wired up, make a final test, then it’s stuff-in-a-box. 🙂

Once the lid is on and it’s up and running it’s a pretty solid and fairly professional presentation. The LEDs all work as expected, and the orientation of the toggle switch and the red “do-not-tune” light make the user interface intuitive. With the switch to the left (away from the controls) the red LED is on and the controls are locked. With the switch to the right (toward the controls) the tuner is free to tune and can be reset with the push-button.

I’ve thought about doing something more sophisticated with this… and maybe putting it in a heavier box; but ultimately it does the job, has been reliable, and there really isn’t more to do!

In future, maybe, if I built a feed-point tuner I might like to have it provide information about its’ tuning solution and even provide an analysis of the antenna… or perhaps also take commands to fine-tune the solution or act as a pre-selector … but that’s just me dreaming and NOT what this tuner does. This one is designed to be simple and reliable and it hits those marks very well.

This controller seems to hit those marks too — with just one extra blinkenlight 🙂

Jan 032022
 

I wanted an antenna that would be good for all HF bands; that would have reasonably good performance characteristics; and would be reasonably stealthy. Clearly, a wire antenna of some type… but what type?

There are dipoles that would work, and I’ve used them in the past, but they pose a couple of problems– mostly stemming from the heavy feed line and balun hanging in the middle, and the limited options for hanging a multi-band dipole on my property.

Then I looked at an inverted L… but that would need a counterpoise, and probably a complex one at that. Then it occured to me that if I connected the counterpoise to the far end of the inverted L I would actually have a large vertical loop – and that might even perform better! So that’s what I built.

I had a few other constraints to deal with though. For one thing, kids play in my yard (often without my knowledge or permission), so I would have to make sure that the antenna stayed safe for anyone around it and that all of the low, reachable elements were covered. I also wanted to have the tuner at the feed point in order to have minimal losses in the feed line.

The final design would have the vertical sides of the loop going up some trees about 65 feet apart; the bottom of the antenna buried a few inches under ground; and the tuner up about 10 feet in a box to protect it from the weather as well as any uninvited fingers. The wire itself would be insulated, and parts of it would be in conduit to protect it from the weather, squirrels, and other hazards.

The tuner itself is designed to be out in the weather, but by putting it in a box the termination points are hidden away, the tuner is further protected from the elements, and I have the option to eventually put additional equipment in the box.

The first step was to call Miss Utility and get the yard plotted so I could avoid my fiber and other possible hazards. Then we could begin burying the conduit. I say conduit, but really, it’s cheaper than that! I opted to use lawn sprinkler tubing which comes in various diameters, is designed to survive under ground, and is easy to work with.

The smaller diameter tube would go between the trees and be just big enough to carry the bottom part of the antenna. A larger diameter tube would go between my lab (in the basement) and the closest tree in order to carry the feed line and various other cables.

The next step was to assemble the loop and get it ready for installation. I would hire a “tree guy” to climb the two trees and install the hardware… but before that could happen I would have to have all of the ground work complete and ready to go.

Now, as a side note, my usual methodology is to do all of the math and drawings in meticulous detail and then execute that plan. This was no different. I had spent hours figuring out precisely what size loop would be required to have the least conflict on multiple bands and give the best performance overall. Everything would be precisely measured ahead of time so the installation would go off without a hitch and the end result would be perfection. You can probably tell by now that’s not how things worked out right?!! Indeed this experience broke me out of my shell and started me down a path of engineering both by intuition and by design somewhat abandoning my tight grasp of all things mathematical in favor of a more holistic approach— more on that later.

With the conduits in place the antenna wire, made from common electrical wiring, would need to be pushed through the conduit and various hardware installed. This included pulleys for each end to allow the antenna wire to move freely in the wind; and some insulators as strain reliefs in strategic locations to keep the wire from moving “too freely.”

The first excursion away from my usual engineering practice was how I treated the installation of the insulators. I had in mind to avoid joints and to keep the original insulation in place as much as possible. So, instead of a complicated arrangement at insulator locations I decided to simply push the wire through and tie a simple knot. In theory this tiny additional inductance would be invisible — and if that turned out not to be the case then I could always strip the insulation later and solder the joints at the insulators. As it turns out, my assumption about the inductance was correct and I never needed to rework the insulators.

The physical installation on the trees would be done using eye-bolts. These are much easier for a tree to handle than anything tied around a branch or trunk because they create only a tiny hole which the tree can usually heal. In contrast, loop tied around the tree could eventually strangle it or a the very least impose a much larger wound that might be too much for the tree to handle.

On installation day the arborist made a mistake – or more practically, uncovered one of mine. I had measured the antenna wire to precise specifications and had expected both ends of the loop to be up 30 feet. On the taller tree he installed the top pulley about as high as he could get it. My wire was too short for that — so either I would have to have him climb up again and fix it or I would have to adapt. I decided that in the end height would be more useful than precision… thus my second excursion from my usual “design first” paradigm.

I spliced in some extra wire to make up the difference. I used a Western-Union splice, soldered it, and wrapped it in heat-shrink tubing. As it stands now the “short” side of the loop goes up about 30 feet as originally planned and the “tall” side of the loop goes up about 45 feet. The loop runs roughly east to west (120° – 300°) between the two trees – though this orientation turns out not to be very important based on the propagation data I get from WSPR results.

The wire is hung with sufficient slack to allow the trees to sway in the wind without ever creating a high tension on the wire. This is much easier in this case than trying to configure some kind of weight or spring mechanism. As it turns out the extra slack doesn’t seem to affect antenna performance very much, and since this installation has now survived several years (initially built in 2014 and it is now 2022) the physical installation seems quite sound.

It’s probably also worth pointing out that the vertical portions of the antenna are running up the trees, and yes the bottom is technically under-ground. Shouldn’t that be a problem? Trees are conductive (sort of)! and the bottom of your loop is in the ground!! Are you mad!!??.

Yes, yes I am, and, it doesn’t matter 😉 This was never going to be a perfect antenna, just a good one. The tuner does a fantastic job of figuring out the various vagaries of the adjacent conductance of the ground and trees; and in the end the performance of the antenna turns out to be quite good in all weather.

Ultimately, though it might be fun to have an antenna farm where I could perfectly build all of my crazy ideas, I must bend to practical circumstances. What is kewl about this design is that almost anybody could build it almost anywhere and expect reasonably good performance. I’ve even considered using something like this on field day by just laying the bottom half of the loop on the ground stretched between a couple of cinder blocks. If I ever get to try that I’ll let you know how it goes– but it should work, and basically just requires a couple of reasonably high vertical points, a tuner, and a spool of wire.

The tuner box and various electrical conduit and outdoor boxes come from home depot. The goal is to keep the weather out and keep the electronics happy. That turns out to be pretty hard to do as the weather is relentless – so I decided not to skimp very much on these parts.

The tuner is an SGC SG-237. Currently I’m running the second of these devices on the antenna. The first one “went deaf” a couple of years ago for unknown reasons. I recently replaced it with an identical model. Testing that and being reminded of the antennas’ performance is what prompted me to finally publish this article.

The tuner goes in a weather proof box that’s large enough to house any additional equipment I might want to post outside on the tree. In addition to the feed line and control wiring I also pushed a cat-5 cable out to the box in case I want to run some POE driven computing gear and other devices. So far, I’ve not done that, but I do have ideas.

A second insulator acting as a strain relief is mounted on the antenna above the tuner box so that the wire doesn’t pull on the box nor the tuner.

In order to keep things serviceable and to provide some safety I installed a couple of boxes at ground level between the sprinkler tubing that goes to the lab and the outdoor electrical conduit that runs up to the tuner box.

One of these boxes acts as a connection point between the control cable from the lab and the control cable coming from the tuner. The other box connects the feed line from the tuner with the feed line from the lab via a lighting arrester: Alpha Delta model TT3G50.

All of these are grounded via an 8 ft ground rod driven at the base of the tree right next to the boxes.

Lately I’m re-thinking the screw terminal strip for the control wires and considering replacing those connections with heat-shrink soldered connections. It turns out that the time between servicing these connections is fairly long and I’d like to have better long-term connectivity than I can expect from screw-down terminals.

When I’m not otherwise using the HF rig I generally run WSPR continuously. Since the tuner refit I’ve been running WSPR at 2 watts on all HF bands with some pretty spectacular results. I can expect to see contact to Australia, Hawaii, Europe, Africa, the Arctic and Antarctic on a daily basis – usually on multiple bands.

The sweet spot for the antenna seems to be 17M but all bands 160 – 10 are usable, and 20-15 are quite good (sun spots permitting). The worst SWR I get is on 80M at about 2:1.

Here is a tweet I posted showing good DX WSPR contacts on 3 bands simultaneously. If you build something like this please do let me know how it works for you.

Sep 062019
 

I should have done this forever ago… but I’ve decided to put the brick (flex6300) to work when I’m not using it 🙂 From now on, mostly, when I’m not using it for something else or whenever it won’t interfere with other research I’ll be running WSPR on a VM using the 6300 and my large vertical loop.

FLEX6300 + 60M-Circ Vertical Loop Running WSPR
May 072017
 

Curiously Strong Junk Box Noise Source in an Altoids Tin

Why build a noise source?

A good noise source is handy around the lab. It’s useful for testing radio gear, characterising filters and amplifiers, and the list goes on…

There are many schematics out there for noise sources, you can buy kits for them, or you can spend a lot of money and buy a calibrated noise source ready-made. Most of the circuits I found use MMICs to boost a weak noise signal up to a usable amplitude. I have some of those MMICs around (typically $8 parts) for special projects but I wanted to play around with some ideas I had for various circuits and I thought it might be fun to see how far I could push junk box parts that anybody might have laying around their lab.

Since I enjoy working in HF and below I thought a noise source that produces a reasonably flat 1/f output up to about 50MHz would work great. So that’s what I set out to build.

Theory of operation…

Like most noise sources this one starts off with a reverse biased diode — in this case a 5.1 volt zener — and then greatly amplifies the noise it generates in a broad band amplifier. This sounds easy enough, but I tried to take it to the next level using several circuit tricks that are more commonly found in high performance receiver, instrumentation, and test equipment designs.

There are three basic sections. The first is a noise generator which captures the weak noise of a zener diode and amplifies it to a useable level. The second section is a broadband amplifier which isolates the noise generator and boosts the signal a bit more. The final section is a power amplifier that converts the moderately high impedance output of the second stage to a low impedance output capable of driving 50 ohm loads.

Q1 – Noise Generator

A 5.1 volt zener diode is just barely brought to breakdown by a 100K resistor in a self-biased common emitter amplifier. The noise from the zener is fed into the base of Q1 and coupled to the emitter by bypassing the high side of the zener to ground through a 220nf cap.

Q2 – Cascode Noise Stage

The goal is to provide as much gain as possible because the noise voltage coming from the zener diode is extremely weak. High gain common emitter circuits tend to suffer from the Miller effect which essentially magnifies the apparent size of the parasitic capacitor between the base and collector causing higher frequencies to be attenuated.

In order to preserve as much bandwidth as possible we use a cascode stage. This is essentially a common base amplifier coupled directly to the collector side of the common emitter amplifier. It effectively “hides” the inverted output signal from collector of Q1 so that it can’t get coupled through that parasitic b-c capacitor to the base of Q1 and reduce the gain at higher frequencies.

The interesting thing about this cascode stage is that it is also self biased. This is unusual, but it works in this case because the load for the noise amplifier is a constant current source. At DC, the constant current source essentially forces both Q1 and Q2 into conduction by driving their collector voltages toward the positive rail until the current flowing through them reaches the set point. Q1 and Q2 both have a 100K resistor between their collector and base and they are of the same type so they have a tendency to reach equilibrium.

This technique eliminates the need for the separate bias network that is typically found in cascode amplifiers. One of the reasons we can get away with this is that the signal being amplified is so small that it never pushes the transistors very far from their DC operating point. Removing these extra components helps to eliminate any of the “colors” those components might add — by which I mean that any additional components in this stage might boost or attenuate certain frequencies and this is something we want to avoid.

Q3 – Constant Current Source as a High Impedance Load

The gain of a common emitter amplifier is determined by the difference between the emitter impedance and the collector impedance. The cascode stage (Q2) is effectively invisible in this respect. The emitter of Q1 is connected directly to ground so it’s impedance is already about as low as we can make it. In order to get a high gain we want to make the collector impedance as high as possible.

In this design I’ve used a constant current source as the load. This trickery is very interesting because from a DC perspective the constant current source might as well be an ordinary resistor, but from an AC perspective it looks (almost) like an open circuit. One way to think of it is like a huge, nearly perfect inductor. An inductor resists any change in current flow and so it presents a high impedance to AC signals. A constant current source looks to the AC signals like it is an infinitely large inductor that just “wont budge” when the voltage changes.

Unlike an impossibly large inductor that would have problems with self resonance and self resistance, the constant current source appears by comparison to be almost perfect.

The combination of a direct connection to ground at the emitter of Q1, and a connection to an extremely high AC impedance at the collector of Q2 results in a very high gain. In a perfect world the gain would be infinite — but nothing is perfect, so in the real world we get instead a useful but extremely high gain.

To set up the constant current source we need a stable voltage. In this case we use a white LED which doubles as an “ON” indicator and develops about 3.4 volts. Most of the LED current sinks through a 330 ohm resistor to ground. The LED voltage appears at the base of Q3 developing a stable voltage across Q3’s 220 ohm emitter resistor. Q3 is forced to conduct just enough to keep this voltage stable and thereby establishes a “fixed” current proportional to the LED voltage (minus the b-e drop) and emitter resistor.

Q4 – Buffer Amp

The high gain noise amplifier does a fantastic job typically resulting in a noise voltage well in excess of 350 millivolts peak-to-peak but there is a problem. The impedance at the collectors of Q2 and Q3 is extremely high and the gain depends on that high impedance. So, we need a buffer to bring this impedance down to a more practical level.

The noise signal is direct coupled to the base of Q4 which is an emitter follower with a 10K emitter resistor. This establishes a reasonable DC bias point for Q4. The actual impedance at the output is dominated more by the bias network of Q5 and is still reasonably high (about 4500) to preserve as much gain as possible in the noise generator stages.

Note also that the relatively high impedance at the output of Q4 and input to Q5 helps to swamp out any unwanted frequency shaping effects of the 220nf coupling capacitor between those transistors. I had experimented with using a Vbe multiplier and some other options to preserve a direct coupling at this stage but ultimately found that a conventional approach was sufficient. I may still revisit this in future versions.

Q5 – Common Emitter Voltage Amp

The signal at the output of Q4 is nominally 350mv p-p though it is possible to observe spikes to 1.8v or so. The goal is to get the noise signal as close to “rail-to-rail” as is possible so some additional voltage gain is required. This presents some challenges.

This being a noise generator I was tempted to ignore the fidelity of the output stages — after all, is it even possible to measure THD% on a pure noise signal?? Along the way I discovered that linearity actually matters quite a bit if you care about the shape of your noise signal (more on this later) and this imposed some hard limits on just how much and what kind of amplification can be used.

A perfect linear amplifier would preserve every spike in a 1.8v p-p input signal and would translate it to a corresponding 12v p-p output at 50 ohms. That would require a gain of about 6.67.

Of course, it’s not really possible to build one of these perfect amplifiers. For one thing, we’re going to use a cascode stage here to preserve bandwidth and that will take out a few tenths of a volt. For another there’s the 0.7v b-e drop to consider — so we’ve lost about a volt already (0.2 v-sat of Q6 + 0.7 Vbe of Q5). Then there are similar issues with the final output stage and so forth.

After much experimentation the best overall result was achieved by biasing Q5 on the low side of class A with a gain of about 6.7. This means that most of the noise signal is amplified linearly but on some of it’s excursions the amplifier is forced into cut-off or saturation momentarily.

The DC bias for Q5 is set up by a 47K and 4700 ohm resistor divider at it’s base. The 330 ohm emitter resistor sets the bias current at about 1 ma which works well with the 2200 ohm load to set the gain.

Note that there is no bypass cap on Q5’s emitter resistor. This keeps this stage nice and stable by bucking any errant oscillation attempts and establishes the gain very deterministically. However, at some point in the future I may rethink this design and explore the use of a small bypass capacitor (50-100pf) to boost the gain at higher frequencies. This will change the 1/f slope of the circuit but if a good response can be achieved at a lower slope that might be desirable.

Q6 – Cascode Voltage Amp / Driver

The bias point for this cascode stage is established with a 2200 and 470 ohm resistor. AC at the base is bypassed to ground with a 220nf cap. This is a more conventional treatment for a cascode stage. Note that the bias network for this stage has a much lower impedance than the bias network for Q5 intentionally.  At Q5 it is important to preserve a relatively high input impedance, but since Q6 is essentially acting as a common base amplifier we want a low impedance in the bias network. I could have chosen smaller resistors here but I didn’t want to burn “stupid amounts of power” biasing this transistor and the 2200/470 resistors were handy and seemed in line with the rest of the circuit.

The bias point is just high enough to minimize distortion while being as low as possible to preserve a sizeable voltage swing at the output. I established this experimentally at one point using potentiometers to play with the bias points of both Q5 and Q6 to see just how much voltage swing I could squeeze out of the amp while balancing off all of the other factors. In the end it turned out that pushing the limits would result in potential instability and so I reverted to the math and picked handy values that “worked” well enough.

Q7, Q8 – Power Amp

The output impedance of the voltage amp (Q5 & Q6) is much higher than the desired 50 ohm output, so we use a complimentary symmetry pair to drive low impedance loads. This amounts to a pair of emitter followers working opposite sides of the power rails with their outputs connected together. The power amplifier is direct coupled to the preceding voltage amplifier and actually forms part of the load of Q6.

Three 1N914 switching diodes develop a differential bias at the bases of Q7 and Q8. This is stabilized by a 220nf capacitor. The cap isn’t strictly necessary, but it seemed like a good idea to keep Q7 and Q8 locked together on both their inputs and their outputs.

The voltage developed across the diode network is essentially 3 “diode drops” which is always slightly more than the 2 “diode drops” represented by the b-e junctions of Q7 and Q8. The extra “diode drop” appears across the 47 ohm output resistor between the two emitters effectively pushing their voltages apart to establish a low but stable DC current. This keeps Q7 and Q8 in a fairly linear region of operation without burning too much power and also serves to eliminate any thermal run-away since additional current through the 47 ohm resistor would increase the voltage between the emitters and begin to shut off the current flow.

The AC signal at the output of Q7 and Q8 is coupled through a pair of 220nf capacitors to the output. The difference between the emitter voltages at Q7 and Q8 are also stabilized by the network (although at a lower capacitance of about 110nf) so that if one or the other is driven into saturation or cutoff they will none-the-less follow each other through the clipping event.

The ability to drive the output from both rails ensures that the output signal is as symmetrical as possible even if the load itself is not.

There is no substitute for playing with circuitry on a breadboard.

Curious Lessons Learned…

It turns out that reinventing the wheel teaches you a lot about wheels. Conventional wisdom aside, I highly recommend reinventing wheels wherever possible — there just aren’t enough people in the world who really understand wheels, and that number grows smaller every day.

I learned a few interesting things on this particular wheel.

For example, linearity matters even when you’re only amplifying noise! The goal of a noise source is to have a predictable (if not uniform) frequency mixture that is as close to “flat” as possible. This is important because it allows you to throw your noise source at the input of a device and compare that “known quantity” with the output of that device. If the input (your noise source) is wild and unruly then it’s nearly impossible to know what part of the output is “weird” because of your noise source, and what part of it is “weird” because of the device.

One of the first versions of this circuit used a constant current source to boost the gain of the second amplifier stage with the intent of driving the output to saturation at random intervals instead of simply amplifying the already random but somewhat more linear noise from the zener diode. The logic was that this arrangement would allow the output to swing essentially from rail-to-rail providing a high intensity broadband noise into virtually any load.

It turns out that sort-of works…

When you amplify a uniform noise signal non-linearly you create unwanted artifacts in the frequency domain.

If you look carefully (zoom in) at the trace on the spectrum analyzer you will see that there are some definite curves to the spectrum of the noise output. Some of the bumps and valleys are subtle — maybe even subtle enough to ignore — but some of them are fairly aggressive. What we want to see here is essentially a straight line sloping down from the left to the right. Clearly, that’s not what we have here.

What’s worse is that this arrangement is unstable. If you take a look at the waveform on the oscilloscope you’ll see that it spends a lot of it’s time at the top rail, and that there is a bit of randomness in the middle, and that the bottom rail is populated less aggressively. What you’re seeing is almost, but not quite, what was intended. In a perfect world this design would have had the top and bottom rail equally populated and there would be an evenly distributed ridge of randomness between them where some of the random transitions of the waveform would happen in between the rails. The waveform would spend random amounts of time at the top rail, equal but random amounts of time at the bottom rail, and in between would “change it’s mind” almost as often as it swings back and forth.

It turns out that it is very hard to get the system biased correctly to achieve that result. Indeed if you do manage to get that result the system will tend to drift off of it within a few minutes and almost certainly will be “unbalanced” if you turn it off and on again.

Actually, that presented me with an interesting challenge and for a while I almost set about fixing it — I thought it would be fun to figure out how to make the circuit self stabilizing so that I could achieve precisely this kind of randomness… but I realized after a while that it wasn’t going to give me what I wanted even if I did manage to stabilize it.

Along the way to that point I did discover an alternative that was almost good enough and even provided more energy in the higher frequencies…

A possible solution was to produce very short high amplitude spikes at random.

One possible solution to the instability actually produced a pretty good spectrum. It had more energy in the higher frequencies and an attractive “flat spot” in the mid spectra. In this case, still using a constant current source in the amplifier stage, I allowed the system to settle on the top rail and then randomly pull the signal down to ground for very short duration spikes at random intervals.

This turns out to work pretty well because any short duration spike must contain energy at a very large number of frequencies. So, generating a lot of short, high amplitude spikes at random intervals is potentially a good way to create broadband noise. Not only that, but this circuit is a lot easier to stabilize because it’s essentially biased to sit on one rail and “bounce” off of it violently and at random. If you use the average output voltage to “tune” your bias then the random noise coming from your zener diode can be made to cross a threshold at some reasonably uniform rate with each crossing producing a spike.

However, there is a problem with this. Although the spectra looks nice it is definitely not uniform in the way we expect or hope. Not only that, but if you think about applying this to the input of some device with a moderate frequency response it makes you wonder whether the results will tell you anything useful. What if the device simply refuses to respond to the spikes in the noise signal at all? What if that causes the output to be much lower than you would expect?

I think this is a reminder that there are many ways to create a particular spectra and they are not all equal. The spectrum analyzer in this case is showing a curve that looks promising with energy apparent at all of the desired frequencies and in something close to the desired amounts… but the character of the signal being described is hidden by the effects of averaging and windowing. The actual energy spectra is more “bursty” than we actually want. Instead we want something that is smooth – containing a good mix of energy at all frequencies all of the time, or at least as close to that as is possible.

Still, this was interesting and there may be some good applications for it.

Who knew that there would be so many “kinds” of noise with nearly indistinguishable spectra and that each would potentially have it’s own applications.

Construction

A while ago I discovered some prototyping boards that are designed to fit perfectly in Altoids tins. I purchased a bag of them and started collecting tins for little radio projects. I consider it a good idea to put anything that makes or consumes RF into a metal box — and this seemed like a good fit.

To begin, dry fit the big parts into the tin. If they fit, it’s time to build.

I had my lab tech carefully drill some holes and mount a BNC connector, barrel connector (for power), and stand-offs for the circuit board. Seeing that all of that fit nicely it was time to start building.

These things never go exactly as you expect, but to get a good result you have to start with a plan and evolve from there.

This device has a lot of potential challenges that most prototype projects don’t. For one thing we’re working with RF. I know, some will scoff and say that RF doesn’t happen until you’re well into GHz, but even at 10-50MHz the details matter. For example, there is a good deal of amplification going on here so we want to keep the inputs away from the outputs. We also want to be sure that grounding is handled properly; and we want to keep lead lengths as short as possible.

At the same time, we want to be sure the layout is beautiful — we’re making art!

All joking aside, if it looks good it is far more likely to work well… there really is something to be said for beauty. It turns out to be a fantastic short-hand for good engineering.

Once the basic plan looks good and all of the components have been accounted for it’s time to start populating the board.

Sometimes prototyping presents challenges that production won’t. Each regime informs the other.

Right away I noticed a problem. These PCBs are fantastic — each hole is a via and the opposite side of the board has a matching trace. This makes it very easy to populate both sides of the board if that’s useful. But it also creates a problem that won’t happen in a production PCB. The cans on the aluminum electrolytics will short out the traces if they are allowed to touch the board!! So, they need stand-offs.

We can make stand-offs for the electrolytics by borrowing short pieces of insulation from some hookup wire. The insulation also helps remind us of the polarity.

Each time a stage is completed it’s good to take a break, do some testing, and reflect on how the process is going and how well the build matches the plan.

I started with the power stage and decided to work backward from there. As usual I found myself making small adjustments to the plan as the build evolved. This is an important part of the process. Each time a change is made it’s important to look forward to the next steps and work through the rest of the build mentally. It’s a learning process; and it’s not unusual to discover that significant changes should or must be made. The goal is to see these well before you get to them so that your build doesn’t grind to a halt with some impossible problem. It’s always better to rework a design before parts are on the board than it is to force a bad layout and bodge your way around a physical impasse. Take the time to look ahead — it’s always worth it. The lessons you learn will inform your production planning if the prototype ever turns into a product; and your skills and intuition will dramatically improve with the practice.

Once all of the parts are in place it should look like a work of art. If it looks good chances are great that it’s performance will also be good.

You can’t always get a prototype to look like a production board; but the final build should have a lot of the same qualities. The signal routing should be intuitive and efficient. Parts should be straight, neat, and laid out logically. Leads should be short. Jumpers should be short, few and tidy. If you buzzed out your circuitry as you completed each section you should be ready to apply power. Smoke Test!

The Smoke Test — Apply power (and signals) and verify no magic smoke escapes. You did test all of this multiple times getting to this point… right?

I built the prototype by pulling parts directly out of the breadboard for each section as I completed it. In theory, this means that I have exactly the same circuit in my prototype as I had tested on the breadboard. It turns out that this never works exactly like you expect. In this case, I’ve got good results that are very close to those I had on the breadboard but inexplicably there are minor differences. For one, the output voltage is ever so slightly lower than it was on the breadboard. That’s odd — because the conventional wisdom is that what you build on a breadboard will generally perform a bit worse than what you build on a PCB (or other construction). This is especially supposed to be true of RF circuitry.

In the end every build is a little different – and that’s to be expected based on my experience. What matters is that the magic smoke stays well contained and that the circuit performs substantially as designed and previously observed. If it’s close it’s probably right — but make some comparative measurements to be sure.

When all of that is done and it looks right it’s time to put it in the box and do the final testing.

Next Steps

I am still considering possible improvements to this project as well as some projects that are inspired by it. One of the first things I’m likely to try is adding a small bypass cap to Q5 to ramp up it’s gain with frequency. If this or some other frequency shaping can be done linearly then I might consider going further and changing the gain structure to see how close to a truly flat response spectra it can produce.

I also have some ideas about exploring some of the other waveforms that emerged from this project and some other techniques. One that I might try involves using an ATTiny85 along with some of my encryption / prng algorithms to generate white noise with specific waveform characteristics, possibly even by modulating the output of the noise generator found here.

Another technique I might explore would possibly use some plain old 74HC00 logic to build hardware versions of LFSR based PRNGs and drive that logic with the noise generator from this circuit to see if that can be made to produce truly random data with well formed digital characteristics. There are a lot of areas to explore… FPGAs perhaps?

Noise, chaos, and randomness are very interesting topics with rich opportunities for further research.

If you build one of these or something similar please let me know how it goes.

If you have ideas about this build I’d love to hear those too.