Sei sulla pagina 1di 20

10/23/2019 How to build an Analog Mixer - Additive Mixer and Multiplicative Mixer

High Frequency Ampli ers


150 kHz to 400 MHz
25, 75, 180W with an excellent robust design

power4test.com OPEN

ANALOG (HTTPS://CIRCUITDIGEST.COM/ANALOG-ELECTRONICS)

How to build an Analog Mixer - Additive Mixer and Multiplicative Mixer


(/electronic-circuits/analog-audio-mixer-additive-and-multiplicative-
mixer)
By (page_author.html)Vivekanand (/users/vivekanand-0)  Oct 21, 2019 0

 

https://circuitdigest.com/electronic-circuits/analog-audio-mixer-additive-and-multiplicative-mixer 1/33
10/23/2019 How to build an Analog Mixer - Additive Mixer and Multiplicative Mixer

Analog Mixer- Additive Mixer and Multiplicative Mixer Setup

A mixer is a special type of electronic circuit that combines two signals (periodically repeating waveforms). Mixers nd a lot of use in audio
(https://circuitdigest.com/audio-electronics) and RF systems and rarely used as simple analog ‘computers’. There are two types of Analog Audio Mixers -
Additive Mixers and Multiplicative Mixers.

 

https://circuitdigest.com/electronic-circuits/analog-audio-mixer-additive-and-multiplicative-mixer 2/33
10/23/2019 How to build an Analog Mixer - Additive Mixer and Multiplicative Mixer

1. Additive Mixers

Like their name


 
suggests, additive mixers simply add together the values of two signals at any instant, which results in a continuous waveform at the output
that is the sum of the values of the individual waveforms.
https://circuitdigest.com/electronic-circuits/analog-audio-mixer-additive-and-multiplicative-mixer 3/33
10/23/2019 How to build an Analog Mixer - Additive Mixer and Multiplicative Mixer

The simplest additive mixer is simply two signal sources connected to two resistors in the following fashion:

Additive Mixers

The resistors prevent the signal sources from interfering with each other, the addition happens at the common node, not at the signal sources themselves.
The beauty of this method is that a weighted sum is possible, depending on the individual resistor values.

Mathematically speaking,

z = Ax + By

Where ‘z’ is the output signal, ‘x’ and ‘y’ are the input signal and ‘A’ and ‘B’ are the ratiometric scaling factors i.e. the resistor values relative to each other.

For example if one of the resistor values is 10K and the other is 5K, A and B become 2 and 1 respectively, since 10K is twice 5K.

Of course, more than two signals can be combined together using this audio mixer.

Constructing
 a Simple Additive Mixer 

https://circuitdigest.com/electronic-circuits/analog-audio-mixer-additive-and-multiplicative-mixer 4/33
10/23/2019 How to build an Analog Mixer - Additive Mixer and Multiplicative Mixer

Parts required:

1. 2x 10K resistors

2. 1x 3.3K resistor

3. A two channel signals source

Circuit Diagram: 

Simple Additive Mixer

With the two 10K resistors, the output is simply the sum of the input signals. A and B are both unity, since the two scaling resistors are the same.

 

https://circuitdigest.com/electronic-circuits/analog-audio-mixer-additive-and-multiplicative-mixer 5/33
10/23/2019 How to build an Analog Mixer - Additive Mixer and Multiplicative Mixer

Output of Additive Mixer

The yellow and blue waveforms are the inputs, and the pink waveform is the output.

When we replace one of the 10K resistors with a 3.3K resistor, the scaling factors become 3 and 1 and one third of one signal gets added to the second.

 

https://circuitdigest.com/electronic-circuits/analog-audio-mixer-additive-and-multiplicative-mixer 6/33
10/23/2019 How to build an Analog Mixer - Additive Mixer and Multiplicative Mixer

High Frequency Ampli ers


150 kHz to 400 MHz
25, 75, 180W with an excellent robust design

power4test.com OPEN

The mathematical equation is:

z = x + 3y

Below gure shows the resulting output waveform in pink, and the inputs in yellow and blue.

 

https://circuitdigest.com/electronic-circuits/analog-audio-mixer-additive-and-multiplicative-mixer 7/33
10/23/2019 How to build an Analog Mixer - Additive Mixer and Multiplicative Mixer

Output of Additive Mixer

Application of Additive Mixers 

The most striking hobbyist use of simple mixers like this comes in the form of a headphone equalizer or a ‘mono to stereo’ converter, which converts the left
and right channels from a 3.5mm stereo jack to a single channel using two (usually) 10K resistors.

2. Multiplicative Mixers
 

https://circuitdigest.com/electronic-circuits/analog-audio-mixer-additive-and-multiplicative-mixer 8/33
10/23/2019 How to build an Analog Mixer - Additive Mixer and Multiplicative Mixer

Multiplicative mixers are a little more interesting – they multiply two (or perhaps more, but that’s di cult) input signals and the product is the output signal.

Addition is simple, but how do we electronically multiply?

There’s another little mathematical trick that we can apply here, called a logarithm.

A logarithm is basically asking the question – to what power must a given base be raised to give the result?

In other words,

2x = 8, x = ?

In terms of logarithms, this can be written as:

log2x = 8

Writing numbers in terms of an exponent of a common base enables us to use another basic mathematical property:
 

https://circuitdigest.com/electronic-circuits/analog-audio-mixer-additive-and-multiplicative-mixer 9/33
10/23/2019 How to build an Analog Mixer - Additive Mixer and Multiplicative Mixer

ax x ay = ax+y

Multiplying two exponents with a common base is equivalent to adding the exponents and then raising the base to that power.

This has the implication that, if we apply a logarithm to two signals, adding them together and then ‘taking’ an antilog is equivalent to multiplying them!

The circuit implementation can get a little complicated.

Here, we shall discuss a rather simple circuit called a Gilbert cell mixer.

Gilbert cell mixer


Below gure shows the Gilbert cell mixer circuit.

 

https://circuitdigest.com/electronic-circuits/analog-audio-mixer-additive-and-multiplicative-mixer 10/33
10/23/2019 How to build an Analog Mixer - Additive Mixer and Multiplicative Mixer

 
Gilbert Cell Mixer
https://circuitdigest.com/electronic-circuits/analog-audio-mixer-additive-and-multiplicative-mixer 11/33
10/23/2019 How to build an Analog Mixer - Additive Mixer and Multiplicative Mixer

The circuit may look very intimidating at rst, but like all complicated circuits this one can be broken down into simpler functional blocks.

Transistor pairs Q8/Q10, Q11/Q9 and Q12/Q13 form individual differential ampli ers (https://circuitdigest.com/electronic-circuits/differential-ampli er-or-
voltage-subtractor-circuit).

Differential ampli ers simply amplify the differential input voltages to the two transistors. Consider the simple circuit shown in below gure.

Differential Ampli er

The input is in differential form, between the bases of transistors Q14 and Q15. The base voltages are the same, so are the collector currents and the
voltage across R23 and R24 are the same, so the output differential voltage is zero. If there is a difference in base voltages, the collector currents differ,

setting up different voltages across the two resistors. The output swing is larger than the input swing, thanks to transistor action.

https://circuitdigest.com/electronic-circuits/analog-audio-mixer-additive-and-multiplicative-mixer 12/33
10/23/2019 How to build an Analog Mixer - Additive Mixer and Multiplicative Mixer

The takeaway from this is that the gain of the ampli er depends on the tail current, which is the sum of the two collector currents. The greater the tail
current, the greater the gain.

In the Gilbert cell mixer circuit shown above, the top two diff amps (formed by Q8/Q10 and Q11/Q9) have cross connected outputs and a common set of
loads.

When the tail currents of the two ampli ers is the same and the differential input A is 0, the voltages across the resistors is the same and there is no output.
This is also the case when the input A has a small differential voltage, since the tail currents are the same, the cross-connection cancels out the overall
output.

Only when the two tail currents are different, the output voltage is a function of the difference of the tail currents.

Depending on which tail current is larger or smaller, the gain can be positive or negative (relative to the input signal), i.e. inverting or non-inverting.

The difference in tail currents is brought about using another differential ampli er formed by transistors Q12/Q13.

The overall result is that the output differential swing is proportional to the product of the differential swings of inputs A and B.

Constructing a Gilbert Cell Mixer

Parts Required: 

1. 3x 3.3K resistors

2. 6x NPN transistors (2N2222, BC547, etc.)

Two phase shifted sine waves are fed into the inputs (shown by the yellow and blue traces), and the output is shown in pink in below image, compared to the
scope’s math multiply function, whose output is the purple trace.

 

https://circuitdigest.com/electronic-circuits/analog-audio-mixer-additive-and-multiplicative-mixer 13/33
10/23/2019 How to build an Analog Mixer - Additive Mixer and Multiplicative Mixer

Output of Gilbert Cell Mixer

Since the oscilloscope does ‘real time’ multiplication, the inputs had to be AC coupled so that it calculated the negative peak too, since the inputs to the
actual mixer were DC coupled and it could handle multiplication of both polarities.

There is also a slight phase difference between the mixer output and the scope trace, since things like propagation delays have to be considered in real life.

Applications of Multiplicative Mixers

The biggest use for multiplicative mixers is in RF circuits (https://circuitdigest.com/tags/rf), to demodulate high frequency waveforms by mixing it with an
intermediate frequency waveform.

A Gilbert cell
 like this one is a four quadrant multiplier, meaning that multiplication in both polarities is possible, following the simple rules: 

https://circuitdigest.com/electronic-circuits/analog-audio-mixer-additive-and-multiplicative-mixer 14/33
10/23/2019 How to build an Analog Mixer - Additive Mixer and Multiplicative Mixer

A x B = AB
-A x B = -AB
A x -B = -AB
-A x -B = AB

 

https://circuitdigest.com/electronic-circuits/analog-audio-mixer-additive-and-multiplicative-mixer 15/33
10/23/2019 How to build an Analog Mixer - Additive Mixer and Multiplicative Mixer

Arduino Sine Wave Generator


All the waveforms used for this project were generated using an Arduino. We have previously explained the Arduino function generator circuit
(https://circuitdigest.com/microcontroller-projects/arduino-waveform-generator) in detail.

Circuit Diagram: 

 

https://circuitdigest.com/electronic-circuits/analog-audio-mixer-additive-and-multiplicative-mixer 16/33
10/23/2019 How to build an Analog Mixer - Additive Mixer and Multiplicative Mixer

Arduino Sine Wave Generator


(/fullimage?i=inlineimages/u2/Arduino-Sine-Wave-Generator-Circuit.png)

   

https://circuitdigest.com/electronic-circuits/analog-audio-mixer-additive-and-multiplicative-mixer 17/33
10/23/2019 How to build an Analog Mixer - Additive Mixer and Multiplicative Mixer

Code explanation: 

The setup section creates two lookup tables with the values of the sine function, scaled to an integer from 0 to 255 and one phase shifted by 90 degrees.

The loop section simply writes the values stored in the lookup table to the PWM timer. The output of the PWM pins 11 and 3 can be low pass ltered to get a
nearly perfect sine wave. This is a good example of DDS, or direct digital synthesis.

The resulting sine wave has a very low frequency, limited by the PWM frequency. This can be xed with some low level register magic. Complete Arduino
code for sine wave generator is given below:

Arduino code: 

 

https://circuitdigest.com/electronic-circuits/analog-audio-mixer-additive-and-multiplicative-mixer 18/33
10/23/2019 How to build an Analog Mixer - Additive Mixer and Multiplicative Mixer

#define pinOne 11
#define pinTwo 3
#define pi 3.14
float phase = 0;
int result, resultTwo, sineValuesOne[100], sineValuesTwo[100], i, n;
void setup()
{
pinMode(pinOne, OUTPUT);
pinMode(pinTwo, INPUT);
Serial.begin(115200);
for(phase = 0, i = 0; phase <= (2*pi); phase = phase + 0.1, i++)
{
result = (50 * (2.5 + (2.5 * sin(phase))));
sineValuesOne[i] = result;
resultTwo = (50 * (2.5 + (2.5 * sin(phase - (pi*0.5)))));
sineValuesTwo[i] = resultTwo;
}
n = i;
}
void loop()
{
for(i = 0; i <= n; i++)
{
analogWrite(pinOne, sineValuesOne[i]);
analogWrite(pinTwo, sineValuesTwo[i]);
delay(5);
}
}

 
Conclusion
Mixers are electronic circuits that add or multiply two inputs. They nd extensive use in audio, RF and occasionally as elements of an analog computer.

Video
 

https://circuitdigest.com/electronic-circuits/analog-audio-mixer-additive-and-multiplicative-mixer 19/33
10/23/2019 How to build an Analog Mixer - Additive Mixer and Multiplicative Mixer

How to build a Analog Mixer- Additive Mixer and Multiplicative Mixer

Tags ANALOG (/TAGS/ANALOG) AUDIO (/TAGS/AUDIO) AMPLIFIER (/TAGS/AMPLIFIER) ARDUINO (/TAGS/ARDUINO)

TRANSISTOR (/TAGS/TRANSISTOR) OSCILLOSCOPE (/TAGS/OSCILLOSCOPE)

Get Our Weekly Newsletter!


Subscribe below to receive most popular news, articles and DIY projects from Circuit Digest

Email Address *

Name

Country

United States of America 

https://circuitdigest.com/electronic-circuits/analog-audio-mixer-additive-and-multiplicative-mixer 20/33

Potrebbero piacerti anche