Author |
Message |
cypher
Joined: Dec 08, 2010 Posts: 12
|
Posted: Sat Feb 12, 2011 4:40 am Post subject:
simple DC voltage doubler |
 |
|
Hi all!
I am looking for a really simple DC voltage doubler solution - in my case the ENV generator gives the peak output of approx. 2,5 V and I need to make the 5 V peak from it (or lets say, double the amplitude).
I have found some ideas already, but I am not sure that its the best solution for synth device.
Greetigs |
|
Back to top
|
|
 |
clee

Joined: Dec 08, 2009 Posts: 42 Location: Chicago
|
Posted: Sat Feb 12, 2011 9:05 am Post subject:
|
 |
|
A simple non-inverting op amp with a gain of 2. Google "op amp gain calculator" and a schematic and resistor values should be easy to get. _________________ life in many forms...
http://clsound.com |
|
Back to top
|
|
 |
rutgerv
Joined: Nov 22, 2010 Posts: 26 Location: Elst, Netherlands
G2 patch files: 3
|
Posted: Sat Feb 12, 2011 10:48 am Post subject:
|
 |
|
Yes, a simple op-amp circuit with a gain of 2 sounds like the best solution. However, you could probably also modify the ENV generator to put out 5V directly. Most ENV generators have an op-amp buffer with a specific gain at the output. If you modify this gain, you can get the signal up to 5V instead of 2,5. But then it's not so easy to switch back to 2,5 if you need it of course.
Rutger |
|
Back to top
|
|
 |
JovianPyx

Joined: Nov 20, 2007 Posts: 1988 Location: West Red Spot, Jupiter
Audio files: 224
|
Posted: Sat Feb 12, 2011 11:59 am Post subject:
|
 |
|
Seeing the schematic for the envelope generator would help enormously.
I agree with rutgerv that it may be easiest to modify it.
As for returning to 2.5 volts, it could be done with 2 equal resistors forming a 2:1 voltage divider which would reduce 5volts to 2.5volts.
Usually, however, it is desirable to have a module's output be as high as possible within the limits of it's power supply and the receiving module would have a level pot on it's input to control the effect. That way, you simply adjust the knob to get what you want. _________________ FPGA, dsPIC and Fatman Synth Stuff
Time flies like a banana. Fruit flies when you're having fun. BTW, Do these genes make my ass look fat? corruptio optimi pessima
|
|
Back to top
|
|
 |
cypher
Joined: Dec 08, 2010 Posts: 12
|
Posted: Sat Feb 12, 2011 12:56 pm Post subject:
|
 |
|
Hi all!
Thanks a lot.
Well, I tried an OP-AMP (I used the TL-064 JFET OP-AMP) and it works.
But there seems to be a little bug or something - the OP-AMP output is "high level" at the start and also ends at "high level" too...
For example:
When the key is not pressed:
ENV level is 0V; The non-inverted pin of AMP of course 0V; the inverted pin of AMP je 2,5V; the AMP output is 5V.
When the key is pressed:
ENV level:
0V 0V 0V 1V 2V 2,5V 2V 1V 0V 0V 0V 0V
AMP OUTPUT level:
5V 5V 0V 2V 4V 5V 4V 2V 0V 5V 5V 5V
I connected the non-inverted OP-AMP imput (audio input) trought 100K resistor to groud; the inverted OP-AMP input trought 10K res. to ground and trought 10K res. to feedback (output).
Maybe something else on the OP-AMP have to be grounded or what can be the problem? Why is the amp output by "default" at high level?
Greetings |
|
Back to top
|
|
 |
clee

Joined: Dec 08, 2009 Posts: 42 Location: Chicago
|
|
Back to top
|
|
 |
JovianPyx

Joined: Nov 20, 2007 Posts: 1988 Location: West Red Spot, Jupiter
Audio files: 224
|
Posted: Sat Feb 12, 2011 1:12 pm Post subject:
|
 |
|
yes, it looks like an inverter... but not really, an inverter on an opamp powered with a bipolar power supply should output negative voltages.
May we please see some schematics? _________________ FPGA, dsPIC and Fatman Synth Stuff
Time flies like a banana. Fruit flies when you're having fun. BTW, Do these genes make my ass look fat? corruptio optimi pessima
|
|
Back to top
|
|
 |
cypher
Joined: Dec 08, 2010 Posts: 12
|
Posted: Sat Feb 12, 2011 1:36 pm Post subject:
|
 |
|
I am using the similar type of schematic like you post
one 10k resistor to OUTPUT and 10k resistor to ground from IN-.
But I have also the 100K ohm resistor to ground at Vin (IN+).
The used OP AMP is TI TL064BCN. According to the datasheet pin1 should be OUT, pin2 IN-, pin3 IN+.
Does it seem to work like a typical inverting circuit connection? Maybe should I try change IN- and IN+ connection?
I used the OP-AMP only at the powersupply with (5V connected to Vcc+) and 0V (connected to Vcc- PIN {I have no negative voltage at the supply}), can this be a problem? I want it just for ENV (so IMHO no negative wave is needed).
Greetings |
|
Back to top
|
|
 |
clee

Joined: Dec 08, 2009 Posts: 42 Location: Chicago
|
Posted: Sat Feb 12, 2011 2:57 pm Post subject:
|
 |
|
Oops, I didn't know you were operating with a single ended supply. Being in a synth I just assumed you were using a split supply. It's not working because you are not giving the op amp a ground reference. What you describe as ground the op amp is seeing as the negative supply voltage. You need to set up a voltage divider (2 100k resistors) from 5v to ground and a cap (25uf electrolytic) from the junction of the 2 resistors to ground, negative end of the cap at ground. That would then be the virtual ground. All ground connections need to go there.
It gets complicated from there. Your op amp will output 2.5v with no signal applied. Plus, you may have trouble getting the output to 5v if that is the B+ voltage. Most op amps are not completely rail to rail.
Don't you have +/- 12 or 15v available? The circuit is MUCH simpler with a bipolar supply even if you only need positive output voltages. _________________ life in many forms...
http://clsound.com |
|
Back to top
|
|
 |
cypher
Joined: Dec 08, 2010 Posts: 12
|
Posted: Sat Feb 12, 2011 3:16 pm Post subject:
|
 |
|
hmm. its not a very good situation
I really would prefer just the existing 5V PS (as long as possible), because the device should be "portable" and all other blocks are already working at 5 V DC powersupply.
The Voltage divider you described OUTPUT will produce 2,5 Bias or -5V or ?
But you wrote also, that after using that voltage divider, the default output of the OP-AMP will still be just 2,5V ?
So there is no way to do "relative simple" gain of 2 amplifier in 5V DC device?
To get approx. 0-5V DC from 0-2,5V DC ENVELOPE GENERATOR?
Greetings |
|
Back to top
|
|
 |
clee

Joined: Dec 08, 2009 Posts: 42 Location: Chicago
|
|
Back to top
|
|
 |
JovianPyx

Joined: Nov 20, 2007 Posts: 1988 Location: West Red Spot, Jupiter
Audio files: 224
|
Posted: Sat Feb 12, 2011 4:03 pm Post subject:
|
 |
|
This is in the LM324 datasheet as an example schematic. For a gain of two, both resistors would be 10K. The circuit is spec'd to run on 5volts single supply, but should work up to the maximum supply voltage allowed.
EDIT ADD: It should also be noted that in the graph to the right of the schematic, we can see that the voltage curve flattens off somewhat before it gets to 5 volts. This is because an LM324 is not a "rail to rail" opamp. So to use this to double a 2.5 volt signal, the power supply should be higher than 5 volts. I would suggest 8 volts or more since the datasheet also says that the maximum voltage the opamp can output is Vcc - 1.5 (this assumes that you are using an LM324, if other opamp, please check it's datasheet). The LM324 can, however, supply 0.0 volts at it's output.
Is that what you tried cypher?
Description: |
Snippet of LM324 datasheet (National Semi) |
|
Filesize: |
17.4 KB |
Viewed: |
203 Time(s) |
This image has been reduced to fit the page. Click on it to enlarge. |

|
_________________ FPGA, dsPIC and Fatman Synth Stuff
Time flies like a banana. Fruit flies when you're having fun. BTW, Do these genes make my ass look fat? corruptio optimi pessima
|
|
Back to top
|
|
 |
cypher
Joined: Dec 08, 2010 Posts: 12
|
Posted: Mon Feb 14, 2011 3:34 am Post subject:
|
 |
|
Hi all!
Well, the problem was just I had there a 100K resistor to ground from IN+ (I saw it in some similar circuit). I tried also adding the voltage divider, but its better working just without it in my case (and for ENVELOPE doubling usage).
Anyway, thanks to all.
Greetings |
|
Back to top
|
|
 |
|