Serving the worldwide community of radio-electronic homebrewers. Providing blog support to the SolderSmoke podcast: http://soldersmoke.com
Podcasting since 2005! Listen to Latest SolderSmoke
Saturday, March 4, 2023
Fourier Analysis Explained (video) -- Understanding Mixers
Thursday, April 14, 2016
My Kind of Math! The Wooden Fourier Transform Machine
Mixer math with plywood and gears.
http://www.instructables.com/id/Plywood-Math-Machine/
http://hackaday.com/2016/04/11/fourier-machine-mimics-michelson-original-in-plywood/#more-199177
http://hackaday.com/2014/11/18/harmonic-analyzer-mechanical-fourier-computer/
Sunday, April 14, 2019
Understanding Fourier Transforms
Lots of wisdom and insight here:
http://www.jezzamon.com/fourier/index.htm
Strongly recommended for those trying to understand mixers and harmonics.
Friday, December 2, 2022
But why? Why Can't I Listen to DSB (or AM) on my Direct Conversion Receiver?
I've said this before: I just seems so unfair. We just should be able to listen to DSB signals with our beautifully simple homebrew Direct Conversion receivers. I mean, building a DSB transmitter is a natural follow-on to DC receiver construction. And we are using AM shortwave broadcast stations (Radio Marti --I'm looking at you) to test our DC receivers for AM breakthrough. But when we tune these stations in, they sound, well, awful. So unfair! Why? Unfortunately it has to do with laws. Laws of physics and mathematics. Blame Fourier, not me.
Over the years there has been a lot of handwaving about this problem. From Doug DeMaw, for example:
In his "W1FB's Design Notebook," Doug wrote (p 171): "It is important to be aware that two DSSC (DSB) transmitters and two DC receivers in a single communication channel are unsatisfactory. Either one is suitable, however, when used with a station that is equipped for SSB transmissions or reception. The lack of compatibility between two DSSC (DSB) transmitters and two DC receivers results from the transmitter producing both USB and LSB energy while the DC receiver responds to or copies both sidebands at the same time."
That's correct, but for me, that explanation didn't really explain the situation. I mean we listen to AM signals all the time. They produce two sidebands, and our receivers respond to both sidebands, and the results are entirely satisfactory, right? Why can't we do this with our Direct Conversion receivers? I struggled with this question before: https://soldersmoke.blogspot.com/2015/07/peter-parker-reviews-dsb-kit-and.html You can see in that post that I was not quite sure I had the answer completely correct.
It took some discussion with a fellow Vienna Wireless Society member, and some Googling and Noodling for me to figure it out. But I think I've got it:
Imagine a station transmitting a DSB signal at 7100 kHz with a 1 kHz tone at the AF input. There will be signals at 7101 kHz and at 7099 kHz. Assume the carrier is completely suppressed.
We come along with our DC RX and try to tune in the signal.
Remember that they heart of the DC RX is a product detector, a mixer with the VFO (or PTO) running as close as we can get it to the suppressed carrier frequency (which we can't hear).
Lets assume that we can somehow get our VFO or PTO exactly on 7100 kHz. The incoming signals will mix with the VFO/PTO signal. We are looking for audio, so we will focus on the difference results and ignore the sum results of the mixing.
The difference between 7101 and 7000 is 1 kHz. Great! And the difference between 7099 and 7000 is 1 kHz also. Great again, right? We are getting the desired 1 kHz signal out of our product detector, right? So what's the problem?
Here it is: SIDEBAND INVERSION. Factoring in this part of the problem helps us see the cause of the distortion that plagues DSB-DC communication more clearly.
Remember the Hallas Rule: Whenever you subtract the modulated signal FROM the unmodulated signal, the sidebands invert. So, in this case, we are subtracting that 7099 "lower sideband" signal FROM the 7100 VFO/PTO signal. So it will invert. It will become an upper sideband signal at 1 kHz. We will have two identical 1 kHz signals at the output. Perfect right? Not so fast. Not so PERFECT really.
The perfect outcome described above assumes that our VFO/PTO signal is EXACTLY on 7100 kHz. And exactly in phase with the suppressed carrier of the transmitter. But if it is even SLIGHTLY off, you will end up with two different output frequencies, signals that will move in and out of alignment, causing a wobbling kind of rapid fade-in, fade-out distortion. You can HEAR this happening in this video by Peter Parker VK3YE, starting at 6:28:
And you can see it in this LTSpice simulation.
On paper, using simple mixer arithmetic, you can tell that it will be there. With the VFO/PTO just 1 Hz (that's ONE cycle per second) off, you will end up with outputs at 1.001 kHz and at .999 kHz. Yuck. That won't sound good. These two different frequencies will be moving in and out of alignment -- you will hear them kind of thumping against each other. And that is with a mere deviation of 1 Hz in the VFO/PTO frequency! We are scornful when the SDR guys claim to be able to detect us being "40 Hz off." And before you start wondering if it would be possible to get EXACTLY on frequency and in phase, take a look at the frequency readout on my PTO.
Now consider what would happen if the incoming signal were SSB, lets say just a tone at 7101 kHz. We'd put our VFO at around 7100 kHz and we'd hear the signal just fine. If we were off a bit we'd hear it a bit higher or lower in tone but there would be no second audio frequency coming in to cause distortion. You can hear this in the VK3YE video: When Peter switches to SINGLE Sideband receiver, the DSB signals sound fine. Because he is receiving only one of the sidebands.
The same thing happens when we try to tune in an AM station using a Direct Conversion receiver: Radio Marti sounds awful on my DC RX, but SSB stations sound great.
My Drake 2-B allows another opportunity to explore the problem. I can set the bandwidth at 3.6 kHz on the 2-B, and set the passband so that I will be getting BOTH the upper and the lower sidebands of an AM signal. With the Product Detector and the BFO on, even with the carrier at zero beat AM sounds terrible. It sounds distorted. But -- with the Product Detector and BFO still on -- if I set the 2-B's passband to only allow ONE of the sidebands through, I can zero beat the carrier by ear, and the audio sounds fine.
There are solutions to this problem: If you REALLY want to listen to DSB with a DC receiver, build yourself a synchronous detector that gets the your receivers VFO EXACTLY on frequency and in phase with the transmitter's oscillator. But the synchronizing circuitry will be far more complex than the rest of the DC receiver.
For AM, you could just use a different kind of detector. That will be the subject of an upcoming blog post.
Please let me know if you think I've gotten any of this wrong. I'm not an expert -- I'm just a ham trying to understand the circuitry.
Friday, January 23, 2009
Degenerative Feedback and Distortion Reduction
Continuing on negative feedback, on SolderSmoke I recently asked for help in understanding why negative feedback is said to "reduce distortion." Let me know if you think I'm on the right track. Thanks to all who sent e-mails.Following Fourier’s advice, let’s think of distortion as an additional waveform riding along with our desired signal. In the diagram we have a 5X voltage amplifier with 20 mV at the input, let’s say that it produces a complex distorted waveform that consists of our desired 100 mV sine wave, along with an ugly 10 mV distortion signal.
The feedback network takes 10 percent of both signals and feeds them back to the input (with a 180 phase shift). At the input, for the desired signal, the 10 mV of feedback meets up with 30 mV of input signal (as in TM 11-455, I’ll keep outputs the same, but increase inputs); we end up with 20mV at the input to the amplifier device. This then goes through the 5X amp and we get our 100 mV output.
But look what happens to the ugly distortion signal: It arises IN the device. When the feedback portion of this distortion gets to the input, it does NOT meet up with an input signal. It just goes back through the amp. So the feedback network takes 10% of the 10 mV distortion, introduces a 180 phase shift and sends this 1 mV waveform through the 5X amp. At the output of the amp we can think of the original 10 mV of distortion combining with what is now a 5mV out of phase signal. In this case, half of the distortion signal is canceled. We can say that compared with the no-feedback amplifier, distortion has been reduced from 10% to 5%. We can say that this circuit discriminates against distortion signals that arise inside the device. The desired signal meets up with the input signal, cancels a portion of it, but then the remaining signal goes through the amp producing the desired amplified signal. But the distortion signal has nothing to meet at the input. It just goes through the amp and then cancels a portion of distortion signal at the output. More desired signal, less distortion.
Sunday, October 12, 2025
Understanding Mixers -- A Free Book Excerpt -- Enlightenment from SPRAT
We've recently been talking about mixers, and it has become apparent to me that there is a big gap about what we mean by "understanding" mixers. Is it enough to embrace at the trig formulas? Or is it possible to understand these key devices at an intuitive level? You know, as a boy, when James Clerk Maxwell was trying to understand a device, he used to ask, "What's the go of it?" If he was dissatisfied with the answer he would ask, "But what's the particular go of it?"
I struggled for a long time to understand mixers (the struggle continues!). Here is an excerpt on my efforts to understand mixers from my 2009 book "SolderSmoke -- Global Adventures in Wireless Electronics."
UNDERSTANDING: THE MIXER
That dual gate 40673 was relatively easy to understand, but over the years I frequently became aware of the fact that I didn’t really understand what was happening in that mixer circuit. At times I thought that I understood it, but then I’d dig a bit deeper and find that my understanding was incorrect, or at least incomplete. Mixers are absolutely key stages in almost all amateur transmitters and receivers, so I knew that as a radical fundamentalist I’d eventually have to really understand how these circuits work.
There
are many paths to confusion in this area.
You can be misled by graphical explanations and by “hand waving” verbal
descriptions. And I think that purely
mathematical explanations fail to provide the kind of intuitive understanding
we are looking for. Let me describe some
of the pitfalls.
When
they get to mixers, some books show three nice graphs of sine waves. They are stacked one over the other. The top two are input signals, each of a
different frequency. The third graph is
the arithmetic sum of the top two.
Moment by moment the signal strengths presented by the top two are added
together, and the result is shown on the bottom.
Soon it becomes clear that the shape of the envelope of the resulting graph is varying at a different frequency. A third frequency. What is happening is that because the two input signals are of different frequencies, they are periodically going in and out of phase: one moment both signals are at a positive peak, and they reinforce each other. Later, one is at a positive and the other is at a negative peak; here they cancel each other. It is so simple and easy to see! You can even count the number of cycles that this new signal is going through. And—amazingly—the
frequency of this new signal is the arithmetic difference of the first two. Voila! This is il terzo suono of Giuseppe Tartini! Suddenly it seems that you understand mixers and superhets. You might think that you now understand how Major Armstrong hoped to convert the electrical engine noise from the German bombers down to a frequency at which he could amplify them.
But you’d be wrong.
Sorry about that. It’s just not
that simple.
It
took me a long time to realize that this explanation of mixer action was a
kind of children’s fable for mixer theory, a
misleading fairy tale with sufficient connection to the related field of
acoustics to take on an aura of legitimacy.
The
first indication that something was amiss came when I looked for the sum
frequency. I knew that mixers produce
new frequencies at BOTH the difference of the inputs AND at the sum of the
inputs. The neat little three-graph
presentation seemed to explain the difference frequencies, but what about the
sum output? How do we explain that
output using these charts? It took me a
while to realize that you can’t. Because
this is not really the explanation of how mixers work.
In
the course of writing this book (in 2007), when I got this point I was reminded
that my struggle to understand mixers has been a long battle. I was reminded of this when I turned to
Google in search for insights. Along
with the many learned and highly technical articles that popped up in the
search results, I found my own pleas for help going back some ten years. Here is a typical exchange on this subject
posted to sci.electonics.basic USENET group in 1997:
September 5,
1997 Bill Meara (wme...@erols.com) wrote:
> Here's a nagging little question that has been bothering me for some
> time:
> I have several Physics and Radio
books that give very clear
> explanations of how "beat" frequencies are generated in mixer
> circuits. These books have nice
little charts showing how the two
> waves combine to produce a third frequency that is the difference
> between the two. Great! Very
illuminating.
> But these same books are oddly silent
on how the "sum" frequency is
> developed. Can this frequency be
explained in a similarly graphic
> manner? Any hints?
An excellent
question.
It relies on nonlinear circuit elements
and high school trigonometry
(trig) identities. Ideal mixers have square-law or Vout = Vin^2
characteristics. This means that if you have two signal of different
frequencies, vin = s1 + s2 where s1 = cos (2*pi*f1*t) and s2 = cos
(2*pi*f2*t), you have vin equal to the sum of two cos, which by trig
identity gives vout equal to terms of cos(f1+f1)/2 and cos(f1-f2)/2.
The
response in this exchange is typical of what you get when you ask these kinds
of “how do mixers really work” questions.
Most experts will immediately come back at you with two things:
non-linear elements (like a diode) and trigonometry.
The equations seem to be saying that the sum and difference frequencies
that we see coming out of mixer circuits are
caused by the multiplication of the two input signals.
What? How does that work? At this point many of the books seemed to
chicken out on providing non-mathematical explanations. But for me, the math seemed to cry out for
some explanation. The equation seemed to
be saying that some very simple devices—one diode, for example—are somehow able to take two input
signals, multiply them together, and spit out new frequencies that are the
arithmetic sum and differences of the two inputs. I found myself thinking, “Diodes are good,
but are they that good? Who taught them the multiplication
tables?” And if we are seeking sum and
difference frequencies, why do we eschew addition and subtraction? Why do we use multiplication?
The
simple explanation using the three charts and Giuseppe Tartini’s Terzo Suono
explanation kept putting me on the wrong path.
I kept coming across examples, mostly from acoustics, that showed two
frequencies coming together this way to produce a third frequency. There was, of course, a common experiment in
the high school physics lab in which two tuning forks of slightly different
frequency are brought together. You can
hear the “beat,” the difference frequency that results. Where is the “non-linear” element in this
case? Displaying what I thought was a
somewhat unquestioning acceptance of what they’d learned in engineering school,
some folks told me that for this kind of beating to take place there had to be a non-linear element. Some suggested that the mixing took place in
a non-linear portion of the human ear.
Others hinted that the air itself might have non-linear qualities.
This
didn’t sound right to me. So I built a
little circuit that would electrically combine two audio signals. And I would watch the results on my
oscilloscope. There’d be no air (or
ears) involved. Sure enough, on the
scope I could see the beats as the two frequencies came closer together. There were no non-linear diodes doing
multiplication. I thought I was getting
closer to understanding.
But I wasn’t.
The
problem with this kind of mixing or combining is that the resulting beat is not
“extractable.” When I first started
seeing that word—extractable—in incoming e-mail messages, I didn’t really
understand what it meant. Tom Holden, VE3MEO, made it clear: “The beat note that you hear between the two
tuning forks is not a new signal—it’s just the period between the constructive
and destructive interference due to the superposition or addition of the two
signals… You can’t separate the beat frequency signals from the source signals
because subtracting one of the source signals from the waveform leaves you with
merely the other. You can’t hear the beat without hearing both forks singing.”
Real
mixing is obviously different from this kind of terzo suono beating. In a
real mixer you want to be
able to separate the new frequency from the old ones. You want to be able to extract it so that you
can better filter it and amplify it. And
you want to leave the input signals behind.
OK, back to the drawing boards.
Back
in 1999, I think I kind of came close to a limited understanding of the
phenomenon. Here is another USENET
exchange:
To: ianpur...@integritynet.com.au
Ian: I
really like your pages.
I have a question about the theory behind
the mixer stage: As was done
on your page, explanations of this stage are usually limited to stating
that the active device is operated in the non-linear portion of the
curve and this results in its operation as a mixer. Given that this
is
the heart of superheterodyne operation, I've always wished that the
explanations would go a bit deeper.
We recently had a very lengthy and
interesting discussion on this in the
sci.electronics.basics newsgroup. I came to some conclusions about
mixer operation that (I hope) may provide the kind
of explanation that I
think is needed for beginners and non-engineers to understand mixers:
--When we say that the active device is
operated in the non-linear
portion of its operating curve, we are really saying that we are biasing
it so that each of the two input signals will—in effect—vary the
amount of amplification that the other receives from the device.
-- When this happens, the output of the
device is a waveform that
contains sum and difference frequencies. If we ask WHY this happens, we
have to be satisfied with an answer that points to mathematics: If you
combine two signals in the manner described above, mathematical
principles dictate that the resulting waveform contains sum and
difference frequencies.
Please let me know what you think of this
explanation—does it make
sense, is it consistent with accepted theory?
Again, thanks for
the great web site. I will be visiting often.
73 Bill
N2CQR
Bill Meara
<wme...@erols.com> wrote: receives from the device.
Excellent.
This is a very good definition of non-linearity. Sometimes
"amplification" isn't involved, as when we use a diode mixer, but in that
case each signal varies the amount of _attenuation_ that the other
receives from the device. I like it, and
I think that the explanation is about as useful as any.
For a mathematical
analysis, you might want to consider that a
non-linear mixer actually _multiplies_ the two signals, rather
than adding
them. I think I've got this right, anyway...
M Kinsler
So, back in 1999 I seem to have sort of accepted that if you take two signals of different frequency and feed them into a non-linear device, the math tells us that in the output you will get sum and difference frequencies. I also seem to have been coming close to understanding the need for non-linearity: in order for the signals to really “mix” one signal has to affect how the other signal passes through the device. My thinking was that if you have one signal in effect varying the bias on a transistor as that signal goes through its cycle, another signal going through that device will see the device as being extremely non-linear. It will get mixed with the first signal. (In retrospect, my understanding of the role of non-linearity was still quite flaky.)
Still,
I was not satisfied with my understanding of the mixers. I thought it was a bit of a cop-out to just
say, “Well, the math tells us that if you multiply two sine waves, the output
will contain sum and difference products.”
Math-oriented scientists and engineers often pour scorn on what they
call “arm waving” non-mathematical descriptions. But I think there is some room for scorn in the
opposite direction: I don’t think that memorizing a trig formula means that you
really understand how a mixer works. In “Empire of the Air,” Tom Lewis writes: “At
I
guess I still yearned for the clarity and intuitive understanding that had been
(falsely) promised by those three nice beat frequency charts. Time and time again, as I dug into old
textbooks and ARRL Handbooks and
promising web sites served up by Google, I was disappointed.
Then I found it.
It
was in the Summer 1999 issue of SPRAT, the quarterly journal of the G-QRP Club. Leon
Williams, VK2DOB, of
Switching
mixers apply the same principles used in other kinds of mixers. As the name
implies, they switch the mixing device on and off. This is non-linearity in the extreme.
Not
all mixers operate this way. In
non-switching mixers the device is not switched on and off, instead one of the
signals varies the amount of gain or attenuation that the other signal will
face. And (as we will see) it does this in a non-linear way. But the basic principles are the same in both
switching and non-switching mixers, and as Leon points out, the switching
circuits provide an opportunity for an intuitive understanding of how mixers
work.
Let’s
take a look at
RF A
is the signal going to pin 4, RF B is the “flip side” of the same signal going
to pin 1. VFO A is a square wave
Variable Frequency Oscillator signal at Pin 5. It is going from zero to some
positive voltage. VFO B is the flip
side. It too goes from zero to some
positive voltage.
Look
at the schematic. Imagine pins 5 and 13
descending to bridge the gaps whenever they are given a positive voltage. That square wave signal from the VFO is going
to chop up that signal coming in from the antenna. It is the result of this chopping that gives
us the sum and difference frequencies.
Take a ruler, place it vertically across the waveforms, and follow the
progress of the VFO and RF signals as they mix in the gates. You will see that whenever pin 5 is positive,
the RF signal that is on pin 4 at that moment will be passed to the
output. The same process takes place on
the lower gate. The results show up on
the bottom “AUDIO OUTPUT” curve.
Now,
count up the number of cycles in the RF, and the number of cycles in the
VFO. Take a look at the output. You will
find that that long lazy curve traces the overall rise and fall of the output
signal. You will notice that its
frequency equals RF frequency minus VFO frequency. Count up the number of peaks in the choppy
wave form contained within that lazy curve.
You will find that that equals RF frequency plus VFO frequency.
Thanks
Back
to the math for a second. Why do they say that those diodes
multiply? And what do trigonometric
sines have to do with all this?
First
the sines. Most of the signals we are
dealing with are the result of some sort of circular or oscillating
motion—coils that are being spun around magnets, resonant circuits that behave
like a playground swing. For this
reason, the trigonometry of circles can be used to determine the amplitude of a
signal at any given instant. Take the
peak value of a sine wave signal, and multiply it by sin[2Ï€(freq)(time)] and
you will get the instantaneous value of that signal.
When
we say that mixers multiply, it is important to realize that we are NOT saying
they multiply frequencies. We are saying
they multiply the instantaneous amplitudes of the input signals. And it is that multiplication that results in
the generation of the sum and difference frequencies.
Why
multiplication? Again, by looking at
switching mixers, it is easier to understand.
Consider one of the gates in
Note
that this is very different from the simple summation in the “children’s fable”
presented at the beginning. If addition
were at work here, we’d expect the outputs to look like 1.2+1=2.2 or 1.2+0=1.2 But that is clearly NOT what we’d get with a
switching mixer. Clearly
multiplication is the operation that best models this circuit.
Now
this doesn’t mean that in every mixer circuit one
input with an instantaneous input of 2 volts and another with an instantaneous
input of 3 volts will result in an instantaneous output of 6 volts. After all,
some mixers are made up of transistors that are capable of amplification, but
others use simple diodes, and these diodes can’t amplify. Different mixing circuits use different kinds
of devices, different input levels, and different biasing voltages. So the outputs will vary quite a bit. But the shape of the output waveform will
resemble the waveform that results when you multiply the instantaneous values
of two input waveforms. We can say that
in addition to the multiplication that is the heart of the process, there are
also mathematical constants and offsets that result from the particular
characteristics of individual circuits.
You
can use a simple spreadsheet program to get a feel for this. Set up two columns each with the formula
Peak*sin(2Ï€ft). Assign different values
of frequency to each column. Set up
another column for time—make it 1-100 and think of each division as a block of
time. Graph the results. Then run a third column that multiplies the
first two. And put this third column on
the same graph. You’ll see the mixer action.
Jean Baptiste Joseph Fourier (1768-1830) discovered that any complex periodic waveform can be shown to be the result of the combination of a set of sine waves of different frequencies. Here’s a great illustration of this principle. It is from ON7YD’s web site. The darkest line is the
complex signal that results from the sine
waves that are shown around it. A
picture is worth a thousand words.
The
key idea here is that if you see a complex periodic (repeating) waveform, you
should realize that “beneath” that waveform, there are a number of nice clean
sine waves. And here is where
non-linearity as an essential element in mixing comes in.
Let’s
consider two devices, both with dual inputs.
One is set up to be very linear.
The other is set up to be non-linear.
Let’s put two signals of different frequencies into each input. The first input is 1 volt peak at 1 MHz, the
second input is .1 volt peak at 10 MHz.
In
the linear circuit, we can think of the stronger 1 volt signal as moving the
operating point of the device up and down, up and down along the very straight
line that describes the relationship between input and output in this circuit. As it does so, the weaker 10 MHz signal just
sort of rides along.
If
we look at the output we can clearly see the two signals, one riding along with
the other. The output waveform is not
complicated, and it seems clear that there are only two signals that you could
get out of that via filtering: the two input signals. This is just like the acoustic situation that
caused me so much confusion. The key
thing to remember here is that the two signals are not really mixing.
Now
let’s look at the non-linear circuit.
Now the operating curve really is curved. The weaker 10 MHz signal will
once again, in a sense, be riding along on the stronger 1 MHz signal, but that
1 MHz signal is no longer moving up and down on that nice straight line. Now it is on that curve. Now the two signals really “mix”, mixing
almost to the same extent that liquids of two different colors mix in a
blender. You can see how the curved
operating characteristic—the non-linearity— causes the two signals to mix.
Out
of the non-linear circuit a very complex periodic waveform emerges. It is a complicated mess, but Fourier tells us that
any complex periodic waveform can be seen as being composed of sine waves of
many different frequencies. If we were
to dissect this output waveform of this device, we’d find the two original
signals, harmonics of these signals, and, most importantly, new signals at the
sum and difference frequencies of the input frequencies. And this complex signal CAN be dissected. To do this, we make use of “balanced” devices
to cancel out the input signals, and filters to shave away the harmonics and perhaps
either the sum or the difference output.
We can set things up so that only one frequency emerges from the
mix. That is extremely useful.
I think (hope!) I’ve made progress in my effort to understand mixing; I think I’ve moved far beyond both hand waving acoustics-based fairy tales, and the almost equally unsatisfactory approach that equates understanding with the ability to regurgitate trig formulas. I now understand the difference between mixing and adding. I know why multiplication (and not addition) is the math operation that describes what happens in a mixer. Most importantly I think, I now know why you need a non-linear device to have true mixing. Fourier provides the answer: That bend in the operating curve of a non-linear device causes the output to be the kind of complex periodic waveform that contains many different sine waves. And among those waves are sum and difference frequencies.
Now
I must admit that how it is that
among those sine waves there are the exact sum and difference frequencies of
the inputs, well, for me that remains a bit of a mystery. But it kind of makes sense…
Saturday, March 11, 2017
WA8WDQ Builds OZ1JHM's Arduino CW Decoder (Video)
Bill, Pete:
I wanted to update you on my DC receiver progress. While I'm still operationally proficient in CW, many of my friends are not. So I thought it would be fun to add a CW decoder to my DC receiver.
Thursday, September 17, 2015
Visualizing Harmonics and Square Waves
Very illuminating. Very cool. We want more! Show us how a mixer works!
From:
http://hackaday.com/2015/09/17/visualizing-the-fourier-transform/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+hackaday%2FLgoM+%28Hack+a+Day%29&utm_content=Netvibes
Our book: "SolderSmoke -- Global Adventures in Wireless Electronics" http://soldersmoke.com/book.htm Our coffee mugs, T-Shirts, bumper stickers: http://www.cafepress.com/SolderSmoke Our Book Store: http://astore.amazon.com/contracross-20
Sunday, January 28, 2018
Building the Ceramic Discrete Direct Conversion Receiver #4 -- The Mixer
I think the most important stage of a direct conversion receiver is the mixer. This is the stage that takes the RF energy coming in from the antenna and -- in one fell swoop -- turns it into audio.
It is important to understand how this happens. I go into this in some detail in the SolderSmoke book. To summarize:
1) You have two signals going into a non-linear device. The way in which the smaller signal passes through the device -- how much it is amplified or attenuated -- depends on the instantaneous value of the larger signal. We are not just adding the two signals together.
2) The waveform that comes out will be a complicated repeating waveform. We know from Fourier that any complicated repeating waveform can be broken down into sine wave components.
3) When you analyze the complicated repeating waveforms coming out of the mixer, you will find that the sine wave components include a frequency that is the sum of the two inputs and another that is the difference between the two.
So lets suppose we have a non-linear device. We send in a signal from our oscillator at 7061 kHz. Coming in from the antenna we have a signal at 7060 kHz. The non-linear device will produce outputs at 14121 kHz (sum) and at 1 kHz (difference). We are interested in the difference frequency. We can HEAR that one. We feed it into our audio amplifiers and we can copy the Morse Code coming in. It will sound like a 1 kHz tone going on and off as the operator at the distant station presses his code key. (We don't really have to worry about the 14121 kHz signal -- it is easily eliminated by filters and would never make it through our audio amplifiers. And in any case we could not hear it.)
What can we use as a non-linear device? In this receiver we will use diodes. Diodes are extremely non-linear devices. They can be used as on-off switches, with one of the signals determining if they are on (conducting) or off (not conducting). When used like this they are "switching mixers." In essence, a larger, controlling signal from the VFO will be turning the diodes on and off. Thus the signal coming in from the antenna will be chopped up by the switching action of the diode being turned on and off. This is non-linear mixing at its most extreme. It will definitely produce the sum and difference products we are looking for.
We could build the mixer with just one diode. You could apply the VFO signal to the diode to turn it on and off, and then feed the signal from the antenna into the same diode. You would get the sum and the difference product out the other end. You will see very simple direct conversion receivers intended for use in software defined radio schemes using just one diode. But this kind of circuit has a couple of serious shortcomingsq: it is susceptible to "AM breakthrough" and it is "lossy."
The circuit we are using addresses these problems by using two diodes. To reduce loss, one conducts during half of the oscillator signal's cycle, the other during the other half. Here LTSpice is ueful. You can model this mixer and see in the simulator how each of the diodes handles half of the oscillator RF cycle, with both contributing to the AF signal we want at the output (the difference frequency). (The schematic above is from LTSpice but it is not ready for simulation. For this you should replace the variable resistor with two fixed 500 ohm resistors, and add two oscillators -- one with the weak incoming RF signal and the other the strong local oscillator signal.)
The AM breakthrough problem is also addressed by the use of two diodes. Here's the problem: If you are on 40 meters, there will be strong shortwave AM broadcast signals coming in from your antenna. Some will be so strong that they will get past your front-end filtering. If you were using just one diode, that diode might demodulate the AM signal -- the AM carrier would mix with the AM sidebands and you would have an undesired audio signal heading for your AF amplifiers. Many of us have experienced this -- you are trying to listen to ham radio SSB signals, but you can hear China Radio International playing in the background.
The two diodes take care of this easily. Look at the way an AM signal would reach the diodes. The carrier (and its sidebands) going through the top diode will be 180 degrees our of phase with the signal going into the lower diode. But the output of the diodes are joined together. They will cancel out. We say that for the RF signal coming through from the antenna, the circuit is "balanced." That signal -- in this case the undesired AM signal -- will cancel out at the junction of the two diodes.
But to understand this circuit you must see what is NOT cancelled out. The signal from the VFO is hitting each diode with the SAME polarity at the same time. Look at the 1k variable resistor. So the signal from the VFO will NOT be cancelled out at the output. Nor will the mixing products produced in the diodes. That last sentence is the key to all of this. The sum and difference products that result from the mixing of the signal from the antenna and the signal from the VFO SURVIVE. They are not cancelled out.
We can easily select the one we want. An RF bypass capacitor connected from the output of the mixer to ground will get rid of most of the VFO signal (7061 kHz) and most of the sum product (14121 kHz) while passing the audio to the AF amplifiers.
When I built this detector I used a trifilar toroid out of a box of them that Farhan left with me back in May. I used two of the windings secondary and one of the windings for the primary. You might want to make a more simple transformer using an FT-43 type core. I recommend W8DIZ as a source.
I hope this explanation helps, and I hope I got it right. Let me know if you see any errors in my explanation. Tinker with the circuit when you build it. You should be able to get it going.
| Complete Schematic |



