By:
Category:
Comments Off

Transistors: Classes A, AB, B, and C

I am still reading and trying to figure out the differences in how each class is biased.








Class A is the most common example and pretty well documented:



  • R3 is controlling the majority of the current for the device


  • R1 & R2 are a DC voltage divider probably about ~1/2 the Voltage at the collector


  • T1 (which could also be a resistor) at the Q1 collector is ~ 1/2 Vcc


  • Tweak the R3 / T1 (or the resistor substitute or T1) ratio drive your power output.


  • Current hungry circuit.




  • Can easily get 10, 15, and approaching 20dB of gain


  • I am seeing 17dB of gain with 25mA with some additional AC feedback at the emitter,
    and between the collector and base.


  • The amp is running 100% duty cycle.


------------------------






Class AB or B is discussed in detail but very few math examples:



  • Configure R1 & R2 for about 0.7v. This will largely determine what class you are
    in. The higher the voltage the more likely you are to be in class AB or A. The lower
    the voltage the closer to B or even C.


  • R3 is largely controlling the device current


  • T1 (which could also become a resistor) is being used to transform the output to match
    the next stage. 


  • The amp is running between around 50% duty cycle.


  • Normally this is used in a push-pull pair.




  • AB in a push-pull pair can have some cross-over distortion because there is a period
    of time in the sine wave where there is no signal when both transistors are in the
    off state.


  • Can be used for audio or SSB circuits as there is little distortion especially in
    class B.



------------------------








Class C is discussed in detail but very few math examples:



  • Set R3 for current level of the device


  • R2 serves as a wideband load for the input driver. Decreasing
    this resistance can improve stability at the price of gain.





  • The base only turns on when there is enough positive drive.




  • The duty cycle is less than 50%


  • Should only be used for CW or FM given the distortion in the sine wave.


  • Could be harmonic rich so output filter needs to be investigated.


  • T1 (which could also become a resistor) is being used to transform the output to match
    the next stage.




  • I will design T1 for a 200 ohm to 50 ohm match. This is just
    a shot in the dark initially but I need a starting point to test with. A T50-61 toroid
    with 7 turns on the primary and 3 turns on the secondary will provide a transformation
    of 220 ohms to 40 ohms.  At 10MHz a T50-61 toriod with 7 turns is z=220, L=3.5uH,
    C=72pF.





  • The input of this circuit is probably low impedance. For
    my initial testing I will probably build a 50 ohm to 12 ohm transformer and see if
    that helps. (I am using my signal generator for my initial testing which is 50 ohms.
    I will probably use 8 turns to 4 turns on a T50-43 or T50-61 core.)



  • EMRFD suggests using a Zener diode at the collector that
    is 3x the Vcc value but less than the transistor break down. The idea is to prevent
    the transistor from self destructing at extreme voltage peaks while otherwise being
    largely invisible to the circuit.





------------------------



Open Questions:




  • In class AB, B, and C how should we be be calculating the amount of current that we
    designing for?





  • How should we be sizing T1?


    T1 shown in the examples above is functioning as an RF choke, collector resistor,
    and output transformer. (Lots of value from that one part.)   The examples
    that I have seen don't include much math or reasoning. It would seem like there is
    some current limiting happening in T1 acting as a resistor that should be factored
    in.





  • How does the R2 (base current) and T1 (collector current) ratio interact?





  • How do we model/suggest/approximate the power gain in these designs?







I will try to come back and update this post with additional notes & corrections
as I learn more.







By:
Category:
Comments Off

Trying to figure out class C for a 2N3904

I am a bit confused.....  I am trying to test something that I saw in a book.

(That is generally how trouble begins)







I am trying to test getting a 2N3904 into class c operation. The challenge is that
I can't find an example of the math to calculate how to get to class C. (Most examples
are focused on class A operation.)  So I built the circuit on a bread board and
applied power and then some RF from my signal generator.




The image from the oscope shows the collector in the upper waveform and the base on
the lower wave form. The divisions are .5v and the probes are set to 10x.



Vcc is 12.5v

Base is about 10v

Collector is about 43v

This is with +20dBm source drive connected to the base.



That is funny... I am banging on that transistor pretty hard. I should look up
the max power for the part. I am probably approaching the fatal value.  
--The visual was good for the photo to show the class C waveform..   :-)







My results were.... ummm... poor!   It makes a really nice attenuator.






It appears that the transistor is NOT turning on until it gets +10dBm of drive. When
it does turn on it is not very efficient at +2dB of gain.  (I was getting 17dB
of gain with 25mA of current in class A a couple of nights ago.)



Positive:


When I added the transformer I did reduce the amount of loading on transistor. It
was nice to be able to see the before and after effects of that on the oscope.



Negative:


It is clear that I need to read some more on this topic as it did not play out the
way that the initial reading might suggest.



Frustration:


I am having a hard time find an example of math model that gives some feel for how
to bias into the various classes beyond class A. (Almost all of the examples are class
A.) When you start moving beyond it into AB & C they start to drop off the math
details and direct you into the push-pull model. (I will eventually get to push-pull..
but I want to understand how it works with one transistor before I try to match up
two of them.)



Next steps:


Try to dig deeper into the bias issue. (It is probably very simple once I understand
this in more detail.)



PS... I updated the post to include an oscope picture of the waveforms.







By:
Category:
Comments Off

Alan Yates - 30m QRSS beacon

Alan has a neat site with lots of details on how he built his 30m QRSS beacon.  http://www.vk2zay.net/article/181







I like Alan's thinking. You spend a lot of noodling thru math & variables as you
work thru these circuit designs. Alan has put many of his calculators online.  http://www.vk2zay.net/calculators/




So far I have been putting my calculators into a spreadsheet. It is easy and to be
real honest I don't always trust the calculators so I am little reluctant to publish
them until I have done some testing and have some faith in model. Granted they are
just a tool to point you in the general direction as the results in the real world
might vary a bit.



Back to the QRSS project for a minute. It is interesting looking at Alan's site. I
am also playing with 2N3904 and 2N7000 parts and pondering the use of varactor diodes
to swing the tuning. I planning to use a PIC for the keying but the the Atmel family
is another popular solution.



Fun reading.



73 de NG0R





By:
Category:
Comments Off

30m Oscillator (Night 9)

I am trying to squeeze in a few minutes of knack time after work and before dinner.




I started putting some of the components of my project into LTSpice.  Right now
I just have the oscillator, follower, and the lowpass filter in the circuit. I am
see unity gain at the moment but that is expected since there is no gain stage in
the circuit yet. I plan to extend the model a bit a see what it might look like with
some gain.



It will be interesting to see how this plays. I should model this out and then build
a new board and compare the results. (Maybe... depends on how the weekend plays out.)



I have some supplies on order so that I can start making printed circuit boards in
addition to Manhattan Pad construction and Island construction. The island construction
method is pretty quick but it is hard to drive much density compared to a pcb laid
out on the computer and run thru the laser printer & toner transfer process.



73 de NG0R





By:
Category:
Comments Off

30m Oscillator (Night 8)

For tonight the theme was trying to get more gain with less current. (This is a theme over the past several nights.)



So I started poking around in Experimental Methods in RF Design... it is pleasure
reading for knack victims. As I started browsing through Chapter 2 intending to read
up on push-pull amps I stumbled across some interesting notes. It was almost a eureka
moment except that I don't understand exactly how to calculate the target RF power
levels yet.




So far I have been largely focused on creating power based upon the DC biased values.
That is important but it does not maximize RF gain and is not as efficient as I might
like it to be. I was getting ~14.6 dBm of gain at a cost of 35mA which is not brilliant.
In the book I noticed a design almost the same as I what I have been working with
but getting almost 20dBm of gain at 20mA.




The difference in the two designs was simple:


1. Don't drive the DC design nearly as hard... I was throwing current at the problem
in brute force fashion.

2. Think about RF.... use some AC coupled feedback to create the gain.




The schematic above is my first attempt to bread board out the idea in the book against
my world and collection of available parts. It looks a LOT like the previous designs
except it is a lower current design with AC coupling between the collector/base and
at the emitter.



Now that I own a nice power meter I ran some tests and captured data.







I measured my signal generator with my power meter, then took down some base values,
and then reran the same test with the 2N3904 amp circuit. I did a little spreadsheet
magic to calculate the gain and then built a graph with the results.



Highlights:




  • I can generate about 16-17dBm of gain with about 25mA of power. (That is +3dBm and
    -10mA from the previous tests with no AC feedback and strictly DC bias.)


  • The gain is pretty consistent with -50 to -10dBm of drive source.


  • The gain falls off very quickly at 0dBm of drive.


  • As the gain falls off the amp begins to consume a lot of current to produce a small
    amount of gain.


  • The 2N2222 and 2N3904 appear to be good up to about 0dBm of input signal and then
    loose their effectiveness. They willl be driving up the harmonic content instead of
    the fundamental signal. (I visually saw & measured this on my spectrum analyzer
    over the past several nights of testing.)


In theory I could probably tweak the resistor values to drive another 2-3dBm of gain
& use a transformer at the RF output to reduce the loading and create a better
match.



In reality I have a good predriver circuit and need to look at some other options
for the next gain stage. (Things like class AB or class C, push-pull amps, or simply
some different parts as I start to transition out of small signal components and into
power.)



Tons of learning tonight. I feel pretty positive about the results. I need to dig
in and better understand the concept of feedback in an amplifier. (35 minutes at the
work bench.  2 hours at the PC working the data and documenting the results.)



73 de NG0R



PS... a quick follow up note after the initial post


I think that the output impedance of this is ~156 ohms.

Ie = Ve / Re  or .053 = 3.66/68  (ohms law)

Zout = (Vcc-Vb) / Ie


155.6 = (12.61-4.36)/.053    




156 ohms would make sense... you see a lot of these circuits using a 4:1 transformer.
That will transform 200 ohms to 50 ohms which is in the ball park.




PPS... another thought from yesterday's reading & bench time


Rf * Re = Rs * Rl  or  Rf * Re = Zin & Zout


Rf & Re are the AC coupled components.
(updated below... Re is the total of Re + RE)





In my schematic above I probably should switch the 1K and 3.3K resistors between the
collector and base. That would set  Zin to 50 and Zout of 200 approximately. 
Something to test. (This is designed for 200 ohms at the moment.)




PPPS.... more math


Rf is the parallel feedback resistor (the AC path)


Re
is the net of Re + RE  (Re is the DC bias + RE is the AC
degeneration)

Zin & Zout (Input and output impedance.)






By:
Category:
Comments Off

Push-pull amp

I have some push-pull questions so I am going to build a model something like this:






I want to play with a simple push-pull NPN amplifier running in class AB.  I
have big stash of PN2222 so I want to use it because it is on hand. (I know that it
is a crummy RF part... but this is an R&D activity for some personal growth...
I will move on to real parts once I have a bit more experience.)



PS... the I have posted some updates in red to my own
questions below.



 

Q1. What size inductor do I need for L1?

In this phase L1 is not critical to choke the RF from the
power supply.



If you use an inductor, pick a value that is going to be at least 150 XL ohms at the
lowest frequency and a self resonant frequency higher than the highest frequency you
intend to use.



 

Q2. I would guess that L1 could be replaced with a resistor since it is really controlling
the current at the collectors.   I need to understand why the example has
an inductor in there since it is not a tuned circuit.

150 ohm resistor would probably be fine.



If you use an inductor, pick a value that is going
to be at least 150 XL ohms at the lowest frequency and a self resonant frequency higher
than the highest frequency you intend to use.



 

Q3. How do I determine the output impedance? (It might be helpful to know if I want
to feed a 50 ohm filter.)

In theory it should look something like:







Hmmm... more reading before I can visit the work bench.





By:
Category:
Comments Off

30m Oscillator (Night 7)

My Boonton 4200 power meter showed up today.




I went back and remeasured the circuit on the meter. I originally thought that I was
getting 10-12 dB of gain. With the Boonton I am measuring about 14.6dB of gain from
the circuit with about 35mA of consumed power.



I tried several PN2222 components and the range was all over the board. Gain was pretty
close but the power consumed was pretty wild by a factor of 3x. (I threw the the ultra
wild part away.) I also substituted a 2N3904 into the circuit. It had almost exactly
the same gain and power consumption model.



It seems like I should be able to get this much gain with 1/3 of the power consumption.
I am not sure how to do that as balancing the base against the emitter and collector
for peak gain and minimal consumption is pretty challenging. I suspect that I can
tweak the resistors a bit more but this would be easier with a dual channel power
supply with digital feedback to rough out the voltage and current values while watching
on the oscope & power meter.




---Hmmm I am still kicking myself for not buying that bench power supply that I was
eyeing during the hamfest last Saturday. I might have to resolve that via eBay or
the up coming  Midwinter Madness hamfest in Buffalo.





By:
Category:
Comments Off

NPNs for making power

I looked up what the Elecraft folks are using in their K2 to create RF at some real levels. (I love my K2.)

 

PreDriver: 2N5109 ($1.87 at Mouser)

 

Driver: 2SC2166 ($3.95/12.70 at RF Parts)

-- The 2SC2166 is rated for 3-4 watts of power at HF freqs

 

Finals: 2SC1969 ($9.95 at RF Parts)

-- Running a push-pull pair

-- The 2SC1969 is rated for 10-14 watts in class AB.

-- I can confirm that a 2SSC1969 is good for 7-10 watts running by it's self.

 

My K2 will generate 10-14 watts of power with 2-3 amps of power. At rest it draws
about 300mA.

 

Interesting stuff as I work thru how to make some RF power.  I will have
to search on eBay for some of these parts as the high end parts are probably a buck
a piece or so compared to the normal sources.





By:
Category:
Comments Off

30m Oscillator (Night 6)

Last night I was messing with the modeling tools and getting weird answers that did not make sense. Ultimately it was time to go to the bench and put some parts on the breadboard.




Initially I stated out with with the values listed in night 5 schematic. I was not
happy with the power levels. I chatted with N0FP a bit and we came up with some different
values to push up the gain. That presented a new issue... my circuit got hungry. At
one point it was consuming 131mA to get 18dB of gain.  N0FP suggested that maybe
I should put my circuit on a diet.



After pondering this a bit I changed the values to those listed on the schematic/picture
above. Now I am getting 10dB of gain and consuming 35mA of power. This is better but
still seems kind of hungry for the power levels that I am creating in class A.



I would like to see 10dB of gain at 6mA. I will need to ponder this some more. It
might also be time to grab a 2N3904 and compare the results against the PN2222.



Lots of learning going on... slowly moving the ball forward.