Electronics-Related.com
Forums

Single transistor mixer

Started by ChesterW February 21, 2016
On 2/21/16 6:04 PM, Jim Thompson wrote:
> On Sun, 21 Feb 2016 16:22:20 -0600, ChesterW <iamsnoozin@yahoo.com> > wrote: > >> I need to make a mixer (a multiplier, not an adder) for sinusoid signals >> somewhere between about 10 kHz and 1 Mhz. This is for a lock-in-amp. My >> main constraint is low cost. I'd use a microcontroller with an A to D >> and a hardware multiplier, but I'd like to keep the cost down by using a >> cheaper micro. I could use a simple power-of-2 window in the micro and >> then only need additions to demod, but that would give me a wider >> bandwidth for noise to get in. I though a single transistor mixer design >> might give better results. Anyone know of a good reference? >> >> ChesterW >> +++ >> Dr Chester Wildey >> Founder MRRA Inc. >> Electronic and Optoelectronic Instruments >> MRI Motion, fNIRS Brain Scanners, Counterfeit and Covert Marker Detection >> Fort Worth, Texas, USA >> www.mrrainc.com >> wildey at mrrainc dot com > > For RF, a simple diff-pair makes an excellent mixer... think half of a > Gilbert multiplier (you don't need the half that eliminates DC from > the source... tank loads do that). > > ...Jim Thompson >
Thanks, I'll check that out! ChesterW
On Monday, 22 February 2016 11:04:34 UTC+11, Jim Thompson  wrote:
> On Sun, 21 Feb 2016 16:22:20 -0600, ChesterW <iamsnoozin@yahoo.com> > wrote: > > >I need to make a mixer (a multiplier, not an adder) for sinusoid signals > >somewhere between about 10 kHz and 1 Mhz. This is for a lock-in-amp. My > >main constraint is low cost. I'd use a microcontroller with an A to D > >and a hardware multiplier, but I'd like to keep the cost down by using a > >cheaper micro. I could use a simple power-of-2 window in the micro and > >then only need additions to demod, but that would give me a wider > >bandwidth for noise to get in. I though a single transistor mixer design > >might give better results. Anyone know of a good reference? > > > >ChesterW > >+++ > >Dr Chester Wildey > >Founder MRRA Inc. > >Electronic and Optoelectronic Instruments > >MRI Motion, fNIRS Brain Scanners, Counterfeit and Covert Marker Detection > >Fort Worth, Texas, USA > >www.mrrainc.com > >wildey at mrrainc dot com > > For RF, a simple diff-pair makes an excellent mixer... think half of a > Gilbert multiplier (you don't need the half that eliminates DC from > the source... tank loads do that).
The Faulkner and Harding phase sensitive detector works fine at audio frequencies as well (though it was claimed that it worked up to 30MHz). E.A.Faulkner and D.W. Harding J.Sci. Instrum. volume 43 page 97-99 (1966) http://iopscience.iop.org/article/10.1088/0950-7671/43/2/305 Faulkner improved it a bit E.A.Faulkner and J.B.Grimbleby Electronic Engineering volume 39 page 565-67 (1967) Both references are from my Ph.D. thesis. The original Faulkner and Harding phase sensitive detector turned the - off-set - signal into a modulated direct current at the collector of a transistor constant current source, and fed that into a long-tailed pair of transistors whose bases were driven by the demodulating signal - ideally a pair of anti-phase square waves at the frequency of interest. The integrated difference in the currents coming out of the two collectors was the demodulated signal - an operational amplifier subtractor could refer that to 0V. I just stuck a moving coil ammeter across the collector resistors. You have to add enough voltage offset to the original AC signal to make sure that the current going into the long-tailed pair never drops to zero, and the mark-to-space ratio (which should be exactly 50%) of the demodulating drive determines how effectively this offset is rejected. It's three transistors rather than one, but it's a remarkably good circuit - even better if you used a matched transistor pair for the long-trailed pair. -- Bill Sloman, Sydney
On 2/21/16 5:12 PM, John Larkin wrote:
> On Sun, 21 Feb 2016 16:22:20 -0600, ChesterW <iamsnoozin@yahoo.com> > wrote: > >> I need to make a mixer (a multiplier, not an adder) for sinusoid signals >> somewhere between about 10 kHz and 1 Mhz. This is for a lock-in-amp. My >> main constraint is low cost. I'd use a microcontroller with an A to D >> and a hardware multiplier, but I'd like to keep the cost down by using a >> cheaper micro. I could use a simple power-of-2 window in the micro and >> then only need additions to demod, but that would give me a wider >> bandwidth for noise to get in. I though a single transistor mixer design >> might give better results. Anyone know of a good reference? >> >> ChesterW >> +++ >> Dr Chester Wildey >> Founder MRRA Inc. >> Electronic and Optoelectronic Instruments >> MRI Motion, fNIRS Brain Scanners, Counterfeit and Covert Marker Detection >> Fort Worth, Texas, USA >> www.mrrainc.com >> wildey at mrrainc dot com > > A single-transistor multiplier would probably be awful.
I was afraid I might hear that.
> > You don't need to multiply sine waves. Just multiply the signal > alternately by +1 and -1 and then lowpass filter.
Yep, even inexpensive micros come with +1/-1 multiplier :). Unfortunately using this method means the DC mixing product will include noise from all of the odd harmonics. The beauty of a lock-in is the narrow noise bandwidth, and it is compromised with the +1/-1 method.
> > That can be done, for example, by alternately multiplexing between > SIG+ and SIG- with a good fast analog mux. That will always have > residual errors, but could be pretty good.
Or I could DC offset the signal and just do the +/- in the micro. The DC component will cancel out.
> > I guess the best lock-in would use a good ADC and do the multiply > digitally, in an FPGA. Noise dither maybe.
That's my benchmark. I can use something like a microchip dsPic that has a hardware multiplier and mix the signals in the chip. The customers product is high volume though, so pennies matter, and the dsPic costs around $1.60. If I could implement a reasonable analog mixer I could use a more modest micro for something around $0.50. I've taken a look at the raw signal and I've got plenty of noise for bit-dithering. I only need a TC of a second or two, so even for an 8 bit ADC digitization noise will not be a factor. ChesterW
On 2/21/16 5:23 PM, Tim Wescott wrote:
> On Sun, 21 Feb 2016 15:12:58 -0800, John Larkin wrote: > >> On Sun, 21 Feb 2016 16:22:20 -0600, ChesterW <iamsnoozin@yahoo.com> >> wrote: >> >>> I need to make a mixer (a multiplier, not an adder) for sinusoid signals >>> somewhere between about 10 kHz and 1 Mhz. This is for a lock-in-amp. My >>> main constraint is low cost. I'd use a microcontroller with an A to D >>> and a hardware multiplier, but I'd like to keep the cost down by using a >>> cheaper micro. I could use a simple power-of-2 window in the micro and >>> then only need additions to demod, but that would give me a wider >>> bandwidth for noise to get in. I though a single transistor mixer design >>> might give better results. Anyone know of a good reference? >>> >>> ChesterW +++ >>> Dr Chester Wildey Founder MRRA Inc. >>> Electronic and Optoelectronic Instruments MRI Motion, fNIRS Brain >>> Scanners, Counterfeit and Covert Marker Detection Fort Worth, Texas, USA >>> www.mrrainc.com wildey at mrrainc dot com >> >> A single-transistor multiplier would probably be awful. >> >> You don't need to multiply sine waves. Just multiply the signal >> alternately by +1 and -1 and then lowpass filter. >> >> That can be done, for example, by alternately multiplexing between SIG+ >> and SIG- with a good fast analog mux. That will always have residual >> errors, but could be pretty good. >> >> I guess the best lock-in would use a good ADC and do the multiply >> digitally, in an FPGA. Noise dither maybe. >
I need to include a microcontroller in the circuit for other unrelated reasons, so I might as well use it for the signal processing. If I demodulate using a square wave, then the baseline noise in the signal at all of the odd harmonics of the square wave will shift to DC. The customer originally tried to do this measurement at DC and never got it to work. I guess they never heard of 1/f noise. I may have to live with the extra noise from demodulating with a square wave, but it would be nice if I could figure a not-too-expensive way to demodulate with a sine and thus keep my low noise bandwidth. ChesterW
On 2/21/16 5:49 PM, John Larkin wrote:
> On Sun, 21 Feb 2016 17:23:43 -0600, Tim Wescott > <seemywebsite@myfooter.really> wrote: > >> On Sun, 21 Feb 2016 15:12:58 -0800, John Larkin wrote: >> >>> On Sun, 21 Feb 2016 16:22:20 -0600, ChesterW <iamsnoozin@yahoo.com> >>> wrote: >>> >>>> I need to make a mixer (a multiplier, not an adder) for sinusoid signals >>>> somewhere between about 10 kHz and 1 Mhz. This is for a lock-in-amp. My >>>> main constraint is low cost. I'd use a microcontroller with an A to D >>>> and a hardware multiplier, but I'd like to keep the cost down by using a >>>> cheaper micro. I could use a simple power-of-2 window in the micro and >>>> then only need additions to demod, but that would give me a wider >>>> bandwidth for noise to get in. I though a single transistor mixer design >>>> might give better results. Anyone know of a good reference? >>>> >>>> ChesterW +++ >>>> Dr Chester Wildey Founder MRRA Inc. >>>> Electronic and Optoelectronic Instruments MRI Motion, fNIRS Brain >>>> Scanners, Counterfeit and Covert Marker Detection Fort Worth, Texas, USA >>>> www.mrrainc.com wildey at mrrainc dot com >>> >>> A single-transistor multiplier would probably be awful. >>> >>> You don't need to multiply sine waves. Just multiply the signal >>> alternately by +1 and -1 and then lowpass filter. >>> >>> That can be done, for example, by alternately multiplexing between SIG+ >>> and SIG- with a good fast analog mux. That will always have residual >>> errors, but could be pretty good. >>> >>> I guess the best lock-in would use a good ADC and do the multiply >>> digitally, in an FPGA. Noise dither maybe. >> >> With today's parts you may be able to do this with a set of fast analog >> switches and an op-amp. Perhaps even a 74<something fast>4051 or >> whatever? > > 74HC4051 would work, but the 1 MHz requirement is tricky. > > Something like FSA3157 or ADG604 or one of those T3USB gadgets might > be better at 1 MHz. > > The classic single-opamp +1/-1 circuit might work with a small phemt > as the grounding switch. > > But no single transistor! > >
I certainly like the price of that FSA3157. To be clear, 1 Mhz is not a requirement, I can pick the frequency. I was planning to look for a clean spot in the spectrum maybe around 40 kHz - something where I can get a reasonable over-sample on the A to D if I go with signal processing in an inexpensive micro. ChesterW
On 2/21/16 5:15 PM, Tim Wescott wrote:
> On Sun, 21 Feb 2016 16:22:20 -0600, ChesterW wrote: > >> I need to make a mixer (a multiplier, not an adder) for sinusoid signals >> somewhere between about 10 kHz and 1 Mhz. This is for a lock-in-amp. My >> main constraint is low cost. I'd use a microcontroller with an A to D >> and a hardware multiplier, but I'd like to keep the cost down by using a >> cheaper micro. I could use a simple power-of-2 window in the micro and >> then only need additions to demod, but that would give me a wider >> bandwidth for noise to get in. I though a single transistor mixer design >> might give better results. Anyone know of a good reference? > > Assuming that your criteria are "low cost and works" then I'm not sure > that you'll be happy with a single-transistor mixer.
Yes, I've been getting that idea from the responses here. You guys probably saved me a lot of time trying to figure out how to make it work.
> > Be that as it may, stick your LO signal on the emitter and your RF signal > on the base and see what comes out the collector.
Might be a nice benchmark anyhow, even if it's a dead end.
> > Do you need something that gives an output down to DC, without bias? If > so, you're going to be vastly unhappy with a single-transistor mixer.
I'm assuming you mean does the input signal need to go down to DC. No. To be clear, I'm generating the carrier and running it through the DUT, then recovering the modified signal and demodulating it using the carrier. I can pick the carrier to be anything I want within reason. It might be nice to give the system the smarts to scan for a clean spot in the spectrum and change the carrier accordingly, but certainly no need to do anything but demodulate at whatever frequency is used to probe.
> > Check out the SA602. It's so old it creaks, but it works and with the > right signal conditioning on its outputs it gives a fairly decent output > down to DC.
It's too expensive. Also I'd be afraid of it going obsolete. My benchmark for cost right now is a dsPic at around $1.60. It has a hardware multiplier and so I could do a pretty good demod inside the chip. So the idea is to try to get rid of the need for the multiplier by using an analog multiplier, thus enabling the use of a more modest micro.
> > Or, look at the 1000 or so results in DigiKey's "RF mixers" section. >
ChesterW
On 2/21/16 6:52 PM, whit3rd wrote:
> On Sunday, February 21, 2016 at 2:22:18 PM UTC-8, ChesterW wrote: >> I need to make a mixer (a multiplier, not an adder) ... for a lock-in-amp. > > The classic one-transisor mixer is a dual-gate MOSFET. > If your 'lock-in amp' has a squarewave reference, analog-switch > polarity reversal can be very effective, too. The 'switch' elements > can be diodes, or FETs, or any other kind of transistor; you could > even consider photocouplers, at your relatively low frequency > range. >
I've never heard of a dual-gate mixer, so thanks for the tip! In an ideal world I'll use a sine wave for my carrier and demodulate with a sine. That way my noise bandwidth will be lower I think than using a square wave. My DUT doesn't give a linear response to a square wave, but does to a sine wave. The carrier used to demod the signal can be thought of as a sort of matched filter, so since my signal is a sine the best demod carrier is also a sine. ChesterW
On 2/21/16 6:28 PM, mixed nuts wrote:
> On 2/21/2016 5:22 PM, ChesterW wrote: >> I need to make a mixer (a multiplier, not an adder) for sinusoid signals >> somewhere between about 10 kHz and 1 Mhz. This is for a lock-in-amp. My >> main constraint is low cost. I'd use a microcontroller with an A to D >> and a hardware multiplier, but I'd like to keep the cost down by using a >> cheaper micro. I could use a simple power-of-2 window in the micro and >> then only need additions to demod, but that would give me a wider >> bandwidth for noise to get in. I though a single transistor mixer design >> might give better results. Anyone know of a good reference? > > Single diodes have been used as mixers for nearly a century. A > transistor biased near cutoff with a strong signal applied to the base > at one frequency and a weak signal at another will produce sum and > difference frequencies with some gain over a simple diode. > > The conceptual information and enough math to give you a handle on > behavior are here: > > https://en.wikipedia.org/wiki/Frequency_mixer > https://en.wikipedia.org/wiki/Superheterodyne_receiver > > A CMOS exclusive-or gate (74HC86) is useable as a mixer as well. >
Thanks for the idea. I think using a diode will cause a lot of my desired mixing products to be well removed from DC and so not available to add to my signal. Also, noise in the spectrum of the input signal far removed from the carrier frequency will end up translating down to DC and further decrease my SNR. ChesterW
On Sun, 21 Feb 2016 15:49:07 -0800, John Larkin wrote:

> On Sun, 21 Feb 2016 17:23:43 -0600, Tim Wescott > <seemywebsite@myfooter.really> wrote: > >>On Sun, 21 Feb 2016 15:12:58 -0800, John Larkin wrote: >> >>> On Sun, 21 Feb 2016 16:22:20 -0600, ChesterW <iamsnoozin@yahoo.com> >>> wrote: >>> >>>>I need to make a mixer (a multiplier, not an adder) for sinusoid >>>>signals somewhere between about 10 kHz and 1 Mhz. This is for a >>>>lock-in-amp. My main constraint is low cost. I'd use a microcontroller >>>>with an A to D and a hardware multiplier, but I'd like to keep the >>>>cost down by using a cheaper micro. I could use a simple power-of-2 >>>>window in the micro and then only need additions to demod, but that >>>>would give me a wider bandwidth for noise to get in. I though a single >>>>transistor mixer design might give better results. Anyone know of a >>>>good reference? >>>> >>>>ChesterW +++ >>>>Dr Chester Wildey Founder MRRA Inc. >>>>Electronic and Optoelectronic Instruments MRI Motion, fNIRS Brain >>>>Scanners, Counterfeit and Covert Marker Detection Fort Worth, Texas, >>>>USA www.mrrainc.com wildey at mrrainc dot com >>> >>> A single-transistor multiplier would probably be awful. >>> >>> You don't need to multiply sine waves. Just multiply the signal >>> alternately by +1 and -1 and then lowpass filter. >>> >>> That can be done, for example, by alternately multiplexing between >>> SIG+ >>> and SIG- with a good fast analog mux. That will always have residual >>> errors, but could be pretty good. >>> >>> I guess the best lock-in would use a good ADC and do the multiply >>> digitally, in an FPGA. Noise dither maybe. >> >>With today's parts you may be able to do this with a set of fast analog >>switches and an op-amp. Perhaps even a 74<something fast>4051 or >>whatever? > > 74HC4051 would work, but the 1 MHz requirement is tricky. > > Something like FSA3157 or ADG604 or one of those T3USB gadgets might be > better at 1 MHz. > > The classic single-opamp +1/-1 circuit might work with a small phemt as > the grounding switch. > > But no single transistor!
I thought of the +1/-1 circuit, but I wasn't sure how it'd do with a 10MHz GBW op-amp (unless there's cheap op-amps that are faster). DigiKey lists 74VHC4052 parts from ON that -- if they're as good as they claim -- should be good to past 1MHz. But they're 22 cents each in quantity from Digi-Key. -- Tim Wescott Wescott Design Services http://www.wescottdesign.com
On Monday, 22 February 2016 13:45:18 UTC+11, ChesterW  wrote:
> On 2/21/16 5:23 PM, Tim Wescott wrote: > > On Sun, 21 Feb 2016 15:12:58 -0800, John Larkin wrote: > > > >> On Sun, 21 Feb 2016 16:22:20 -0600, ChesterW <iamsnoozin@yahoo.com> > >> wrote: > >> > >>> I need to make a mixer (a multiplier, not an adder) for sinusoid signals > >>> somewhere between about 10 kHz and 1 Mhz. This is for a lock-in-amp. My > >>> main constraint is low cost. I'd use a microcontroller with an A to D > >>> and a hardware multiplier, but I'd like to keep the cost down by using a > >>> cheaper micro. I could use a simple power-of-2 window in the micro and > >>> then only need additions to demod, but that would give me a wider > >>> bandwidth for noise to get in. I though a single transistor mixer design > >>> might give better results. Anyone know of a good reference? > >>> > >>> ChesterW +++ > >>> Dr Chester Wildey Founder MRRA Inc. > >>> Electronic and Optoelectronic Instruments MRI Motion, fNIRS Brain > >>> Scanners, Counterfeit and Covert Marker Detection Fort Worth, Texas, USA > >>> www.mrrainc.com wildey at mrrainc dot com > >> > >> A single-transistor multiplier would probably be awful. > >> > >> You don't need to multiply sine waves. Just multiply the signal > >> alternately by +1 and -1 and then lowpass filter. > >> > >> That can be done, for example, by alternately multiplexing between SIG+ > >> and SIG- with a good fast analog mux. That will always have residual > >> errors, but could be pretty good. > >> > >> I guess the best lock-in would use a good ADC and do the multiply > >> digitally, in an FPGA. Noise dither maybe. > > > I need to include a microcontroller in the circuit for other unrelated > reasons, so I might as well use it for the signal processing. If I > demodulate using a square wave, then the baseline noise in the signal at > all of the odd harmonics of the square wave will shift to DC. > > The customer originally tried to do this measurement at DC and never got > it to work. I guess they never heard of 1/f noise. > > I may have to live with the extra noise from demodulating with a square > wave, but it would be nice if I could figure a not-too-expensive way to > demodulate with a sine and thus keep my low noise bandwidth.
A good quality four quadrant multiplier will demodulate the sinusoidal component if used to multiply the signal being demodulated by a good good quality sine wave at the desired frequency. The Analog Devices AD734 is a very good quality multiplier, but it isn't cheap - $A45.18 in small quantities from the local supplier. http://au.element14.com/webapp/wcs/stores/servlet/Search?catalogId=15001&langId=43&storeId=10184&categoryName=All%20Categories&selectedCategoryId=&gs=true&st=AD734 In practice the noise advantage of demodulating with a sinewave rather than a square wave is rarely dramatic. Getting rid of 1/f noise tends to be what matters. -- Bill Sloman, Sydney