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
Can It Be Done? Single Supply Op-Amp Filter
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 1 [18 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
senorverde



Joined: Dec 10, 2011
Posts: 3
Location: NY

PostPosted: Sat Dec 10, 2011 6:05 am    Post subject: Can It Be Done? Single Supply Op-Amp Filter Reply with quote  Mark this post and the followings unread

Hello! I'm new here and am in need of some help for my project. Lately, I have been considering adding a LP filter to my DYI synth and have been doing some research on all the various types. After giving it some thought, I've decided on using a Sallen-Key filter, although I'm a bit hesitant about how the op-amps have a dual power supply. So, doing more research (the more the merrier Very Happy ), I've found that there are these single supply op amps out there that require far less power than their dual power relatives.

My question is how, in the long run, will using single supply op-amps differ from using dual supply op amps? I have heard that there's a lot more distortion, but I am new with these magical devices.

Any suggestions?
Thanks.
Back to top
View user's profile Send private message
MadScientist



Joined: Nov 28, 2011
Posts: 63
Location: Denmark

PostPosted: Sun Dec 11, 2011 12:37 am    Post subject: Re: Can It Be Done? Single Supply Op-Amp Filter Reply with quote  Mark this post and the followings unread

senorverde wrote:
My question is how, in the long run, will using single supply op-amps differ from using dual supply op amps? I have heard that there's a lot more distortion, but I am new with these magical devices.

The quick answer is that in the long run you will be shooting yourself in the foot by not immediately going for a dual polarity supply. The only drawback of doing so is that you need a slightly more complicated PSU now.

A Sallen-Key filter can certainly be built using a single supply, and I will give a schematic if you wish. But I think you should hear the trade-offs first.

At the end of the day there is only *one* major difference between dual and single supply op-amps. That difference is how close the inputs and outputs can get to either supply line before bad things happen. An op-amp does actually not care in the least whether you use a single or a dual supply, it only cares about the voltages at the supply rails and inputs/outputs.

So for instance a standard TL072/074 has hard limits to the output voltage. It can only get within about 2V below the positive rail, and 2V above the negative. So if you powered a TL071 from +/-12V, then the output could only go between roughly +/-10V. If on the other hand you ran the same TL071 from a 9V battery, single supply, then the output voltage is limited to between +2V (low) and +7V (high). The signal would 'flat top', meaning heavy distortion, whenever the op-amp tried to drive the signal above or below these limits.

The 'single supply' op-amps simply have the ability to go pretty much all the way toward the supply rails, so from 0 o 9V on a 9V battery. The price they pay is that to get those last 4V of swing, 2 at either supply rail, they need to use special techniques, which increases distortion for signals above and below the 2V 'rail limits'. However, if you insisted on running an op-amp at, say, 5V, then you pretty much wouldn't have a choice except using a 'single supply' op-amp. A TL071 would in this case only have about 1V of voltage travel on the output, as the 2V limits are absolutes, and not a percentage.

So why don't we run our stuff from a single supply all the time? As it happens, you *could* build, say, a nice synth on a 0-20V supply, with signals centered around 10V instead of ground. However, if you did so, you would quickly discover a funny fact. In order to keep all signals centered on some arbitrary voltage, here 10V, your circuits would quickly become way more complicated to the point, where it is much easier to just get a dual supply.

Because that is pretty much what a dual supply is, an artificial mid point right in the center between the supply rails, and where you can draw different currents from each rail (which is highly convenient in many situations). If you had a good reason, then you could also build a synth running on +20/+32/+44V, which as far as the op-amps are concerned would change absolutely nothing compared to using plain old -12/0/+12V. The voltage differences would be the same. So would be using 0/+12/+24V, which would be a 'single supply' with an artificial mid-point at 12V.

So you'd use single-supply op-amps if you are artificially constrained with the voltages available, say by battery voltage in portable equipment, and pay the price in added circuit complexity.

For everyday operation you'd use normal op-amps with either single or dual supplies, and modify the schematics accordingly. Personally I'd set the bar for using dual supplies very low. I'd prefer to using, say, two 9V batteries, instead of trying to modify a schematic and having to use special op-amps in order to run stuff from a single battery. There are other problems with single supply setups, but that would require some schematic examples to demonstrate.

Hope this makes some kind of sense. Very Happy

Frank.
Back to top
View user's profile Send private message
bod



Joined: Apr 28, 2009
Posts: 148
Location: Glasgow

PostPosted: Mon Dec 12, 2011 4:47 pm    Post subject: Reply with quote  Mark this post and the followings unread

Firstly, does it have to be single supply? Is that what the rest of your synth is based on?

Secondly, and despite mad scientists insightful explanation (which is a great read, I didn't quite realise that before!!) I've had great result with running a filter based around the lm13700 on a single supply. With a few extra caps/resistors for a basic filter than a sallen key, you've got a voltage controlled filter and no need for the dual gang pot. Sometimes the distortion can be a feature as well.
Alternatively there is ray wilsons filter from the WSG, and the ms20 style filter from the monotron that should be of interest.

Happy filtering!!
Back to top
View user's profile Send private message
senorverde



Joined: Dec 10, 2011
Posts: 3
Location: NY

PostPosted: Tue Dec 13, 2011 3:53 am    Post subject: Reply with quote  Mark this post and the followings unread

bod wrote:
Firstly, does it have to be single supply? Is that what the rest of your synth is based on?

Secondly, and despite mad scientists insightful explanation (which is a great read, I didn't quite realise that before!!) I've had great result with running a filter based around the lm13700 on a single supply. With a few extra caps/resistors for a basic filter than a sallen key, you've got a voltage controlled filter and no need for the dual gang pot. Sometimes the distortion can be a feature as well.
Alternatively there is ray wilsons filter from the WSG, and the ms20 style filter from the monotron that should be of interest.

Happy filtering!!


Wow, first off thank you for everyone's answers! Very Happy

The reason why it has to be a single op amp supply is because of the limited voltage of the entire circuit. You see, I'm in a little wager with a few friends to see which one can come up with the best sounding 'synth' using the the smallest amount of components. For this reason, I've decided to go with a 74 series of inverters and a Sallen Key filter. Now, as we all know the 74 series don't require that much power for them to make a noise. Op amps however, especially the dual supply kind, require supply voltages three or more times greater than the VCO itself! Their single supply cousins however do not, with supply voltages in the same neighbourhood as the VCO itself. So, in the end it'll probably be a choice between the following:

>Single, low power supply with a lot of distortion.
OR
>Dual supply, considerable power supply with virtually no distortion.
Back to top
View user's profile Send private message
MadScientist



Joined: Nov 28, 2011
Posts: 63
Location: Denmark

PostPosted: Tue Dec 13, 2011 4:58 am    Post subject: Reply with quote  Mark this post and the followings unread

Are you allowed to use a micro-controller? Twisted Evil Some of them come with integrated D/A converter, which means you'd only need a few capacitors plus the MCU itself for a fully fledged synthesizer.

If MCUs aren't allowed, then how do you count op-amps or logic-ICs? Each one hides varying levels of integration. A fully discrete component synth design, running from a single power rail, would probably win the day if you count *all* the components, including those inside integrated circuits.

Hmm...? Idea
Back to top
View user's profile Send private message
senorverde



Joined: Dec 10, 2011
Posts: 3
Location: NY

PostPosted: Tue Dec 13, 2011 6:22 am    Post subject: Reply with quote  Mark this post and the followings unread

MadScientist wrote:
Are you allowed to use a micro-controller? Twisted Evil Some of them come with integrated D/A converter, which means you'd only need a few capacitors plus the MCU itself for a fully fledged synthesizer.

If MCUs aren't allowed, then how do you count op-amps or logic-ICs? Each one hides varying levels of integration. A fully discrete component synth design, running from a single power rail, would probably win the day if you count *all* the components, including those inside integrated circuits.

Hmm...? Idea


Now that's a really good idea! However, they are not allowed (drat!). Basically, the vein of the wager is to take a bunch of ICs (inverters, gates, &c.) coupled with components and make them sound halfway decent through whatever means you see fit. I'll look into the details soon.
Back to top
View user's profile Send private message
Tim Servo



Joined: Jul 16, 2006
Posts: 924
Location: Silicon Valley
Audio files: 11

PostPosted: Tue Dec 13, 2011 1:20 pm    Post subject: Can It Be Done? Single Supply Op-Amp Filter Reply with quote  Mark this post and the followings unread

You really should check out the Lunetta sub-forum here if you haven't already. Probably find a TON of great logic-based, single-supply noisemakers.

Also, someone posted a VERY simple schematic showing a VCF that was basically a Vactrol, a resistor, and a cap. I'll look around and see if I can find it (I think the thread was "Simplest Filter" or something like that...). It sounded surprisingly good and was simple as dirt. Even if you made your own Vactrol from a photocell and an LED, you could implement a VCF and a VCA very easily this way. Also, look into using the HF11F1 photocoupler. This is a 'vactrol' in an easy to use DIP package, but it uses a phototransistor instead of a photocell has much quicker response time.
http://search.digikey.com/us/en/products/H11F1M/H11F1M-ND/1793945

I would think something like that would work nicely. Smile


Tim (also very simple) Servo
Back to top
View user's profile Send private message
Tim Servo



Joined: Jul 16, 2006
Posts: 924
Location: Silicon Valley
Audio files: 11

PostPosted: Tue Dec 13, 2011 1:49 pm    Post subject: Can It Be Done? Single Supply Op-Amp Filter Reply with quote  Mark this post and the followings unread

Try this thread too!

http://electro-music.com/forum/topic-43897.html&postorder=asc&highlight=simple+vcf


Tim (yes, it can be done) Servo
Back to top
View user's profile Send private message
comrade_zero



Joined: Mar 05, 2009
Posts: 66
Location: arizona
Audio files: 4

PostPosted: Tue Dec 13, 2011 7:22 pm    Post subject: have you thought of a cd4069? Reply with quote  Mark this post and the followings unread

Have you considered using a cd4069?
This is not an op-amp solution, but it runs off of a low-voltage single supply and can make a really good resonant filter. Extremely low parts count.
Simple to build and easy to use.
The most common example is the Wasp filter, in which ca3080's are used as variable resistors in a topolgy that mimics a two-pole state variable filter. We don't need all that do we?
If we replace the 3080's with a dual ganged pot we can control the cutoff just fine. Or we use LED/LDR's for poor man's voltage control...
If you are interested check around, you will find a couple schematics, or I could probably find time to post one soon...
My current version is 1 IC, two caps, two resistors, and 2 pots, for a two-pole filter with Lowpass and Bandpass. I can run it as low as +5 v on a single supply...
cheers
c_z
Back to top
View user's profile Send private message
Mongo1



Joined: Aug 11, 2011
Posts: 411
Location: Raleigh NC

PostPosted: Wed Dec 14, 2011 8:24 am    Post subject: Reply with quote  Mark this post and the followings unread

You know, after hanging out on this forum for a while, I'm becoming more and more convinced that our most prolific contributors are based in a facility for the criminally insane.

I love it!

BTW - the vactrol idea is awesome. I think that is far and away the best approach for this problem. The sound quality to parts count ratio will beat the daylights out of your competition, and most of them will never think of that approach.

Good luck.

Gary
Back to top
View user's profile Send private message Send e-mail
JingleJoe



Joined: Nov 10, 2011
Posts: 878
Location: Lancashire, England
Audio files: 14

PostPosted: Wed Dec 14, 2011 12:31 pm    Post subject: Reply with quote  Mark this post and the followings unread

Just thought of vactrol controlled filter myself!
The hastily scrawled schematic and notes were carefully filed in the huge pile of hastily scrawled schematics and notes by the wall covered entirely in hastily scrawled schematics and notes. I may be in that facility too, Mr Mongo.

I think it may be possible to use a PWM signal to control the brightness of the LED, from what I've read and seen, some (if not most) vactrols have a sort of "fall off" when the light is turned off, which would effectively filter the pulses applied to the LED giving you smooth control instead of a filter modulated by the frequency of the PWM.

I will attach a schematic of my PWM-ifier. I would not consider using anything else at the time of writing. Maybe I will find something better as my knowledge progresses but this works like a charm Wink

Maybe one of you could test my idea Very Happy I am working on other things at the moment (and minecraft).


PWMifier.png
 Description:
 Filesize:  9.76 KB
 Viewed:  9348 Time(s)

PWMifier.png


Back to top
View user's profile Send private message
MadScientist



Joined: Nov 28, 2011
Posts: 63
Location: Denmark

PostPosted: Wed Dec 14, 2011 12:59 pm    Post subject: Reply with quote  Mark this post and the followings unread

There is a component called an analog comparator, which is better at comparing than any op-amp is likely to be. One example would be the LM393.
Back to top
View user's profile Send private message
inlifeindeath



Joined: Apr 02, 2010
Posts: 316
Location: Albuquerque, NM

PostPosted: Wed Dec 14, 2011 1:17 pm    Post subject: Reply with quote  Mark this post and the followings unread

cool! sounds similar to fonik's pwm clock method on the VC clock, except he uses a ramp wave
http://www.modular.fonik.de/pdf/VC_Clock.pdf

_________________
http://www.youtube.com/user/borisandfef
Back to top
View user's profile Send private message Visit poster's website
Mongo1



Joined: Aug 11, 2011
Posts: 411
Location: Raleigh NC

PostPosted: Wed Dec 14, 2011 1:20 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hi Joe -

If I understand what you're saying (and who knows if that's true?) it sounds like you're trying to use the sluggish nature of the vactrol as a filter. That seems like it would work, but the corner frequency of the filter would be fixed.
I don't know how useful that would be.

I was assuming the idea was more in the nature of using the vactrol to replace the R part of normal filter.

Gary (hang on - the nurse is here with my meds)
Back to top
View user's profile Send private message Send e-mail
JingleJoe



Joined: Nov 10, 2011
Posts: 878
Location: Lancashire, England
Audio files: 14

PostPosted: Wed Dec 14, 2011 2:56 pm    Post subject: Reply with quote  Mark this post and the followings unread

Mongo1 wrote:
Hi Joe -

If I understand what you're saying (and who knows if that's true?) it sounds like you're trying to use the sluggish nature of the vactrol as a filter.

no no no no Laughing the LDR part of the vactrol would control a filter, I was merely saying that the "slugish nature" stops the PWM signal form modulating the filter and should in theory let the light level* control the filter.
(*which is controlled by the PWM signal, which will have to be around 100 to 500 Hz for good operation I think)

Mongo1 wrote:


I was assuming the idea was more in the nature of using the vactrol to replace the R part of normal filter.

Gary (hang on - the nurse is here with my meds)

Thats exactly what I ment Smile
Back to top
View user's profile Send private message
JingleJoe



Joined: Nov 10, 2011
Posts: 878
Location: Lancashire, England
Audio files: 14

PostPosted: Wed Dec 14, 2011 3:01 pm    Post subject: Reply with quote  Mark this post and the followings unread

MadScientist wrote:
There is a component called an analog comparator, which is better at comparing than any op-amp is likely to be. One example would be the LM393.

Brilliant Very Happy thats just the ticket!

inlifeindeath wrote:

cool! sounds similar to fonik's pwm clock method on the VC clock, except he uses a ramp wave
http://www.modular.fonik.de/pdf/VC_Clock.pdf

Yes I am certain others have done this before Smile despite this I could find no explanation as clear as my graph/diagram/description around the internets.
Back to top
View user's profile Send private message
Tim Servo



Joined: Jul 16, 2006
Posts: 924
Location: Silicon Valley
Audio files: 11

PostPosted: Wed Dec 14, 2011 6:18 pm    Post subject: Can It Be Done? Single Supply Op-Amp Filter Reply with quote  Mark this post and the followings unread

Not quite sure I understand the idea of using PWM to control the LED in a vactrol. Why not just directly control the brightness of the LED with the DC control voltage? PWM control has advantages in other areas (like motor control or high power LEDs), but I think it's an unnecessary step here. Right? Wrong? I have seen circuits that essentially switch a resistor in and out with a varying frequency and/or pulse width, allowing voltage control to replace a standard pot, but that's not the case here. Also, I think with the average vactrol, the response is so slow that a pulse frequency of anything more than a few Hertz would be lost (would probably work much better with the ultra fast H11 optocoupler).

Or am I just typically confused?


Tim (confused, befuddled and bewildered am I) Servo
Back to top
View user's profile Send private message
Estebandito



Joined: Dec 25, 2017
Posts: 33
Location: Amsterdam
Audio files: 3

PostPosted: Wed May 21, 2025 1:50 pm    Post subject: Polivoks inspired single supply op-amp filter Reply with quote  Mark this post and the followings unread

If anyone is still looking - after all these years Very Happy - I came across this very simple, single supply, 1 op-amp filter. The required IC is very particular yet not difficult to find. Have fun! https://tudl1086.home.xs4all.nl/synthcirc/filtpvoks/analogsynthfilter-ts271-mvoks4.pdf
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 [18 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