Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High harmonic content #380

Closed
gkasprow opened this issue Jan 29, 2021 · 76 comments
Closed

High harmonic content #380

gkasprow opened this issue Jan 29, 2021 · 76 comments

Comments

@gkasprow
Copy link
Member

One of the users reported that Booster has high harmonic content. Here are the measurements at 150 MHz Signal, (-18 dbm). Signal was generated by Urukul
obraz

Comparing with MiniCircuits amp
obraz

The Booster was optimized for efficiency, not for linearity.
Let's see what we can do about it

@hartytp
Copy link
Collaborator

hartytp commented Jan 29, 2021

See #381 (comment) for more context

@hartytp
Copy link
Collaborator

hartytp commented Jan 29, 2021

@gkasprow while you're looking at this, can you have a look at the (thermal?) transients @jordens measured as well #368 The two may be related.

@gkasprow
Copy link
Member Author

gkasprow commented Feb 4, 2021

I connected the Booster to 400MHz, -20dBm signal and probed the traces with SA and 1:10 probe at the output of I, II and III stage and what I got:
I stage 2nd harmonic is -42dB
II stage 2nd harmonic is -25dB
III stage 3rd harmonic is -23dB

So, we have a lot of distortion even for relatively low power

For 400Mhz and -18dBm, I got
I stage 2nd harmonic is -40.7dB
II stage 2nd harmonic is -22,8dB
III stage 3rd harmonic is -20.4dB

It means that it's the second stage who is guilty.

@hartytp
Copy link
Collaborator

hartytp commented Feb 4, 2021

That's interesting. And good as it means we may be able to significantly improve this without compromising the power efficiency...

@gkasprow
Copy link
Member Author

gkasprow commented Feb 4, 2021

I removed the output TVS and the 2-nd harmonics is -21.8dB

@hartytp
Copy link
Collaborator

hartytp commented Feb 4, 2021

What does the feedback do to the amp's P1dB?

@gkasprow
Copy link
Member Author

gkasprow commented Feb 4, 2021

I've just removed it and it seems it does nothing for 400MHz.
The 2-nd harmonic is still -21.6dB, the output signal slightly increased

@gkasprow
Copy link
Member Author

gkasprow commented Feb 4, 2021

At -40dBm of input power, the II stage has -46dB of 2nd harmonics

@hartytp
Copy link
Collaborator

hartytp commented Feb 4, 2021

Are these numbers dBc?

@gkasprow
Copy link
Member Author

gkasprow commented Feb 4, 2021

Yes

@gkasprow
Copy link
Member Author

gkasprow commented Feb 4, 2021

It looks like the PHA-1+ amplifier is working with higher power than planned...

@gkasprow
Copy link
Member Author

gkasprow commented Feb 4, 2021

OK, so I set -18dBm, connected the probe and the SA shows a peak at -39.9dBm (after 1.5 SMA cable which has 0.5dB loss); so my probe is actually -21.4dB
Then I measured the signal at the II stage output and I got -20.2dBm. It corresponds to roughly -1.2dBm Output power is 13.7dBm (plus 0.5dB of cable loss) which gives the last stage gain of 15.4 which makes sense.

@gkasprow
Copy link
Member Author

gkasprow commented Feb 4, 2021

PHA-1+ amplifier is working in very comfortable conditions.

@gkasprow
Copy link
Member Author

gkasprow commented Feb 4, 2021

Let's see how it behaves loaded with just SA...

@gkasprow
Copy link
Member Author

gkasprow commented Feb 4, 2021

With -18dBm of input power, it shows -2dBm and 2-nd harmonic is -46dBc

@gkasprow
Copy link
Member Author

gkasprow commented Feb 4, 2021

So there is something wrong with the III stage input impedance

@gkasprow
Copy link
Member Author

gkasprow commented Feb 4, 2021

I replaced L2 with a 300R resistor as in the DS, and it's the same. Let's see what VNA shows...

@gkasprow
Copy link
Member Author

gkasprow commented Feb 4, 2021

the S11 is lower than -10dBm, but of course, that won't show us nonlinearities...

@gkasprow
Copy link
Member Author

gkasprow commented Feb 4, 2021

what we can do is to add an attenuator between II and III stage and later on remove one before the II stage. That would isolate the stages...

@gkasprow
Copy link
Member Author

gkasprow commented Feb 5, 2021

I inserted a 7dB attenuator between the stages and the second harmonic dropped to -28dBc. After I increased the input signal by 7dB the 2-nd harmonics is still at -21dBc

@gkasprow
Copy link
Member Author

gkasprow commented Feb 5, 2021

It looks like we have to go for the higher power amplifier. I identified one with identical package, supplied from 5V and capable of delivering +30dBm P1dB. I ordered a few pieces and will give it a try next week

@hartytp
Copy link
Collaborator

hartytp commented Feb 8, 2021

@gkasprow out of curiosity: (a) are your measurements consistent with the P1dB of the current amplifier? (b) what does the feedback do here, are we sure it is unconnected to this?

@gkasprow
Copy link
Member Author

gkasprow commented Feb 8, 2021

the feedback is supposed to lower the gain slightly and improve linearity. But it is 1k : (50R || 50R) so it's influence is negligible.
The first think I did was removal of the FB loop.
I'm pretty confident that the non-ideal load of the power stage somehow interacts with the preamp stage.
I'm not able to observe any distortion using scope. But the non-linearities we are talking are not very high.

@hartytp
Copy link
Collaborator

hartytp commented Feb 8, 2021

okay, makes sense.

For testing, this sounds like a really sensible plan. If we're going to make changes to the RF section it might be worth having a think about simplifying things.

@hartytp
Copy link
Collaborator

hartytp commented Feb 8, 2021

@jordens @cjbe what are your feelings about the ideal gain for this amp? I feel that 40dB might be a bit higher than optimum. 35dB (at the centre of the frequency range) would be a better match for much of what I want to do.

@hartytp
Copy link
Collaborator

hartytp commented Feb 8, 2021

To elaborate a little here...

we currently have:

  • 5dB pad
  • ADL5536 (G=20dB, P1dB=?dBm)
  • 6dB pad
  • PHA-1+ (G=16dB, P1dB=?dBm)

To give a total gain of 20+16-6-5=25dB. If we're happy with an overall amplifier gain of, say, 35dB we could potentially scrap an entire stage of the amplifier. Not to mention removing the input attenuator which currently limits the amplifier's overall NF.

@gkasprow
Copy link
Member Author

gkasprow commented Feb 8, 2021

the input attenuator was added to protect the input stage against overload

@hartytp
Copy link
Collaborator

hartytp commented Feb 8, 2021

For my own interest, here are a few MCL options....

image

@hartytp
Copy link
Collaborator

hartytp commented Feb 8, 2021

It's a question for all the stakeholders here, but I wonder if we'd be okay with removing all the attenuators and going for a https://www.minicircuits.com/pdfs/TSS-13LN+.pdf as a single-stage amplifier. Cheaper, simpler design with less power consumption. Lower overall gain which I personally don't think is a bad thing. Lower noise figure. A bit less input protection, but should be fine with the diodes.

It would mean we have a bad VSWR with the interlock tripped (due to no input attenuator + reflective switch). But I don't see that as being a problem. If it is, we can always use a non-reflective switch (IIRC the motivation for the reflective switch was the switching transients, but that doesn't seem to have been any better with the reflective switch)

@gkasprow
Copy link
Member Author

I ordered NPA1007. It has a similar package and the same voltage but twice higher power. I will give it a try.

@gkasprow
Copy link
Member Author

gkasprow commented Mar 19, 2021

I installed NPA1007 and the situation is nearly the same apart from lower gain.
For all measurements, I use 21,9dBm output power. It's 1.9dBm after 20dB attenuator. The 2-nd harmonics are after 20dBm attenuator.

Default amplifier configuration
Idd; 2nd harmonic:
50mA; -13,8dBm
100mA; -20,7dBm

With NPA1007:
Idd; 2nd harmonic:
50mA; -13,7dBm
100mA; -21,0 dBm
130mA; -25,1dBm
150mA; -27,3dBm
200mA; -31,8dBm
250mA; -32,7dBm

I cannot set a higher current than 250mA.
But I think I know what's going on.
The reference ZHL-2W amplifier consumes 2A at 28V. This is a lot of current!
If we use 4 NPA1007 working with 250mA running at 1/4 of power, we would get -43dBm of 2-nd harmonic (after 20dB attenuator).
So there is an obvious tradeoff: harmonics vs Idd.
We can also go for a push-pull configuration that should have lower harmonic distortion.
Here is an example relationship for QPA2237
obraz

@gkasprow
Copy link
Member Author

gkasprow commented Mar 19, 2021

So, we can make a special version of Booster, dedicated to high-linearity applications.
If we go for let's say 2x QPA2237, we would be able to significantly reduce the harmonics. With 360mA of Id, we can try to beat the ZHL-2W. Note that my measurements were at 22dBm, but harmonics were in fact 20dB higher due to the 20dBm attenuator.
ZHL-2W has -23dBm (after correction by 20dB due attenuator) of 2-nd harmonics at 22dBm output power.

@gkasprow
Copy link
Member Author

RFPD3580 is another interesting option, we would avoid connecting two stages in parallel

@gkasprow
Copy link
Member Author

I ordered a few push-pull wideband amplifiers, will give them a try.

@hartytp
Copy link
Collaborator

hartytp commented Mar 19, 2021

@gkasprow thanks!

So there is an obvious tradeoff: harmonics vs Idd.

If that's the situation here then I agree there isn't a design issue so much as a deliberate choice made. We wanted something with high power consumption for cases where linearity isn't particularly important. As you say, there is a reason this dissipates much less power than an equivalent MCL amplifier; we pay a price in terms of linearity.

This should be clearly communicated to users of Booster. If people want something with better linearity then we can look at designing a replacement RF circuit. First though it would be really helpful to have a clear spec for what is actually wanted from the design (bandwidth, max power, etc). I suspect that taking the current design but aiming for more linearity won't actually provide the optimal solution for people

@hartytp
Copy link
Collaborator

hartytp commented Mar 19, 2021

I cannot set a higher current than 250mA.

Why can't you go higher than 250mA? What limits this?

@gkasprow
Copy link
Member Author

Right. We can make an assembly variant with NPA1007 which has a similar package and pinout (only bias enters separate pin).
In this way the user can choose high efficiency of low distortion mode by just changing the Id.

@hartytp
Copy link
Collaborator

hartytp commented Mar 19, 2021

what's the downside of using NPA1007 as standard and just using a lower current by default?

@gkasprow
Copy link
Member Author

250mA seems to the max due to thermal dissipation. I damaged the FET after running with a higher current. We are also limited by Booster 28V LDO - it trips.

@hartytp
Copy link
Collaborator

hartytp commented Mar 19, 2021

250mA seems to the max due to thermal dissipation. I damaged the FET after running with a higher current.

Okay, so 7W quiescent max.

I damaged the FET after running with a higher current. We are also limited by Booster 28V LDO - it trips.

Okay, good to know. IIRC this was a design choice by us in setting the foldback limiting resistors; the LDO itself can supply a lot more, but I may be wrong...

@gkasprow
Copy link
Member Author

Okay, good to know. IIRC this was a design choice by us in setting the foldback limiting resistors; the LDO itself can supply a lot more, but I may be wrong...

exactly.

@gkasprow
Copy link
Member Author

I tried the CATV amplifier. It works at 28V and provides -40.3dBc of second harmonics and -47dBc of third harmonics at 30dBm of output power.
At 20dBm of output power the second harmonics is -45dBc and the third one is at -60dBc.
The amp is a popular 8$ CATV hybrid. It's no longer produced but I could buy it quickly
It consumes 530mA at all power levels from 0 to 30dBm.
It does not need any biasing. Just 28V.
I ordered another one with similar specs and the same package from Mouser but these days it takes 2 weeks until they ship it...
Anyway, it looks promising. Such amp would use the cooling potential of Booster mechanics :)

@gkasprow
Copy link
Member Author

It seems feasible to make such an amp compatible with existing mechanics.

@gkasprow
Copy link
Member Author

gkasprow commented Mar 24, 2021

some photos
2021-03-24 00 57 26
2021-03-24 00 57 36
power stage S21
2021-03-24 01 08 10
power stage S11
2021-03-24 01 03 15

@gkasprow
Copy link
Member Author

This particular hybrid has the potential to work at 12V. I mean simple EEM RF amp idea
It consumes 270mA and at 30dBm has -30dBc of second harmonics. But the gain drops to 10dB
At 20dBm it has -41dBc of second harmonics at 18dB of gain. Probably not worth it since it's out of its working conditions.

@hartytp
Copy link
Collaborator

hartytp commented Mar 24, 2021

The amp is a popular 8$ CATV hybrid. It's no longer produced but I could buy it quickly

How practical is it to build new products based on obsolete CATV amps? They are really nice amps, if you can get them

@gkasprow
Copy link
Member Author

How practical is it to build new products based on obsolete CATV amps? They are really nice amps, if you can get them

If you keep a stock of a few hundred, that makes sense.
I ordered the available equivalent (RFPD3580). Similar spec, same package, and voltage.

@gkasprow
Copy link
Member Author

gkasprow commented Apr 1, 2021

Another amplifier I ordered from Mouser 2 weeks ago just arrived. Now it takes even 10 days to complete the orders.
It offers slightly higher power, consuming 0.5A of idle current.
output 2-nd harmonics
20dBm -40dBc
30dBm -34dBc
34dBm -30dBc
35dBm -26dBc

@gkasprow
Copy link
Member Author

I integrated the amplifier with the Booster RF board. I removed the attenuators and the first stage because it made the 2-nd harmonics worse. I left only PHA-1+. The overall gain is 30dB which matches Urukul well. And now this is what I get:
at 20dBm, the second harmonic is at -48 dBc
at 30dBm, the second harmonic is at -40.5dBc
at 33dBm, the second harmonic is at -37dBc
at 34dBm, the second harmonic is at -33dBc
at 35dBm, the second harmonic is at -30dBc

@gkasprow
Copy link
Member Author

It's time to design new boards for Booster-HL version

@gkasprow
Copy link
Member Author

And this is the new PCB. The amp needs a simple aluminum adapter to dissipate the heat. It can also be screwed directly to the wall, but that would break compatibility with existing mechanics.
obraz

@hartytp
Copy link
Collaborator

hartytp commented Apr 18, 2021

It's time to design new boards for Booster-HL version

@gkasprow before we spin up any new hardware, can you have a look at #375

@hartytp
Copy link
Collaborator

hartytp commented Apr 18, 2021

@gkasprow we should also look at the slow (ms) power transients (#368) with the old/new amp before producing more hw

@alandoak
Copy link

Protection diodes on the input and output of an amplifier are generally a bad idea, they are non-linear elements that create harmonics and intermod distortion, even well below their voltage knee. Diodes are designed and marketed for datalines and such, not RF signals. For RF equipment that might be exposed to lightning strikes (outdoor antennas, CATV, etc.), protection usually involves shunt quarter-wave stubs, lumped element filters, and sometimes gas discharge tubes (GDT).

Also, once a component is assembled onto a circuit, the ESD tolerance is greatly increased by filtering, decoupling, trace capacitances, etc. For a lab amplifier like this: remove the diodes, slap a sticker onto the front panel that says "+24dBm max input", and maybe add a lowpass filter to the output.

@gkasprow
Copy link
Member Author

gkasprow commented Sep 30, 2021

@alandoak you are generally right. But in the case of this amp, we don't really care about the linearity. Without these diodes, we observed several serious damages to the first, second, and third stages. You can find all the history of the debugging in issues, which ended up with the introduction of the TVS diodes. Thanks to these diodes, the Booster is bullet-proof.
Why do I think you are not right in this case? There is a Booster-HL version that has very low distortion even though all the diodes are in the same places. The only difference is the power stage. #385

@gkasprow
Copy link
Member Author

gkasprow commented Sep 30, 2021

During debugging of nonlinearity, the TVS were the first components I removed :)

@gkasprow
Copy link
Member Author

gkasprow commented Feb 7, 2022

It's not an issue, it's a feature. Closing.

@gkasprow gkasprow closed this as completed Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants