[help] Full Wave rectification for VCA control voltage - diyAudio
Go Back   Home > Forums > Amplifiers > Power Supplies

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 25th November 2009, 05:07 PM   #1
diyAudio Member
 
Join Date: Nov 2009
Default [help] Full Wave rectification for VCA control voltage

Hi everybody, first post here!

I'm currently designing a quad linked VCA compressor for my final year project at university, and I've hit a bit of trouble with the AC rectification for the control voltage.

The control voltage signal so far consists of a full wave precision amplifier and a low pass sallen-key filter with Fc of 20Hz & gain of 1.6. The aim of this is obviously to remove the audio component of the input signal. This setup gives a perfectly smooth RMS DC voltage at 1kHz, however as the frequency of the input increases a problem occurs with the rectifier and I have no clue what is causing it.

As the frequency increases the rectifier stops working and I am seeing very large negative pulses resulting in DC offset after my filter. However, this problem only started happening after adding the S-K filter on the end of the rectifier.

I have no idea how I am getting these large negative spikes from the rectifier (-6V for a 2Vp-p input!) so any help whatsoever would be great. My knowledge of the whole system is quite limited so its likely that I'm missing something very obvious!
  Reply With Quote
Old 25th November 2009, 05:29 PM   #2
diyAudio Moderator Emeritus
 
Iain McNeill's Avatar
 
Join Date: Oct 2007
Location: Santa Cruz, California
The precision rectifier works fine until you load it with the LP filter?
Can you post the schematic?

Is something exceeding the voltage rails?
  Reply With Quote
Old 25th November 2009, 06:06 PM   #3
diyAudio Member
 
Join Date: Nov 2009
Ok, I've got some screenshots to help explain the problem a little better. Here is the schematic of the circuit, with reference points V1 (input) and V2 (output) for the following simulations:

http://i6.photobucket.com/albums/y24.../schematic.jpg

Simulation for 1Vp-p at 1kHz:

http://i6.photobucket.com/albums/y24.../rectifier.jpg

Simulation for 1Vp-p at 15kHz:

http://i6.photobucket.com/albums/y24...krectified.jpg

The only thing changing between the 2 simulations is the frequency of the input voltage!

Thanks
  Reply With Quote
Old 25th November 2009, 06:25 PM   #4
diyAudio Member
 
Join Date: Nov 2009
I've just tried with the LP filter disconnected and I'm still getting the problem - so it must have been there all along. I've got some screenshots of the schematic and the simulations below.

Schematic (reference points V1 and V2 correspond to the simulations)

Click the image to open in full size.

Simulation for 1Vp-p at 1kHz:

Click the image to open in full size.

Simulation for 1Vp-p at 15kHz:

Click the image to open in full size.

The only thing that is different between these 2 simulations is the frequency of the input. It's also worth mentioning that the negative spikes get greater in amplitude with frequency, e.g. 20kHz will have an even greater negative spike.

Thanks!
  Reply With Quote
Old 25th November 2009, 08:11 PM   #5
diyAudio Moderator Emeritus
 
Iain McNeill's Avatar
 
Join Date: Oct 2007
Location: Santa Cruz, California
Looks like a simulator burp to me. Are your time increments appropriate?

What op-amp model are you using?
  Reply With Quote
Old 25th November 2009, 09:29 PM   #6
diyAudio Member
 
Join Date: Nov 2009
Sorry about the double post, I didn't realise replies were moderated!

I've had a go deleting all of the nodes in the schematic layout and rewiring it all, and the problem is solved! It seems as though I deleted a component or connection somewhere but left the net intact.

However, now I have the DC voltage a new problem has popped up! The capacitor is charging to the RMS value of the input as I would like it too, but it then drops by a few mV before levelling off. Is this just the nature of the circuit or is there a way I can keep it at constant RMS value? Here's a simulation to show what's happening:

1.747Vp-p/1.2VRMS (+4dBu line level) @ 1kHz

Click the image to open in full size.

I have a feeling this may be something to do with the 12k feedback resistor in the filter. I was told earlier by my lecturer that a gain of 1.6 from the LP filter will improve the accuracy of the cutoff and give a flatter DC voltage. I have a feeling that this resistor is configured wrongly though as changing the value does nothing to my output voltage!

Also, is the initial charge time for the capacitor too long? 50ms is obviously a significant amount of time in a compressor circuit.

It's a TL074 op-amp chip by the way.

Last edited by dan_thompson87; 25th November 2009 at 09:56 PM.
  Reply With Quote
Old 25th November 2009, 10:08 PM   #7
Elvee is offline Elvee  Belgium
diyAudio Member
 
Elvee's Avatar
 
Join Date: Sep 2006
A/ In the case of a TL074, the 12K is useless
B/ The overshoot is caused by a too high Q; try C values closer to their geometric average (~1µF)
C/ This rectifier reacts to the mean value of the waveform, not the rms
D/ Reducing the rise time can be achieved by increasing the order of the filter (for a given amount of ripple).
  Reply With Quote
Old 25th November 2009, 10:29 PM   #8
diyAudio Member
 
Steerpike's Avatar
 
Join Date: Jan 2006
Location: Johannesburg, South Africa
As LV said, your circuit is not computing the RMS value.
It computes the absolute average, which may be gain trimmed to equal the RMS value ON A SINEWAVE. But it isn't RMS; give it a non-sinusoidal signal and it will get a value different from the RMS value.
__________________
Steerpike's Toybox
  Reply With Quote
Old 25th November 2009, 10:39 PM   #9
diyAudio Member
 
Join Date: Nov 2009
Thanks for the responses, they're a big help.

Everything Elvee said made sense to me - I'm going to have a go at tweaking the cap values to give a better Q, as well as trying the next order filter.

Can someone please explain to me why the feedback resistor makes no difference on the TL074 please? Would it be better to pick a different chip where it will make a difference, or exclude it altogether?

Sorry if my questions seem trivial - I only have basic knowledge of how these circuits work and I'm in the process or learning at the moment. That's the idea of a dissertation right?
  Reply With Quote
Old 25th November 2009, 11:02 PM   #10
diyAudio Member
 
Steerpike's Avatar
 
Join Date: Jan 2006
Location: Johannesburg, South Africa
Quote:
Originally Posted by dan_thompson87 View Post
Can someone please explain to me why the feedback resistor makes no difference on the TL074 please? Would it be better to pick a different chip where it will make a difference, or exclude it altogether?
12k acts the same as a wire link. The input impedance of the amp is so high, and the input bias current so low that an extra 12k is irrelevant, might as well tie input directly to output.
Any resistor there will behave much like a wire link, unless you start using a value that starts approaching the amp input impedance - but that will cause other problems, like noise pickup, & offset voltage effects.

With 12k there, IF you put another resistor from the (-) input to ground, then you'd have voltage divider action going on in the feedback path, which would alter the filter gain.
__________________
Steerpike's Toybox
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Full wave or half wave rectification help! HaLo6 Digital Line Level 1 26th March 2009 02:14 AM
Full wave vs full wave bridge rectifier jeff mai Parts 31 12th February 2005 12:43 AM


New To Site? Need Help?

All times are GMT. The time now is 01:15 PM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2