electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software
simple DC voltage doubler
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 1 [13 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
cypher



Joined: Dec 08, 2010
Posts: 12

PostPosted: Sat Feb 12, 2011 4:40 am    Post subject: simple DC voltage doubler Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
clee



Joined: Dec 08, 2009
Posts: 42
Location: Chicago

PostPosted: Sat Feb 12, 2011 9:05 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
rutgerv



Joined: Nov 22, 2010
Posts: 26
Location: Elst, Netherlands
G2 patch files: 3

PostPosted: Sat Feb 12, 2011 10:48 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
JovianPyx



Joined: Nov 20, 2007
Posts: 1988
Location: West Red Spot, Jupiter
Audio files: 224

PostPosted: Sat Feb 12, 2011 11:59 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
cypher



Joined: Dec 08, 2010
Posts: 12

PostPosted: Sat Feb 12, 2011 12:56 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
clee



Joined: Dec 08, 2009
Posts: 42
Location: Chicago

PostPosted: Sat Feb 12, 2011 1:09 pm    Post subject: Reply with quote  Mark this post and the followings unread

sounds like you are using an inverting configuration possibly, not sure.

Use this:

http://www.leapfrogsw.com/noninverting.php3

_________________
life in many forms...
http://clsound.com
Back to top
View user's profile Send private message Visit poster's website
JovianPyx



Joined: Nov 20, 2007
Posts: 1988
Location: West Red Spot, Jupiter
Audio files: 224

PostPosted: Sat Feb 12, 2011 1:12 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
cypher



Joined: Dec 08, 2010
Posts: 12

PostPosted: Sat Feb 12, 2011 1:36 pm    Post subject: Reply with quote  Mark this post and the followings unread

clee wrote:
sounds like you are using an inverting configuration possibly, not sure.

Use this:

http://www.leapfrogsw.com/noninverting.php3


I am using the similar type of schematic like you post Smile
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
View user's profile Send private message
clee



Joined: Dec 08, 2009
Posts: 42
Location: Chicago

PostPosted: Sat Feb 12, 2011 2:57 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
cypher



Joined: Dec 08, 2010
Posts: 12

PostPosted: Sat Feb 12, 2011 3:16 pm    Post subject: Reply with quote  Mark this post and the followings unread

hmm. its not a very good situation Smile
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
View user's profile Send private message
clee



Joined: Dec 08, 2009
Posts: 42
Location: Chicago

PostPosted: Sat Feb 12, 2011 3:48 pm    Post subject: Reply with quote  Mark this post and the followings unread

Here is what you need I think. For some reason I can't insert the picture, you need to download it.

The ratio of RF to RG sets the gain. You want to set it to a gain of 2. I THINK this works... breadboard it to test it.

What I meant was that the output of the op amp will sit at 2.5v with no input. There may be an offset you need to adjust for. It's been a long time since I did single supply so I'm a little rusty Sad


single supply op amp.bmp
 Description:

Download (listen)
 Filename:  single supply op amp.bmp
 Filesize:  385.06 KB
 Downloaded:  202 Time(s)


_________________
life in many forms...
http://clsound.com
Back to top
View user's profile Send private message Visit poster's website
JovianPyx



Joined: Nov 20, 2007
Posts: 1988
Location: West Red Spot, Jupiter
Audio files: 224

PostPosted: Sat Feb 12, 2011 4:03 pm    Post subject: Reply with quote  Mark this post and the followings unread

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?


LM324.gif
 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.

LM324.gif



_________________
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
View user's profile Send private message Visit poster's website
cypher



Joined: Dec 08, 2010
Posts: 12

PostPosted: Mon Feb 14, 2011 3:34 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 1 [13 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use