Author Topic: Voltage-controlled amplifier  (Read 592 times)

0 Members and 1 Guest are viewing this topic.

Offline elkiTopic starter

  • Regular Contributor
  • *
  • Posts: 110
  • Country: be
Voltage-controlled amplifier
« on: April 15, 2024, 10:53:27 am »
Hi all! I would like to get an advise on the following circuit (attached). The idea is to control the amplitude of the input pulse from 0 to the supply rail voltage with the help of a voltage-controlled amplifier. Is it possible to achieve with such circuit? I guess I have some fundamental issue in how I approach it.
 

Online xvr

  • Regular Contributor
  • *
  • Posts: 159
  • Country: ie
    • LinkedIn
Re: Voltage-controlled amplifier
« Reply #1 on: April 15, 2024, 11:09:55 am »
If you need only 2 gain values than this schema will work. If you expect gain controlled by voltage value - it will not. MOSFET is not a linear element.
Take a Variable Gain Amplifier in form of IC - https://www.digikey.ie/en/products/detail/analog-devices-inc/AD8337BCPZ-REEL/1218098 for example
 
The following users thanked this post: elki

Offline jonpaul

  • Super Contributor
  • ***
  • Posts: 3366
  • Country: fr
Re: Voltage-controlled amplifier
« Reply #2 on: April 15, 2024, 11:11:09 am »
pulse Vlo, Vhi, risetime, PRF?

j
Jean-Paul  the Internet Dinosaur
 

Offline elkiTopic starter

  • Regular Contributor
  • *
  • Posts: 110
  • Country: be
Re: Voltage-controlled amplifier
« Reply #3 on: April 15, 2024, 11:23:06 am »
0-5V, 5ns, 100 Hz
 

Offline Terry Bites

  • Super Contributor
  • ***
  • Posts: 2400
  • Country: gb
  • Recovering Electrical Engineer
Re: Voltage-controlled amplifier
« Reply #4 on: April 15, 2024, 12:11:17 pm »
Simply use an analog switch and set the output voltage to a reference level of your choice. Vtop in the attached.
eg a TC4S66F or similar spdt.
If Ron is an issue a buffer amp can be added to the output.
You'll lose some risetime but I doubt that will be a problem at 100Hz.


« Last Edit: April 15, 2024, 12:18:41 pm by Terry Bites »
 
The following users thanked this post: Ian.M, elki

Offline elkiTopic starter

  • Regular Contributor
  • *
  • Posts: 110
  • Country: be
Re: Voltage-controlled amplifier
« Reply #5 on: April 15, 2024, 12:15:26 pm »
Thanks. If I understand correctly, this would change the reference of the output signal but not the amplitude wrt zero?

Simply use an analog switch and set the output voltage with a reference level of your choice. Vtop in the attached.
 

Offline Terry Bites

  • Super Contributor
  • ***
  • Posts: 2400
  • Country: gb
  • Recovering Electrical Engineer
Re: Voltage-controlled amplifier
« Reply #6 on: April 15, 2024, 12:30:28 pm »
The switch pulls the output to zero when the input is zero and to Vtop when the input is positive.
If Vin is too low for the switch to operate then add a comparator.
 
The following users thanked this post: elki

Offline elkiTopic starter

  • Regular Contributor
  • *
  • Posts: 110
  • Country: be
Re: Voltage-controlled amplifier
« Reply #7 on: April 15, 2024, 01:16:48 pm »
Thanks for your suggestion. I am trying with DG419 running on single supply. I guess VL should be connected to GND?

The switch pulls the output to zero when the input is zero and to Vtop when the input is positive.
If Vin is too low for the switch to operate then add a comparator.
 

Offline Terry Bites

  • Super Contributor
  • ***
  • Posts: 2400
  • Country: gb
  • Recovering Electrical Engineer
Re: Voltage-controlled amplifier
« Reply #8 on: April 15, 2024, 02:46:18 pm »
Vl set the thresholds at which the switch operates and should be set to the same voltage as your logic or pulse generator.
If your input was 3.3V, say from an arduino, then you'd tie Vl to the 3.3V rail.
 
 
The following users thanked this post: elki

Offline elkiTopic starter

  • Regular Contributor
  • *
  • Posts: 110
  • Country: be
Re: Voltage-controlled amplifier
« Reply #9 on: April 15, 2024, 03:17:49 pm »
Thanks again. This works well. However, for short pulses < 400 ns (my main application), the typical turn-on time is of the order of 100 ns or so, which screws up the output pulse shape. Any suggestions on fast analog switches?
 

Offline elkiTopic starter

  • Regular Contributor
  • *
  • Posts: 110
  • Country: be
Re: Voltage-controlled amplifier
« Reply #10 on: April 15, 2024, 03:33:19 pm »
This is the signal at the output of the analog switch. As can be seen, the two peaks are the turn-on and turn-off times.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19538
  • Country: gb
  • 0999
Re: Voltage-controlled amplifier
« Reply #11 on: April 15, 2024, 05:16:20 pm »
A few comments regarding the original poster's schematic:

The power supply to the op-amp is only 5V, yet the input voltage is also 5V, so even if it has a rail-to-rail input and output, it won't output any more than 5V.

M1 will need to be a logic level MOSFET with a low threshold voltage.

The MOSFET will have some capacitance, causing the gain to tend towards 1+R3/(R1||R2) at higher frequencies, when it's off. This will result in over shoot on the output, as the higher frequencies are amplified more.

What's going on with C1? That'll AC couple the signal, so the output will swing negative, as well as positive.
« Last Edit: April 15, 2024, 05:19:43 pm by Zero999 »
 
The following users thanked this post: elki

Offline Terry Bites

  • Super Contributor
  • ***
  • Posts: 2400
  • Country: gb
  • Recovering Electrical Engineer
Re: Voltage-controlled amplifier
« Reply #12 on: April 16, 2024, 06:15:34 pm »
That looks like charge injection. I'm gusesing that the only load is a scope probe, possibly with a poor ground.
Add a small cap to see the effect. Put a realistic load on the switch common and buffer the output with an opamp.
For the DG419 the charge injection is about 10pC. Q=CV so a few pC in a few pF is a few volts. With a high impedance probe, the charge has no where to go leading to a long ugly transients. You could just us a small signal mosfet (2N7002) to pull Vtop to ground. Opamp optional.

A fun way to get control is to replace a gain set resistor with an LDR (often under a buck each). Shine a LED on it adjust theh LED brightness to set gain. So simple.
AKA "Vactrol".
 
The following users thanked this post: elki

Offline elkiTopic starter

  • Regular Contributor
  • *
  • Posts: 110
  • Country: be
Re: Voltage-controlled amplifier
« Reply #13 on: April 16, 2024, 06:25:52 pm »
Thanks a lot. This is very inspiring and educating.

That looks like charge injection. I'm gusesing that the only load is a scope probe, possibly with a poor ground.
Add a small cap to see the effect. Put a realistic load on the switch common and buffer the output with an opamp.
For the DG419 the charge injection is about 10pC. Q=CV so a few pC in a few pF is a few volts. With a high impedance probe, the charge has no where to go leading to a long ugly transients. You could just us a small signal mosfet (2N7002) to pull Vtop to ground. Opamp optional.

A fun way to get control is to replace a gain set resistor with an LDR (often under a buck each). Shine a LED on it adjust theh LED brightness to set gain. So simple.
AKA "Vactrol".
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf