Wednesday, July 19, 2023

Modifying an "O2-Cool" battery fan to (also) run from 12 volts

A blog posting about a fan?  Really?

Why not!

Figure 1:
The modified fan on my cluttered workbench, running
from 13 volts.
The external DC input plug is visible on the lower left.
Click on the image for a larger version.

This blog post is less about a fan, but is more of an example of the use of a low-cost buck-type voltage converter to efficiently power a device intended for a lower voltage than might be available - in this case, a device (the fan) that expects 3 volts.  In many cases, "12" volts (which may be anything from 10 to 15 volts) will be available from an existing power source (battery, vehicle, power supply) and it would be nice to be able to run everything from that one power bus.

Background

Several years ago I picked up a 5" battery-operated DC fan branded "O2 Cool" that has come in handy occasionally when I needed a bit of airflow on a hot day.  While self-contained, using two "D" cells - it can't run from a common external power source such as 12 volts.

Getting 3 volts

Since this fan uses 3 volts, an obvious means of powering it from 12 volts would be to simply add a dropping resistor - but I wasn't really a fan of this idea (pun intended!) as it would be very wasteful in power and since doing this would effectively defeat the speed switch - which, itself is just a 2.2 ohm resistor placed in series with the battery when set to "low".

The problem is that the fan itself pulls 300-400 mA on high speed.  If I were to drop the voltage resistively from 12 volts (e.g. a 9 volt drop) - and if we assume a 300mA current - we would need to add (9/0.3 = ) 30 ohms of series resistance to attain the same speed on "high" as with the battery.  The "low speed" switch inserts a 2.2 ohm resistor, and while this works with its original 3 volt supply, adding this amount to 30 ohms would result in a barely noticeable difference in speed, effectively turning it into a single-speed fan.  By directly supplying the fan with something close to the original voltage, we preserve the efficacy of the high/low speed switch.

Fortunately, there's an answer:  An inexpensive buck converter board.  The board that I picked - based on the MP1584 chip - is plentiful on both EvilBay and Amazon, typically for less than US$2 each.  These operate at a switching frequency of about 1 MHz and aren't terribly prone to cause radio interference, having also been used to power 5 volt radios and even single-board computers (such as the Raspberry Pi) from 12 volts without issues.

These buck converters can handle as much as 24 volts on the input and provide up to 3 amps output - more than enough for our purpose - and can also be adjusted to output about any voltage that is at least 4 volts lower than the input voltage - including the nominal 3 volts that we need for the fan.

An additional advantage is the efficiency of this voltage conversion.  These devices are typically 80% efficient or better meaning that our 300 mA at 3 volts (about 0.9 watts of power) would translate to less than 100mA at 12 volts (a bit more than a watt).  Contrast this to the hypothetical resistive dropper (an efficiency of 25-30%) discussed earlier where we would be burning up nearly 3 watts in the 30 ohm resistor by itself !

Implementation

One of my goals was to retain the ability of this fan to run at 3 volts as it would still be convenient to have this thing run stand-alone from internal power.  Perhaps overkill, but to do this I implemented a simple circuit using a small relay to switch to the buck converter when external power was present and internal power when it was not, rather than parallel the buck converter across the battery.

If I never intended to use the internal "D" cells ever again I would have dispensed with the relay entirely and not needed to make the slight modifications to the switch board mentioned below.  In this case I would have had plenty of room in the case and freedom to place the components wherever I wished.  In lieu of the ballast of the battery to hold the fan down and stable, I would have placed some weight in the case (some bolts, nuts, random hardware, rocks) to prevent it from tipping over.

The diagram of this circuitry is shown below:

Figure 2:
Diagram of the finished/modified fan.
On the left, J1 is the center-positive coaxial power connector with diode D1 and self-resetting
resetting thermal fuse F1 to protect against reverse polarity.  The relay selects the source of power.
Click on the image for a larger version.

The original parts of are the High/Low switch, the battery and the fan itself on the right side of the schematic with the added circuits being the jack (J1), the self-resetting fuse (F1), D1, R1, the buck converter and the relay (RLY).

How it works:

When no external power is applied, the relay (RLY) is de-energized and via the "NC" (Normally-Closed) contacts, the battery is connected to the High/Low switch and everything operates as it originally did.

External power is applied via "J1" which is a coaxial power jack, wiring the center pin as positive:  The connector that I used happens to have a 2.5mm diameter center pin and expects an outer shell diameter of 5.5mm.  There's nothing special about this jack except that I happen to have it on-hand.

When power is applied, the relay is energized and the high/low switch is disconnected from the battery but is now connected, via the "NO" (Normally Open) contacts, to the OUT+ terminal of the buck converter.  

Ideally, a small 12 volt relay would be used, but the smallest relay that I found in my junk box was a 5 volt unit, requiring that the coil voltage be dropped.  Measuring the relay coil's resistance as 160 ohms, I knew via Ohm's law that it required about 30 mA (5/160 = 0.03) and if we were to use 12 volts, we'd need to drop (12 - 5 =) 7 volts.  The resistance needed to drop 7 volts is therefore (7/0.03 = ) 233 ohms - but since I was more likely to operate it from closer to 13 volts much of the time I chose the next higher standard value of resistance, 270 ohms to put in series for R1.

Figure 3:
Modification of the switch board.  The button is
the positive battery terminal and traces are cut to
isolate it to allow relay switching.
Click on the image for a larger version.
The diode D1 is a standard 1 amp diode - I used a 1N4003 as it was the first thing that I found in my parts bin, but about any diode rated for 1 amp or greater could be used, instead.  Placing it in reverse-bias across the input of the buck converter means that if the voltage was reversed accidentally, it would conduct, causing the self-resetting thermal fuse F1 to "blow" and protect the converter.  I chose a thermal fuse that has several times the expected operating current so I selected a device that would handle 500-800 mA before it would open.

Modification to the switch board

The High/Low switch board also houses the positive battery contact, but since it is required that we disconnect the battery when running from external power, a slight modification is required, so a few traces were cut and a jumper wire added to isolate the tab that connects to the positive end of the battery as seen in Figure 3.

Figure 4:
The top of the board battery board. The
connection to the Batt+ is made by soldering to
the tab.
Click on the image for a larger version.
Near the top of the photo in Figure 3 we see that the trace connecting end of the 2.2 ohm resistor has been separated from the battery "+" connector (the round portion) and also along the bottom edge where it connects to the switch.  Our added jumper wire then connects the resistor to the far end of the switch where the trace used to go and we see the yellow wire go off to the "common" contact of the relay.

In Figure 4 we can see the top of the board with the 2.2 ohm resistor - but we also see the wire (white and green) that connects to one of the tabs for the Battery + button on the bottom of the board:  The wire was connected on this side of the circuit board to keep it out of the way round battery tab and the "battery +" connection.

The mechanical parts

For a modification like this, there's no need to make a circuit board - or even use prototyping boards.  Because we are cramming extra components in an existing box, we have to be a bit clever as to where we put things in that we have only limited choices.

Figure 5:
Getting ready to install the connector after
a session of drilling and filing.
Click on the image for a larger version.
In the case of the coaxial power connector, there was only one real choice for its location:  On the side opposite the power switch, near the front, because if it were placed anywhere else it would interfere with the battery or with the fan itself as the case was opened.

Figure 5 shows the location of this connector.  Inside the box. this is located between two bosses and there is just enough room to mount it.  To do this, small holes were drilled into the case at the corners of the connector and a sharp pair of flush-cut diagonal nippers were used to open a hole.  From here it was a matter of filing and checking until the dimensions of the hole afforded a snug fit of the connector.

Figure 6:
A close-up of the buck converter board with the
attached wires and BATT- spring terminal.
The tiny voltage adjustment potentiometer is
visible near the upper-left corner of the board.
Click on the image for a larger version.
Wires were soldered to the connector before it was pressed into the hole and to hold it in place I used "Shoe Goo" - a rubber adhesive - as I have had good luck with this in terms of adhesion:  I could have used cyanoacrylate ("Super" glue) or epoxy, but I have found that the adhesive bonds of these tend to be a bit more brittle with rapid changes of temperature, mechanical shock or - most applicable here - flexing - something that the Shoe Goo is meant to do.

Because this jack is next to the battery minus (-) connector, a short wire was connected directly to it, and another wire was run to the location - in the adjacent portion of the case - where the buck converter board would be placed.

Figure 6 shows the buck converter board itself in front of the cavity in which it will be placed, next to the negative battery "spring" connector.  Diode D1 is soldered on the back side of this board and along the right edge, the yellow self-resetting fuse is visible.  Like everything else the relay was wired with flying leads as well, with resistor R1 being placed at the relay for convenience.

Figure 7:
The relay, wired up with the flying leads.
Click on the image for a larger version.

Figure 7 shows the wiring of the relay.  Again, this was chosen for its size - but any SPDT relay that will fit in the gap and not interfere mechanically with the battery should do the job.

The red wire - connected to the resistor - comes from the positive connector on the jack and the "IN+" of the buck converter board - the orange wire is the common connection of the High/Low switch, the white/violet comes from the "OUT+" of the buck converter and goes to the N.O. (Normally Open) contact on the relay, the white/green goes to the N.C. (Normally Closed) relay contact and the black is the negative lead attached to the coil.

Everything in its place

Figure 8 shows the internals of the fan with the added circuitry.  Shoe Goo was again employed to hold the buck converter board and the relay in place while the wires were carefully tucked into rails that look as though they were intended for this!

Now it was time to test it out:  I connected a bench power supply to the coaxial connector and set the voltage of my external test power supply at 10 volts - enough to reliably pull in the relay - and set the fan to low speed.  At this point I adjusted the (tiny!) potentiometer on the buck converter board for an output of 3.2 volts - about that which could be expected from a very fresh pair of "D" cells.

Figure 8:
Everything wired and in its final locations.  On the far left is
the switch board.  To the left of the hinge is the relay with the
buck converter on the right side of the hinge.  The jack and
negative battery terminal is on the far right of the case.
Click on the image for a larger version.
The result was a constant fan speed as I varied the bench supply from 9 to 18 volts indicating that the buck converter was doing its job.

The only thing left to do was to make a power cord to keep with the fan.  As is my wont, I tend to use Anderson Power Pole connectors for my 12 volt connections and I did so here.

As I also tend to do, I always attach two sets of Anderson connectors to the end of my DC power cords - the idea being that I would not "hog" DC power connections and leave somewhere to plug something else in.  While the power cord for the fan was just 22 gauge wire, I used heavier wire (#14 AWG) between the two Anderson connectors so that I could still run high-current devices.

* * *

Does it work?

Of course it does - it's a fan!

The relay switches over at about 8.5 volts making the useful voltage range via the external connector between 9 and 16 volts - perfect for use with an ostensibly "12 volt" system where the actual voltage can vary between 10 and 14 volts, depending on the battery chemistry and type.

Figure 9:
The fan, folded up with power cord.  The two
power pole connectors and short section of heavy
conductor can be just seen.
Click on the image for a larger version.

Without the weight of the two "D" batteries, the balance of the fan is slightly precarious and prone to tip forward slightly, but this could be fixed by leaving batteries in the unit - but this is not desirable for long-term storage as leakage is the likely result.

Alternatively, one may place some ballast in the battery compartment (large bolt wrapped in insulation, a rag, paper towel, etc.) or simply by placing something (perhaps a rock or two) on the top.  Alternatively, since the fan is typically placed on a desktop, it is often tilted slightly upwards and that offsets the center of gravity in our favor and this - plus the thrust from the airflow - prevents tipping.


This page stolen from ka7oei.blogspot.com


[End]


Friday, June 30, 2023

It *is* possible to have an RF-quiet home PV (solar) electric system!

Figure 1:  Half of the array on my garage - the other half is
on the west-facing aspect.
There's a bit of shade in the morning around the end of June,
but it detracts little during the peak solar production
of the day - the hours on either side of "local" noon.
Click on the image for a larger version
For the past several years an incremental nemesis of amateur radio operation on the HF bands is solar power and the cover article of the April 2016 issue of QST magazine, "Can Home Solar Power and Ham Radio Coexist?" (available online HERE) brings this point home.

Personally, I thought that the article was a bit narrow in its scope, with an unsatisfying conclusion (e.g. "The QRM is still there after a lot of effort and expense, but I guess that it's OK") - but this impression is understandable owing to the constraints of the medium (magazine article) and the specific situation faced by the author.

Solar power need not cause QRM:

I can't help but wonder if others that read the article presumed that amateur radio and home solar were incompatible - but I know from personal experience that this is NOT necessarily the case:  There are configurations that will not produce detectable QRM on amateur bands from 160 meters and higher.

Before I continue, let me state a few things important to the context of this article:

Expertise in HF radio interference and home solar installations seems to mutually exclusive - which is to say that you will be hard-pressed to find anyone who is familiar with aspects of both.  This means that in the solar industry itself, you will not likely find anyone who can offer useful advice in putting together a system that will not contribute to the crescendo of electrical noise.
I have heard that many installers (at least in my area) will strongly pressure their potential customers to use microinverter-based systems - and this my experience as well:  From the very start of the process, I was adamant that the design of my system would be series string using SunnyBoy inverters which were known to me to be RF-quiet.  If your installer will not work with you toward your goals, consider a different company.
Designing an "RF-quiet" system as described here may incur a trade-off in available solar production as the use of microinverters can eke out additional efficiencies when faced with issues such as shading and complicated roofs that present a large number of aspects with respect to insolation (e.g. amount of light energy that can be converted to electricity).  Only in the analysis of proposed systems appropriate for your case can you reasonably predict the magnitude of this and whether or not you find it to be acceptable.
What is presented here is my own experience and that of other amateur radio operators with similar PV (PhotoVoltaic) system.  The scope of this experience is necessarily limited owing to the fact that when spending tens of thousands of dollars, one will understandably "play it safe" and pick a known-good configuration.
I will be the first to admit that there are likely other "safe" (low RF noise) combinations of PV equipment that can be demonstrated to be "clean" in terms of radio frequency interference.  I have anecdotally heard of other configurations and systems, but since I have not looked at them first-hand, I am not willing to make any recommendations that could result in the outlay of a large amount of money.  For this reason, please don't ask me a question like "What about inverter model 'X' - does it cause RFI?" as I simply cannot answer from direct experience.

An example system:

The system at my house consists of two series-string Sunny Boy grid-tie inverters:  I can unequivocally state that this system, which has both a SB 5000TL-US-22 (5 kW) and an SB3.8-1SP-US-40 (3.8kW) does not cause any detectable RF interference on any HF frequency or 160 meters - and I have yet to detect any interference on 6 meters, 2 meters or 70cm.  Near the LF and lower MF band (2200 and 630 meters, respectively) some emissions from these inverters can be detected - but none of the switching harmonics (about 16 kHz) land within either of these bands.  

Figure 2: 
One of two inverters in the garage. 
The Ethernet switch (upper right) produces
more RF noise than the inverter!
Click on the image for a larger version
This PV system is very simple:  I have a detached garage with a north-south ridge line meaning that the roof faces east and west.  While this orientation may seem to be less than ideal compared to a south-facing roof, it actually produces equal or greater power during the summer than a south-facing roof - and there are two usable surfaces onto which one can place panels (east and west) whereas one would typically not place any panels on a north-facing roof.  This means that one may be able to put twice as many panels on a symmetrical east-west facing roof than a south-facing roof.


Simple roof configuration can equal low noise:

The "simple" roof also has another advantage:  All panels on the faces are oriented the same and a larger number of panels may simply be wired in series.

This simple fact means that known-quiet series-string inverters may be used and known noise-generating components may be omitted from the system - namely, many models of "microinverters" and optimizers.  Both of these devices - despite being very different in their operation - are installed on a "per panel" basis and able to adjust the overall contribution of each panel to maximize the energy input of the entire solar power system.

Having each panel individually optimized for output power sounds like a good idea - and in most cases it is - but this nicety should be taken in context with the goals in mind - but considering that the panels themselves represent a rather small portion of the overall system cost, efficiency losses from not having optimizers can often be offset with the addition of more panels.  To be fair, it is not always possible to simply "add more panels" to make up for loss of production - but this must be carefully weighed against a major goal, which is to produce a "noise free" PV system.

The options have changed:

Since the 2016 article was written, the number of options for series-string inverters has significantly increased and the prices have gone down, allowing options to be considered now that may have been dismissed at that time.  Take the article as an example.

From the photographs accompanying the article, there appear to be two different aspects of panels:  A large array consisting of 30 panels, all seeming to face the same direction;  a smaller array of 8(?) panels:  There appears to be an array of 4 panels, but let us presume that this is an independent energy system.

Assuming that each panel is rated for 300 watts (likely higher than a circa-2016 panel) and that one would wish to limit the maximum open-circuit potential to about 450 volts, this implies the use of at least four MPPT circuits:  The 8 panel array and three arrays consisting of 10 series panels, each.  The maximum output of this system would theoretically be about 11.4 kW - but since one can optimistically expect to attain only about 80% of this value in a typical installation the use of an inverter system capable of 10 kW, as stated in the article, is quite reasonable.

Back in 2016, it would be reasonable to have a 10kW series string inverter with two MPPT inputs representing two separate inputs that could be independently optimized.  If such an inverter were used, this would mean that one input would have just 8 panels and the other would have all 30 panels on the main array - not particularly desirable in terms of balancing.  While all 30 of the panels in the larger array would ostensibly be producing the same output, snow, leaves and shading might cause the loss of efficiency should certain parts be thus impaired.

Having already ruled out the optimizing of each panel independently in the interest of having a "known-quiet" system, we might want to split things up a bit.  As an example, a single 10kW inverter with two MPPT inputs could be replaced with a pair of 5 kW inverters, each with 3 MPPT inputs and having a total of six independent DC inputs allowing the 8 panels of the isolated roof to be optimized together and the remaining 30 panels being divided into 5 arrays of about 6 panels, each.

The 2016 article did not mention the price the system, but a reasonable estimate for that time would be around US$35000 - and it was mentioned, in passing, that the cost of RFI mitigation might have been about 10% of the total system cost, implying about $3500 - about the cost of two Sunny Boy  SB5.0 5 kW series-string inverters, each with three MPPT inputs.

Replicating success:

At least two other local amateur radio operators used the same recipe for low-noise PV systems:  Series-string SunnyBoy grid-tie inverters - specifically the SB 3800TL, SB 5000TL and SB3.8s.  In none of these cases could RFI be detected that could be attributed to the inverter - and the only noise to be detected was with a portable shortwave receiver held within a few inches of the display.

What is known not to be quiet:

From personal experience I know for certain that microinverters such as the older Enphase M190 can be disastrous for HF, VHF and UHF reception.  As noted in the QST article, the Enphase power optimizers (model number not mentioned) also caused QRM.

Figure 3:
The two Tesla Powerwalls, gateway and electrical sub-
panels for the system located remotely on the east wall
of the house.
Click on the image for a larger version

Additionally, it has been observed that the Solaredge inverters - particularly coupled with optimizers - have caused tremendous radio frequency interference:  The aforementioned April, 2016 QST article about solar RFI deals with this very combination.

It probably won't work in all cases.

Compared to some installations that I have seen, my system - or the one in the 2016 article - are very simple cases - and there are a number of practical limitations, which include:

  • A "minimum" array size limitation.  Taking the Sunny boy SB5.0 as an example, there is a 90 volt minimum input which means that one would (very conservatively) want at least four 60-cell panels on each circuit.  This limitation may affect what areas on a roof may be candidates for placement of solar panels, reducing the total system capacity as compared to what might be possible with individually-optimized panels.
  • Systems with complicated shading.  If there are a number of trees - or even antennas and structures - portions of sub-strings may be shaded, causing reduction in output and compared to individually-optimized panels, series-strings are at a disadvantage, but careful selection of sub-string geometry can help.  For example, if a tower shades a series of panels during the period of highest production, placing all of those panels on one particular string can help isolate the degradation - but this sort of design consideration will require careful analysis of each situation.

Final words:

The design, configuration and layout of a home (or any) PV system is more complicated than depicted here and any system to be considered would have to take into account.  While I am certain that there are other ways to make an "RF Quiet" PV system, this article was intended to be limited to configurations and equipment with which I have direct experience.

Again, the likelihood of finding a "solar professional" who thoroughly understands RFI issues and knows which type of equipment is RF-quiet is unlikely, so it is up to you as the potential recipient of QRM to do the research.

Other articles at this blog on related topics:


This page stolen from ka7oei.blogspot.com


[End]

Sunday, May 21, 2023

Characterizing spurious (Harmonic) responses of the SDRPlay RSP1a (and other models)

The SDRPlay RSP2pro (left) and RSP1a receivers (right)
The SDRPlay RSP1a is a popular Software Defined Radio (SDR).  This device, connected to and powered by the computer via a USB cable covers from VLF through UHF and low microwave frequencies.

This receiver shares a similar internal architecture of similar devices such as the RTL-SDR dongle and the AirSpy in that an analog frequency converter (mixer) precedes the analog-to-digital converter:  In the case of the SDRPlay, the frequency to which the receiver is tuned is (usually) converted to baseband I/Q signals, with the "center" frequency being at zero Hz (DC). 1

Note:

For the purposes of this discussion, there is no difference between the RSP1a and some of the other receivers in the product lineup (e.g. RSPDuo, RSPdx and the discontinued RSP1, RSP2 and RSP2pro) in terms of harmonic response across the 2-30 MHz range as they all have about the same 12 MHz and 30 MHz cut-off frequencies on their input filtering - properties that would affect HF reception across the 2-30 MHz range in terms of harmonic response.
This issue was noted at least as far back as 2017 in the SDRPlay forum - See this thread:  https://www.sdrplay.com/community/viewtopic.php?t=2280

Imperfect mixers

By its nature, a frequency mixer is a non-linear device.  Ideally, the two frequencies applied to a mixer would yield just two more - the sum and difference.  For example, if we applied a 5 MHz signal and a 1 MHz signal to a mixer, it would output both the sum of 6 MHz and the difference of 4 MHz - and this is true, but there's more to the story.

In our example - with a real-world mixer, we will also get additional products - including those related to the harmonics of the local oscillator and the applied signal.  Because of this, we will see weaker signals at:

  • 11 MHz (2 * 5 MHz + 1 MHz) 
  • 9 MHz (2 * 5 MHz - 1 MHz) 
  • 7 MHz (5 MHz + 2 * 1 MHz) 
  • 3 MHz (5 MHz - 2 * 1 MHz) 
  • And so on.

Typically, these "other" signals will be quite a bit weaker than the original - but they will still be present, possibly at a high enough level to cause issues such as spurious signals - a problem with both receivers and transmitters.  Typically, these are tamed by proper design of the mixer, proper selection of frequencies and careful filtering around the mixer to limit the energy of these "extra" signals.

Note:  There will be a response at 5x the center frequency as well, but it is suppressed better than the 3x response by the mixer and - for the 80 meter amateur band and higher - these responses are suppressed reasonably well by the filtering.

SDRPlay's poor harmonic response suppression on 80 meters and below.

ANY receiver will experience spurious responses related to mixing products.  Typically, filtering is employed to remove/minimize such responses, but for a wide-bandwidth receiver such an SDR, doing this is complicated by the fact that being able to cover wide swaths of bandwidth would ideally require a large number of overlapping filters.

An example of a radio where this is done - albeit of different architecture - is the Icom IC-7300 which has nine overlapping band-pass filters that cover 160 through 10 meters.  While the reasons for the '7300 having many filters has as much to do with its being a "direct sampling" 2 type of SDR, good filtering on the signal path of any type of receiver - SDR or "HDR" (Hardware Defined Radio - or an "old school" analog type) is always a good idea

If this many filters had been implemented on the SDRPlay, there would be enough filtering to prevent a significant harmonic response.  In the case of the RSP1a, this was not done - partly to allow 5-8 MHz of continuous coverage without being significantly impacted by the filters in many cases, but more likely it was done due to practical reasons of economics 3 :  There are just three filters used for covering all of the "HF" amateur bands 160 through 10 meters:  One that covers up to 2 MHz, another that covers 2-12 MHz and third that covers 12-30 MHz:  This information is covered in the RSP1a technical information document ( https://www.sdrplay.com/wp-content/uploads/2018/01/RSP1A-Technical-Information-R1P1.pdf )

The sensitivity to harmonics was tested with the RSP1a's local oscillator (but not necessarily the virtual receiver) tuned to 3.7 MHz 4 .  For reasons likely related to circuit symmetry, it is odd harmonics that will elicit the strongest response which means that it will respond to signals around (3.7 MHz * 3) = 11.1 MHz.  "Because math", this spurious response will be inverted spectrally - which is to say that a signal that is 100 kHz above 11.1 MHz - at 11.2 MHz - will appear 100 kHz below 3.7 MHz at 3.6 MHz.  (It's likely that there are also weaker responses at frequencies around 5 times the local oscillator, but these are - for the most part - adequately suppressed by the filtering.)

In other words, the response to spurious signals follow this formula:

Apparent signal = Center frequency + ((Center frequency * 3) - spurious signal) )

Where:

  • Center frequency = The frequency to which the local oscillator on the RSP is tuned.  In the example above, this is 3.7 MHz.
  • Spurious signal = The frequency of spurious signal which is approximately 3x the center frequency.  In the example above, this is 11.2 MHz.
  • Apparent signal = Lower frequency where signal shows up.   In the example above, this is 3.6 MHz.

In our example - a tuned frequency of 3.7 MHz - the 3rd harmonic would be within the passband of the 2-12 MHz filter built into RSP1a meaning that the measured response at 11.2 MHz will reflect the response of the mixer itself, with little effect from the filter as the 2-12 MHz filter won't really affect the 11 MHz signal - and according to the RSP1a documentation (link), this filter really doesn't "kick in" until north of 13 MHz.

In other words, in the area around 80 meters, you will also be able to see the strong SWBC (Shortwave Broadcasting) signals on the 25 meter band around 11 MHz.

How bad is it?

Measurements were taken at a number of frequencies and the amount of attenuation is indicated in the table below.  These values are from measurement of a recent-production RSP1a and spot-checking of a second unit using a calibrated signal generator and the "HDSDR" program:

LO Frequency
Measured Attenuation at 3X LO frequency
Attenuation in "S" Units
2.1 MHz
21 dB (@ 6.3 MHz)  - Using 2-12 MHz filter
3.5
2.5 MHz 21 dB (@ 7.5 MHz)
3.5
3.0 MHz 21 dB (@ 9.0 MHz)
3.5
3.7 MHz 21 dB (@ 11.1 MHz)
3.5
4.1 MHz 23 dB (@ 12.3 MHz)
3.8
4.5 MHz 30 dB (@ 13.5 MHz)
5
5.0 MHz 39 dB (@ 15.0 MHz)
6.5
5.5 MHz 54 dB (@ 16.5 MHz)
9
6.0 MHz 54 dB (@ 18.0 MHz)
9
6.5 MHz 66 dB (@ 19.5 MHz)
11
12.0 MHz 21 dB (@ 36.0 MHz) - Using 12-30 MHz filter
3.5
12.5 MHz 21 dB (@ 37.5 MHz)
3.5
13.5 MHz 22 dB (@ 40.5 MHz)
3.7
14.5 MHz 26 dB (@ 43.5 MHz)
4.3
15.5 MHz 31 dB (@ 46.5 MHz)
5.2
16.5 MHz 35 dB (@ 49.5 MHz)
5.8
17.5 MHz 39 dB (@ 52.5 MHz)
6.5
18.5 MHz 43 dB (@ 55.5 MHz)
7.2
19.5 MHz 46 dB (@ 58.5 MHz)
7.7
20.5 MHz 50 dB (@ 61.5 MHz)
8.3
21.5 MHz 53 dB (@ 64.5 MHz)
8.8
Table 1:  Measured 3rd harmonic response of the RSP1a

Interpretation:

  • In the above chart we see the local oscillator frequency in the left column, the measured attenuation of the 3rd harmonic response (and its frequency) in the center column, and that amount of attenuation expressed in "S" units.  Here, an "S" unit is based on the IARU standard (Technical recommendation R.1) of 6 dB per S unit, which is reflected in programs like SDRUNO, HDSDR and many others.
  • The attenuation of the 3rd harmonic response was measured by first noting the signal level required to obtain a given reading - typically "S-9" near the fundamental frequency - and then observing the level required to obtain that same reading - within +/-1dB - near the 3rd harmonic frequency, using the relationship formula, above.
  • Below the cutoff frequency of the relevant filter (nominally 12 MHz for receive frequencies in the range of 2 to 12 MHz, nominally 30 MHz for receive frequencies in the range of 12 to 30 MHz) the harmonic response is limited to that of the mixer itself, which is about 21 dB.
  • We can see that on the 2 to 12 MHz segment, the attenuation related to the 3rd harmonic doesn't exceed 40 dB (which is the low end of what I would call "OK, but not great) until one gets above about 5 MHz (which translates to 15 MHz) and it doesn't get to the "goodish" range (50dB or more) until north of about 5.5 MHz which is borne out by the filter response charts published by SDRPlay.
  • On the 12 to 30 MHz band the 2-12 MHz filter has practically negligible effect until one gets above about 20 meters, at which point it gets into the "OK, but not great" range by about 18 MHz, and it doesn't really get "goodish" until north of 20.5 MHz.
  • Similarly, the "12-30 MHz filter isn't particularly sharp, either.  What this means is that strong 6 meter signals may well appear in the 16.5 to 17.5 MHz range as frequency inverted representations.
  • If there is a relatively strong signal source in the area of the 3rd harmonic response, it will likely appear at the lower receive frequency where the attenuation of the filter is less than 40 dB or so.  The severity of this response will, of course, depend on the strength of that signal, the amount of attenuation afforded by the filters at that frequency, and the amount of noise and other signals present in the range of the fundamental frequency response.
Based on the above data, we can deduce the following:
  • When the RSP1a is tuned between 2 MHz and (below) 12 MHz, it is using its "2-12 MHz" filter. In this range - and below approx. 4 MHz - the 12 MHz cut-off of the filter has negligible effect in reducing 3rd harmonic response.
    • What this means is that signals from 6-12 MHz will appear more or less unhindered (aside from the 21 dB reduction afforded by the mixer) when the local oscillator of the receiver is tuned between 2 and 4 MHz.
    • The 3rd harmonic response across 2-4 MHz - which is the 6-12 MHz frequency range - can contain quite a few strong signals and noise sources such as those from shortwave broadcast stations.
  • When the RSP1a is tuned between 12 MHz and (below) 30 MHz, it is using its "12-30 MHz" filter.  Below about 14 MHz, the 30 MHz cut-off of the filter has negligible effect in reducing 3rd harmonic response.
    • Signals from 36-40 MHz will appear with just 21-26 dB attenuation when tuned in the range of 12-13.5 MHz.
    • In most cases there are probably few signals in the 36-40 MHz range that are likely to be an issue when tuning in the 12-13.5 MHz range.

80 meter example:

Connecting the RSP1 to a known-accurate signal generator set to -40dBm, the signal level at 3.6 MHz was measured:  Maintaining the signal level, the generator was retuned to 11.2 MHz and the resulting signal level was measured to be 21 dB (a bit more than 3 "S" units) lower than that at 3.6 MHz.

What this means is is that a "20 over S-9" signal at 11.2 MHz will show up as an S-9 signal at 3.7 MHz, and an S-9 signal at 11.2 MHz will be around S-6 at 3.7 MHz.  In other words, even a "weak-ish" signal at the 3rd harmonic will show up at the lower frequency.

80/60 meter example:

If you run the RSP1a in a wider bandwidth mode, it is possible to simultaneously see and tune a greater frequency range.  For example, let us presume that you wish to cover both 80 and 60 meters using a single RSP1.  To do this, you could set the center (LO) frequency to 4.5 MHz and set the sample rate to 5.376 MHz and use the 5 MHz band-pass filter built into the RSP1's converter/mixer chip (the Msi001) to prevent in-band aliasing.

In this configuration 20 meter signals will appear at the top of 80 meters owing to the relationship in the formula that we described above.  Taking the 20 meter FT-8 subband at 14.074 MHz as an example, we see that:

4.5 MHz + ((4.5 MHz * 3) - 14.074) = 3.926 MHz

In other words, we will see spectrally-inverted representations of 20 meter FT-8 signals around 3.926 MHz, and the rest of the (upper) portion of 20 meters across the rest (lower) portion of 80 meters where USB signals on 20 meters will show up as LSB signals on 80.  We know from the chart above that those signals will be attenuated by between 30 and 39 dB (about 5-6 S-units).  This might sound like a lot of attenuation, but it means that a "20 over" signal on 20 meters will appear at around S-7 to S-8 on 80 meters - still quite respectable most certainly very audible!

More about filtering and harmonic response

While these spurious responses may not be too much of a problem for the casual user, it will be necessary to add additional filtering to allow the RSP1a to function on par with a modern, SDR receiver from one of the major manufacturers.

Unfortunately, the filtering in the RSP1a is not sufficient in the 80 meter case mentioned above as it doesn't have octave filters (or similar) - but what about 60 or 40 meters?

The table above answers this question.  In the case of 60 meters - with the receiver tuned to 5.3 MHz - our 3rd harmonic will land on 15.9 MHz.  Based on measurements of the receiver the response of signals around 15 MHz - which corresponds to the 19 meter Shortwave Broadcast Band - will be a bit more than 40 dB down from 40 meters with about 20 dB of this being due to the roll-off of the 2-12 MHz filter - but because this frequency range is inhabited by very strong shortwave broadcasters they are likely to still be quite audible around 60 meters.

The situation is a bit better for 40 meters where the 3rd harmonic is around the 15 meter band.  There, the 2-12 MHz filter knocks signals down by 50dB or more, putting them about 70dB below the 40 meter response - on par with about any respectable receiver.

What this means is that for amateur bands below 40 meters it is suggested that additional filtering be applied.

The best solution - and recommended for any software-defined radio (or even older "hardware-defined radios") is to have band-pass filter designed for the specific amateur band in question. This will not only significantly attenuate the harmonic response, but it will also reduce the total amount of RF energy entering the receiver, reducing the probability of overload.  The obvious down-side is that it will reduce the flexibility of the receiver in that unless you change/remove it, you won't be able to receive signals well outside the filter's design range.

Another possibility is to add a low-pass filter that is designed to cut off signals above the band of interest.  For example, if you have a filter that cuts off sharply above 8 MHz, you will be able to tune 80-40 meters and get reasonable attenuation of the 3rd harmonic response across this entire frequency range.

In the case of 160 meters the RSP1a will automatically select the 0-2 MHz low-pass filter and the 3rd harmonic response will be a respectable 50-ish dB down, depending on frequency.

On 20 meters - where the 3rd harmonic is around 42 MHz - the "12-30 MHz" filter will be selected, but the published response of this filter shows that at 42 MHz its attenuation will be quite limited.  Practically speaking, it is unlikely that there will be any signals in this frequency range so there being "only" 20-30dB of attenuation is unlikely to cause a problem in most cases, but one should be aware of this.

What can be done:

In short, none of the currently-made SDRPlay receivers - by themselves - will offer very good performance in terms of harmonic rejection between 2 and 5 MHz and it will be particularly bad on the 80 meter band where strong 25 meter SWBC signals can appear:  It is interesting that the ARRL review of the RSPdx (Link here) didn't catch this issue.

It is unfortunate that the designers of the SDRPlay receivers did not add at least one additional low-pass filter in the signal path to quash what is a rather strong response in the 2-6 MHz range - particularly on 80 meters, one of the most popular bands.  A low-pass filter with a cut-off frequency of 6 MHz (with attenuation becoming significant above 7 MHz) would ameliorate the harmonic response when tuning across this band.  This problem is made even worse by the fact that even antennas that aren't particularly resonant at their harmonic responses (e.g. the antenna for 80 meters) will likely do quite a decent job of receiving signals in the 11-12 MHz area.

The only real "fix" for this is to install additional filtering between the SDRPlay receiver and the antenna.  If single-band operation is all that is desired, the best choice will be a band-pass filter designed for the frequency range in question 5 - but unless you are dedicating the receiver just for that one band, this isn't really desirable unless you can easily switch/bypass the filter when tuning elsewhere.

A more flexible solution would be to use a low-pass filter.  As we noted above, the 12 MHz roll-off of the built-in (2-12 MHz) filter just doesn't do much to suppress signals from 20 meters, but if we had a filter that had a sharp cut off beginning, say, at 8 MHz, we could use it for 80, 60 and 40 meters - such a filter is depicted schematically, below:

8 MHz low-pass filter schematic, designed using ELSIE

This filter is pretty easy to build:

  • Capacitors 1 and 5 each consist of a 100pF and 470pF in parallel
  • Capacitor 3 consists of a 680pf and 220pF in parallel - although you could probably get away with two 470pF capacitors in parallel in a pinch.
  • Inductors 2 and 4 consist of 16 turns on a T50-2 (or 18 turns on a T37-2) toroid using small wire - 24-30 AWG (0.6-0.25mm dia.) is fine

A small scrap of PC board material - about 2"x4" (5x10cm) is more than large enough to accommodate with the capacitors soldered directly to the foil and inductors held aloft by the capacitors.  The connectors should be attached to the PC board directly - or with short lengths of coax, keeping the ground (shield) lead length to an absolute minimum to minimize the probability of ground-loop induced noise currents.

If you have access to a NanoVNA it's quite easy to check the performance.  If anything, it may be necessary to spread the turns across the toroid or remove one turn - but this design is quite forgiving and it should work adequate with no tuning at all.

The obvious down-side for this is that if you are tuning all over the HF spectrum (above 7.5-8 MHz in the case of the filter above) you'd have to manually remove or bypass any such filtering when you tuned beyond the range that the added filter would pass.

 

Footnotes:

  1. The receivers mentioned at the beginning of the article (SDRPlay, AirSpy HF, RTLSDR, etc.) have analog-to-digital converters that cover only a portion of the HF spectrum, using a frequency mixer to convert a range of frequencies from the range of interest to a lower frequency, which is then fed into the converter.  Limiting the amount of spectrum being ingested by the receiver - particularly when appropriate filtering is used - can improve performance, reduce cost, and especially reduce the total amount of data, allowing a modest computer (older PC, Raspberry Pi) to be used with it.
  2. A "direct sampling" type of receiver - such as that found in the Icom IC-7300, IC-7610, the KiwiSDR, Red Pitaya and the RX-888 (when used at HF) and others like them simply "inhale" large swaths of spectrum all at once.  Because the analog-to-digital converter itself has a limited amount of total RF signal power that it can handle, radios like the Icoms have filtering that allow the passage of only the (relatively) small portion of the HF spectrum around that to which the receiver is tuned, reducing the probability of overload from strong signals on frequencies well away from those of interest.  Other direct-sampling receivers such as the KiwiSDR, Red Pitaya and RX-888 do not necessarily have band-specific filtering as they are intended to be able to receive multiple frequencies across the entire HF spectrum at once and as such, much more care is required in implementation to prevent overload/distortion for these devices.
  3. In the case of the (currently-produced) RSP receivers, the filtering varies depending on model:  In the case of the RSP1a, it has a band-pass filter that covers 2-12 MHz while other models have used just a 12 MHz low-pass - the former being capable of rejecting AM broadcast band (e.g. mediumwave) signals from the input of the receiver when tuned to HF, and the latter not.  Some units additionally have a separate "notch" (reject) filter that is designed to remove just AM broadcast-band signals.  The situation described in this article - the reception of signals around 11 MHz when tuned to 80 meters - is related to the fact that the 2-12 MHz filter represents a 6:1 frequency range which means that over the lower portion of this spectrum, the 12 MHz cut-off of this filter cannot possibly remove responses to the third harmonic, hence the issue described here.
  4. If you are using a program like SDRUno it may not be readily apparent to what frequency the receiver's local oscillator is tuned.  If set to "Zero IF" mode, the local oscillator will be tuned at the same place as the center of the waterfall display when it is fully zoomed out - typically indicated by a slight line at the "Zero Hz" frequency there there is a slight amount of noise energy.  By default, one cannot directly tune the local oscillator ("Zero IF" frequency) in SDRUno.  If you use the "HDSDR" program by I2PHD (et al) you can independently tune the local oscillator and the frequency of the virtual receiver.
  5. SDRPlay receivers are currently in use at a number of well known and public WebSDRs around the world as the "acquisition device" (e.g. receiver).  In most cases these receivers - because they are used only for specific amateur bands - are preceded by a band-pass filter for the band that they are covering, completely eliminating issue noted in this article.  It was during testing at one of these WebSDRs - a receiver on 80 meters that does not (yet) have additional filtering - that signals were noted across the 80 meter band in the middle of the day that should not have been there at all - and these signals were quickly realized to be the result of a harmonic response in the front end.  These responses were then verified and quantified using two other RSP1a receivers (of different production runs) and test equipment during the preparation of this article.  When it was convenient to do so, a low-pass filter with a cut-off frequency of 7.5 MHz was installed on this receiver, solving the image problems.

* * *

This page stolen from ka7oei.blogspot.com

[End]


Tuesday, April 4, 2023

Exploring the "1-930MHz 2W RF Broadband Power Amplifier Module for FM Radio HF VHF Transmission" found on EvilBay

Figure 1:
The amplifier - with heat sink.
Click on the image for a larger version.


On EvilBay, you can find a number of sellers of a device described as:

 "1-930MHz 2W RF Broadband Power Amplifier Module for FM Radio HF VHF Transmission".  

This unit has SMA connectors for both input and output and is constructed on a circuit board and heat sink that measures just a bit under 2" square (50mm x 50mm).

As is so often the case with these sorts of things, the sellers likely have no idea what this actually is - and their listings are often sparse on details other than general operating parameters.

In the case of the device depicted in Figure 1, the parameters given in the listing are:

Type: RF Amplifier
Module: RF Broadband Power Amplifier Module
Dimensions: 50*50*15mm (L*W*H)
Working voltage: 12V (DC)
Frequency: 1-930MHz
Working current: 300--400mA (determined by output power)
Type 1: 1-930MHz 2W
Working frequency: 1-930MHz

There are a few "tells" here that this data was simply copied from some source - notably that line beginning with "Type 1" which probably means something only to the original supplier, in the original Chinese - but likely means nothing at all to anyone else.  Unfortunately, you are unlikely to get more information that this from an EvilBay listing and this hardly counts as "detailed technical information" about exactly how it works by virtue of describing its design in detail.

Comment:

This same (or very similar) circuit appears to be found in other form factors - possibly including that described here:  https://yo5pbg.wordpress.com/2019/10/28/the-ultrawideband-1-1000mhz-nwdz-rf-pa-2-0-initial-tests-and-improvements/  - This device may have a description such as:  "3W 2MHZ-700MHZ RF Power Amplifier HF VHF UHF FM Transmitter Module For Ham Radio"

I do not have one of these (yet?) but based on the above web page, it looks to be pretty much identical electrically aside from the output transistor being what appears to be an older variant of the one described below.

*  *  *

What is it, really?

From the picture in Figure 1, it's apparent that there are two active devices, but what are these - and will identifying these devices give a clue as to how one might really want to use one of them?

With a bit of magnification and Google-Foo, I was able to determine the nature of both of the active devices - and reverse-engineer a schematic diagram, below in Figure 2.

Figure 2: 
Reverse-engineered schematic diagram and component layout of the amplifier.  The component
designations are arbitrary as they are not marked on the PC board so a layout is provided.
Click on the image for a larger version.

This amplifier is about as simple as it gets:  A broadband MMIC with approximately 20 dB of gain is coupled into the gate of a VHF/UHF N-channel MOSFET amplifier - which itself has 10-15 dB of gain - with no matching. 

What this means is that it will take just a few milliwatts input to obtain about a watt of RF output across the intended frequency range - the precise amount of drive depending on the frequency, the supply voltage, and the desired output power.

A 5 volt regulator (U2) provides about 1.68 volts of gate bias on Q1 while supplying U1 with a stable 5 volt supply (at about 90 milliamps).  With no drive, the total current consumption is likely to be in the area of 130-150mA, but it could exceed 500mA at higher operating voltages and saturated power output levels.

Looking at the active devices:

Taking a step back, let's look at each device a bit closer - starting with U1, the MMIC on the input.  This device is the Qorvo SBB20892 MMIC (Datasheet here:  https://www.mouser.com/datasheet/2/412/SBB2089Z_Data_Sheet-1314913.pdf ).

Inspecting this data sheet we can see that its rated for operation from 50 to 850 MHz - although these types of devices typically have no problems operating at much lower frequencies (even down to DC) - and they can typically operate at quite a bit higher frequency than the specification, albeit with a bit of roll-off in gain and output power capability meaning that this stage of the amplifier should have no problem operating up to its 930 MHz stated range - or even higher.

Looking at the output stage, Q1, we see that it's a Mitsubishi RD01MUS2B RF N-channel MOSFET transistor (Datasheet here:  https://www.mitsubishielectric.com/semiconductors/content/product/highfrequency/siliconrf/discrete/rd01mus2b.pdf ) which is nominally a 7.2 volt, 1 watt transistor.  This is device has an SMD marking code of "KB861".

Right away you'll spot a bit of disparity between the EvilBay listing and the manufacturer's specifications - the former stating 2 watts at 12 volts.  Taking a close look at the specifications in the data sheet we can see that we should easily (and safely) be able to get about a watt out over the range of at least 100 to 930 MHz (and likely down to a few MHz) with a drain voltage of 7.2 volts on this device - perhaps a bit more or less, as there is no attempt at impedance matching on the output of this amplifier.

Looking further at the specifications, you might also note that the maximum drain-source voltage of this transistor is 25 volts:  If it is operated at 12 volts into a highly reactive load, it could be expected that the peak voltage could reach or exceed twice the supply voltage - and this does not take into account that the drain current, which is specified as an absolute maximum of 600mA - could also be exceeded.

What we can conclude from this is that operating at 12 volts or greater - particularly under conditions where the load to which the amplifier is connected might be mismatched (e.g. high VSWR) is probably not a good idea!

The device overall:

It should also not escape the attention of the reader the comment on the schematic relating to inductors L3 and L4 on the drain of Q1:  Together, these have a DC resistance of a bit more than an ohm.  With an expected drain current of 300-400mA in normal operation, one can expect at least a half-volt of drop across these two components which actually can work to our advantage in reducing the power supply voltage a bit.

Finally, looking closely at the data sheet you'll note that there are graphs that show operation to 10 volts drain current (or about 11 volts supply voltage, considering the drop of L3 and L4) that show outputs exceeding 2 watts.  If you feel that you really need more than 1 watt - or wish to have a bit of extra headroom for 1 watt operation (e.g. to preserve linearity) then operating at that voltage (10-10.5 volts) may be possible with the caution that you may be sacrificing reliability.

Considerations of linearity and stability:

This amplifier will generate significant harmonics, so it should never be connected directly to an antenna without appropriate filtering!  At a power output of 1 watt, if its second harmonic is 20-25 dB down (a reasonable value) that will represent several milliwatts of power on its harmonics which can easily carry for several miles/kilometers line-of-sight.

Particularly when this amplifier is operated from a supply of greater than 8 volts, care should be taken that the output is resistive (nominally 50 ohms).  Now this may sound pretty easy as antennas and filters are nominally 50 ohms, but one should consider frequencies other than that on which the amplifier may be operating:  Being an inexpensive device from EvilBay, it's hard to be sure of the quality of the components that one would use to make it operate in a stable manner (capacitors, board layout, inductors) - and since this amplifier has a rather high gain of around 30dB, it may not be unconditionally stable.

Take, for example, this amplifier being used to boost the output of an exciter on the amateur 6 meter band - around 50 MHz.  We should assure that at 50 MHz that the load (low-pass filter plus antenna) provides a reasonable match to 50 ohms.  What is not easily knowable with this sort of device is how it will behave at other frequencies:  If you move below 50 MHz, the match (SWR) will get terrible because the antenna is out of its design range - and if you move above 50 MHz, the SWR will also be terrible not just because of the antenna, but because the low-pass filter itself will start to reflect energy.  Again - in this example - the amplifier will see a match only at the antenna's design frequency - but it will be terrible everywhere else.

While an ideal amplifier wouldn't really care about off-frequency mismatches, a poorly-designed amplifier - or one that may be well-designed, but has not been designed to be intrinsically stable under all load conditions - might be prone to oscillation at some unknown frequency if it is connected to a load that presents to it just the right conditions that its built-in instability may cause oscillation.

This last point - the possibility of an amplifier oscillating at a frequency other than at where it is intended to operate - can be difficult to diagnose:  Worst case, this will cause the amplifier to die randomly and in the best case, it will output power that is lower (or randomly varying)  than expected and - possibly - have spurious outputs related to the mixing of the desired frequency and that at which it is oscillating.  If the frequency at which it is operating capriciously is above that of the low-pass filter, you may not even be able to detect that it is behaving in an untoward manner unless you were to do a broadband analysis by probing the amplifier's output directly - a process that could, itself, change the results!

This sounds like a lot of conjecture, hassle and trouble - and sometimes it is - but there are a few things that one can do to make the device work more reliably and also detect that something may be amiss.

  • Do not operate it at a higher voltage than needed to obtain the desired output power.  In the case of this device, 1 watt is about all you should reasonably expect in terms of long-term reliability.  Period.
  • If, under certain conditions, you see the power output randomly fluctuating - but the input drive and power supply voltage is constant - you likely have a spurious oscillation occurring within the amplifier.  A redesign of the filtering to change the off-frequency characteristics (e.g. the impedance well above the cut-off frequency of a low-pass filter, for example) may improve things:  Consider the use of a diplexer-type circuit with the "other" port (e.g. that which passes frequencies other than the desired) terminated.
  • A reasonable question would be:  "If I blow up Q1, where can I get another RD01MUS2B transistor to replace it?"  The answer - albeit a bit glib - is to simply buy another of these amplifier modules:  Unless you buy a lot of them at once, it will probably be cheaper to get another amplifier than just that transistor!

 * * *

This page stolen from ka7oei.blogspot.com


[End]


Saturday, March 4, 2023

Injection locking cheap crystal "can" oscillators to an external source

Figure 1:
The two generic "can" oscillators tested - both having been
found in my "box of oscillators".
Click on the image for a larger version.

Sometimes one comes across a device with one of those cheap crystal "can" oscillators that is "close" to frequency - but not close enough.  Perhaps this device is used in a receiver, or maybe it's used for clock generation or clock recovery. Such oscillator are available on a myriad of frequencies - although too-often not exactly the right one!

What if we want to "nail" this oscillator to an external (perhaps GPS) reference?  If this oscillator were variable, this task would be simplified, but finding a "VCXO" (Variable-Control Crystal Oscillator) on the frequency of interest is sometimes not even possible.

What if there were a way to externally lock a bog-standard crystal oscillator to an external source?

To answer this question, I rummaged through my box of crystal oscillators (everyone has such a box, right?) and grabbed two of them:  A standard 4 MHz oscillator and a 19.440 MHz oscillator that has an "enable" pin.

Comment:  

This article refers to standard, quartz crystal oscillators and not MEMs or "Programmable" oscillators where the internal High-Q resonating element likely has no direct relationship with the synthesis-derived output frequency.

Injection locking

This is what it sounds like:  Take a signal source of the desired frequency - typically very close to that of the oscillator that you are trying to nail to frequency - and inject it into the circuitry to lock the two together.

This technique is ancient:  It accounts for the fact that a (wobbly) table of pendulum-type metronomes set "close" to the same tempo will eventually synchronize with each other, and it is the very technique used in the days of analog TV to synchronize their vertical and horizontal oscillators to the sync signals from the incoming signal.

It's still used these days, one notable example being the means by which an Icom IC-9700's internal oscillator may be externally locked to an external 49.152 MHz source (see: http://www.leobodnar.com/shop/index.php?main_page=product_info&products_id=352 ) - and this is done by putting a known-stable source of 49.152 MHz "very near" the unit's built-in oscillator.

Injection-locking a discrete-component crystal oscillator is relatively simple:  It's sometimes just a matter of placing a wire near the circuitry (e.g. a "gimmick" capacitor) with the resonant element (e.g. near the crystal or related capacitors) and the light capacitive coupling will cause it to "lock" to the external source - as long as it's "close" to the oscillator's "natural" frequency.

Getting a signal inside the oscillator

Injection locking often needs only a small amount of external signal to be applied to the circuit in question - particularly if it's inserted in the feedback loop of the resonant circuit, but what about a "crystal can" oscillator that is hermetically sealed inside a metal case?

Figure 2:
Schematic depiction of power supply rail
to get the external signal "into" the can.
Click on the image for a larger version.
Because, in many cases, opening the can would compromise the seal of the oscillator and expose the quartz element to air and degrade it, this isn't really an option.  Another possibility would be to magnetically couple an external signal into the circuitry, but owing to a combination of its small size and the fact that these devices are typically in ferrous metal cans, this isn't likely to work, either.

So what else can one do to get a sample of our external signal inside?

Power rail injection

The most obvious "input" is via the power supply rail.  Fortunately - or unfortunately, depending on how you look at it - these oscillators often have built-in bypass capacitors on their power rails, putting a low-ish impedance on the power supply input - but this impedance isn't zero. 

Figure 3:
Top - The signal riding on the voltage rail
Bottom - The locked output of the oscillator
Click on the image for a larger version.
A simple circuit to do this is depicted in Figure 2.  The way it works is by decoupling the power supply via L1 and C1 and heavily "modulating" it with the signal to be locked with Q1.  For the test circuit seen in Figures 2 and 4, L1 and L2 were 10uH molded chokes, C1 and C2 were 0.1uF capacitors and Q1 was a 2N3904 or similar NPN transistor.  

When an external signal is applied to Q1 via C2 (I used +13dBm of RF from a signal generator) Q1 will conduct on the positive excursions of the input waveform, dragging the power supply voltage to the oscillator down with it.  With this simple circuit, Q1 has to dissipate quite a bit of power (the current was about 500 mA) and this action results in a fair bit of power dissipation, likely due to the fact that the bypass capacitance within the oscillator is shunting the energy and causing a significant amount of power to be lost.

This circuit has room for improvements - namely, it's likely that one could better-match the collector impedance of Q1 with the (likely) much lower impedance at the V+ terminal of the oscillator - possibly using a simple matching circuit (L/C, transformer, etc.) to drive it more efficiently.

Figure 4:
The messy test circuit depicted in Figure 2 used to inject the
external into the "can" oscillator via the power pin.
Click on the image for a larger version.

Despite its simplicity, with the circuit in Figure 2 shows how I was able to inject an external signal source into the oscillator and, over a relatively narrow frequency range (15 Hz for the 4 MHz oscillator, 60 Hz for the 19.44 MHz oscillator) it could be locked externally.

The oscillogram in Figure 3 shows the resulting waveforms.  The top (red) is the AC-coupled power supply rail for the oscillator showing about 2 volts of RF imposed on it while the bottom rail shows the square-ish wave output of the power supply.  Using a dual-trace scope, it was easy to spot when the input and output signals were on the same frequency - and locked - as they did not "slide" past each other.

As you might expect, the phase relationship between the two signals will vary a bit, depending whether one is at the low or high frequency end of the lock range and with changes in amplitude, so this - like about any injection-locking scheme - shouldn't be confused with a true "phase lock".

Is the lock range wide enough?

The "gotcha" here is that these are inexpensive oscillators, likely with 50-100 ppm stability/accuracy ratings meaning that they are going to drift like mad with temperature and applied power supply voltage.  What this also means is that these oscillators are not likely to be "dead on" frequency, anyway.

To a degree, their frequency can be "tuned" by varying the power supply voltage:  A 5-volt rated "can" oscillator will probably work reliably over a 3.5-5.5 volt range, often changing the frequency by a hundred Hz or so:  The 19.44 MHz oscillator moved by more than 1.5 kHz across this range, but never getting closer than 2 kHz above its nominal frequency - but this correlates with the often-loose specifications of these devices in terms of frequency accuracy, not to mention temperature!

If your oscillator is "close enough" to the desired frequency at some voltage - and it is otherwise pretty stable, this may be a viable technique, but other than that, it may just be a curiosity.  If one chooses an oscillator with better frequency stability/tolerance specifications - like a TCXO - this may be viable, but testing would be required to determine if a TCXO's temperature compensation would even work properly if the power supply voltage were varied/modulated with an external signal.

"Enable" pin injection

Figure 5:
Schematic depicting applying an external signal via the
"enable" pin.  The amplitude of the external signal must
have a peak-to-peak voltage that is a significant percentage
of the power supply voltage.
Click on the image for a larger version.
Many of these "can" oscillators have (or may be ordered with) an "enable" pin which turns them on and off - and unlike the power supply pin, this typically has pretty low parasitic capacitance compared to the V+ pin of the oscillator and it can provide a way "in" for the external frequency reference.  Figure 5 shows how this can be done.

For this circuit, resistors Ra and Rb (which may be between 1k and 10k, each) bias the "enable" pin somewhere around the threshold voltage and capacitively couple the signal - in this case, a +13dBm signal from a signal generator which had about 2 volt peak-to-peak swing.  If a logic-level signal is available, one can dispense with the bias resistors and the capacitor and drive it directly.

Note that some oscillators have a built in pull-up or pull-down resistor which can affect biasing and the selection of resistors should reflect that:  If its specs note that the pin may be left open to enable (or disable) the oscillator, this will certainly be the case.  If a pull-up resistor is present, the value of the corresponding external pull-down resistor will have to be experimentally determined, or "Rb" (in Figure 5) may be made variable using a 10k-100k trimmer potentiometer.

The 19.44 MHz oscillator shown in Figure 1 has such an enable pin and by injecting the 2 volt peak-peak signal from the external source into, it will reliably lock over a 900 Hz range.  Some degree of locking was noted even if the signal was quite low (around 250 mV peak-peak) but the frequency swing was dramatically reduced.  For optimal lock range it's expected that a swing equal to that of the supply rail would be used.

The precise mechanism by which this works is unknown:  Does the "enable" pin actually turn the oscillator on and off, does it simply gate the output of the oscillator while it continues to run or is it that this signal gets into the onboard circuitry and couples into the oscillator's feedback loop?  I suspect that it is, in most cases, the former as the "enable" pin often reduces power consumption significantly by completely turning off the oscillator section which would explain why it seems to work reasonably well - at least with the oscillators that were tested.

If the oscillator itself is "gated" (e.g. turned on/off) by the "enable" pin, then this is precisely the mechanism that we would want to inject an external signal into the oscillator.  In looking at the output waveform, however, I suspect that the answer to this question isn't that simple:  If it were simple logic gating one would expect to see the output waveform of the oscillator gated - and mixing - with the external signal once the latter was outside the "lock" range - but this was not the case for the oscillator tested.  I suspect that there might be some sort of filtering or debouncing in the gating circuit, but based on the ease by which locking was accomplished using this oscillator, there was clearly enough of the external signal getting into the oscillator portion itself to cause it to lock readily.

As noted previously, while the lock range was about 900 Hz, the oscillator itself was about 2.5 kHz high, anyway, so it could not be brought precisely onto the nominal frequency.  Again, it may be possible to do this with a TCXO equipped with an "enable" pin, but testing would be required for any specific oscillator to determine if this is viable.

"Locked" performance

The testing of spectral purity using either of these methods was only cursorily checked by tuning to the output of the oscillator with a general-coverage receiver and feeding the resulting audio into the Spectran program to see a waterfall display.  This configuration allows both the absolute frequency and the lock range to be measured with reasonable accuracy.

It can also tell us a little bit about spectral purity:  If there was a terrible degradation in phase noise, it would likely show up on the waterfall display - but when solidly locked, no such degradation was visible.

Although it wasn't tested, it's also likely that locking the oscillator - particularly using the "enable" pin - could be used to "clean up" an external oscillator that is somewhat spectrally "dirty" owing to the rather limited lock range and high "Q" of the "can" oscillator.  This is most likely useful for higher-frequency components (e.g. those farther away from the carrier than a few kHz) rather than close-in, low-frequency phase noise - a property which the most inexpensive oscillators likely don't have is anything resembling stellar performance, anyway.

Harmonic locking?

One thing that I did not try (because I forgot to do so) was harmonic locking - that is, the injection of a signal that is an integer fraction of the oscillator frequency (e.g. 1 MHz for the 4 MHz oscillator) - perhaps something to try later?

Is this useful for anything?

I had wondered for some time if it would be possible to lock one of these cheap oscillators to an external source and the answer appears to be "yes".  Unfortunately, most crystal oscillators have accuracy and temperature stability specifications that cause its natural frequency variance to exceed the likely lock range unless one gets a particularly stable and accurate oscillator.

If one presumes that the oscillator to be "tamed" is good enough then yes, it may be practical to lock it to an external source - particularly via the "enable" pin.  In many cases, such oscillators don't have this feature as they need to be active all of the time so it may be necessary to replace it with one that has an "enable" pin - and then one must hope that the replacement will, in fact, be stable/accurate enough and also capable of being locked externally - something that must be tested on the candidate device.

So the answer is a definite "Yes, maybe!"


This page stolen from ka7oei.blogspot.com

[END]