Showing posts with label bandpass. Show all posts
Showing posts with label bandpass. Show all posts

Thursday, 4 April 2024

Synthesizer Build part-56: VCF-1 STATE VARIABLE FILTER by THOMAS HENRY.

 A very easy to build and awesome sounding state variable filter by Thomas Henry. For Eurorack or Kosmo systems.

I have covered many different types of filters on my website but I had not yet built a State Variable filter. What does that even mean I hear you ask. Well state variable means that it can simultaneously provide two or more types of filtering. In this case the filter has Lowpass, Highpass and Bandpass outputs and rather than having to switch the filter into these different modes, you have them available together, so each filtertype has its own output.
I found this particular schematic on "Birthofasynth.com", a website that has all of Thomas Henry's projects on it.
In the article about this filter he calls it a 'barebones' filter. Very much taken straight from the CA3080 datasheet. That may be so but it's still a great sounding filter. The way it sounds reminded me of the Steiner-Parker filter but I think it may even be better. It has a bit more edge to it I think.
It's a really old school filter with a 12dB/Oct. cutoff slope (2 pole filter) and it sounds like a 70's synthesizer filter should sound. It's pure sounding, phat in the low end (especially using squarewaves in Lowpass mode) with a beautiful but little bit agressive resonance. I own a Behringer Odyssey and that synth has a choise of three filters and one of them is a 12dB/Oct. filter and that is my favourite type of VCF. I always have the Odyssey set to the two pole filter. Anyway I urge you to read the article I linked to above if you want to know more about what TH said about this filter and its development.
THIS FILTER WILL RUN FINE ON BOTH A DUAL 12V OR A DUAL 15V POWERSUPPLY!


SCHEMATIC:
Below is the schematic I used for this filter. It says the filter is to be used with a dual 15V powersupply but I did all my testing running it on a dual 12V powersupply because many of you will be building this for Eurorack and it works just fine. I also used a Eurorack friendly size of stripboard which is 24 by 41 holes. That will fit behind a Eurorack panel.
As you can see the filter uses two OTA chips, the AS3080. These are the modern version of the original CA3080 chips and I believe these are less noisy than the originals too but they have that original sound. I got mine from Electric Druid, They are also available at Thonk and other online retailers. 
The LM13700 OTA chip also has two CA3080 chips inside and can be used in this circuit but then you'd have to design your own layout because that is a DIP16 IC. For this particular project you'll need the AS3080 chips. 


The numbering of the opamp pins has been changed to fit the layouts below, because I used the opamps in a different order to the original schematic.

The schematic shows a two transistor exponential converter with a PTC as temperature compensation. which we already know from the Thomas Henry 555-VCO. The temperature compensation is only useful if you intend to use the self oscillation of the filter as an extra oscillator. I never used a filter in this way and I can't imagine any of you will ever use the filter for that purpose so you can leave out the PTC and just use a 2K resistor. That's what I did eventhough I have these PTC's in my stock. In fact Thomas Henry himself used a 2K resistor as he mentions in the article linked above.
You do have to match the two PNP transistors though. I matched them as I always do just by measuring the Hfe on my multimeter and picking two transistor that measure the same value.
You might use the filter in full self resonance mode if you're looking for a special sound effect. I tested it and it will track with the keyboard because it has a Volt per Octave input. I have not tested how accurate the tracking is but I do think you can make it track over a few octaves if you want. Beware that the self oscillation is about twice as loud as the normal audio you get from this filter!!
You can leave out the Frequency Fine Tune potmeter too because that's only there to tune the self resonance for tracking. As a Cut-Off Frequency potmeter it is pretty much useless. One thing you can do is change the 3M3 resistor to a 100K and add a socket to that potmeter so it turns into an extra CV input with level control. Wire it up like the Envelope input. That's what I did myself. I find two CV inputs a necessity for a filter.

LAYOUTS:
Below are the layouts I made for this build. As always they are verified. I used them to build my filter. I was very thorough with checking this stripboard layout for faults before I printed it out and used it to start building my filter. I'm glad I checked it over a few times because I did manage to catch some mistakes in the design fase which saved me some hours troubleshooting I think.
Anyway the build went fine and apart from one transistor being faulty which needed changing out the filter worked straightaway.

Here's the wiring diagram:
All potmeters are seen from the BACK SIDE!


The Cutoff Frequency potmeter is wired up in such a way that the filter opens up when you turn it clockwise. The Resonance potmeter is wired up so that it gives more resonance when you turn it clockwise going into self oscillation when turned fully clockwise. It looks asif the wiring of the Resonance potmeter is the wrong way around but that's not the case. Resonance increases when the wiper moves clockwise towards the connection to ground. Resonance potmeters are usually wired up like this.

A little remark about the Frequency Fine Control. Only include this potmeter if you intend using the filter as an oscillator with the resonance at self-oscillation. As I mentioned earlier, the Frequency Fine Control is meant to tune the self oscillation of the filter so that it tracks with the keyboard. In itself it has very little influence on the CutOff Frequency so if you intend to use this filter just as a VCF and the tracking accuracy of the self oscillation isn't important to you than leave out the fine control potmeter. It will save some space on the faceplate too. I myself left out the Fine control potmeter too. I changed the 3M3 resistor for a 100K one and connected a second CV input to that point, complete with level control potmeter like the envelope input. Here's a detail of what that looks like:


Below is the stripboard only view. A little tip, when soldering in the trimmer potmeters put the wipers in the middle position. That way you won't have to do much tuning when you're testing the filter. 


Here's an overview of the cuts and wirebridges. Start soldering these in first before you solder in any components. There are 35 wirebridges to solder in. Make sure you're very very accurate here. It's easy to make a mistake and one wirebridge in the wrong position and the filter won't work.


And finally the cuts only as seen from the component side. As always, mark the cuts on the component side first with a waterproof Sharpie or Edding 3000 and then stick a pin through the marked holes and mark them again on the copper side. Then you can cut the strips at the marked places with a sharp hand held 6 or 7mm drill bit. This way you have the least chance of making mistakes.
Once again you need to be very accurate here because the component placement leaves no room for errors.


And here's the Bill Of Materials:


If you're going to build this module for Eurorack then I urge you to order miniature potmeters. You're going to need all the space you can get. There are 5 potmeters to accomodate and 7 sockets.

Adding extra's (like an LED and 2nd CV input):
As you can see there's only one audio input but it is easy enough to add more inputs. You can simply connect them through a 100K resistor to pin 9 of the TL074 and they will be summed together. You can also put in more CV inputs if you wish by connecting them through a 100K resistor to pin 2 of the TL074, which is what I did.
   The trimpots for the Offset control could actually be left out. They are not really necessary. They are part of the design because the early versions of the CA3080 chip (which was originally used in this filter) had quite a bit of variation in their offset voltages. But the latest generations don't have that problem anymore. I left the trimmers in because I stayed true to the schematic but it's up to you. The filter should work fine without them. Should you take them out then you can remove the trimmers and the 100K resistors in series with the wipers. Leave the 22 Ohm resistors to ground in place.
   Finally we have an opamp left unused! We have to do something with that right? :-)
I always like to include a LED if I can, so I altered the layout a little and made a jumpwire from the envelope input to pin 3 of the TL072. The green wirebridge from pin 10 of the TL074 needs to be lengthened and soldered straight to the bottom strip (X). Now we have configured the opamp as a voltage follower or buffer so we can connect a Bi-coloured LED to it without drawing any current from the envelope input. I used a big 4K7 resistor as current limiter so the LED will only be the brightest with the highest voltage. Below is the layout to show this alteration. 


The components for this change are not listed in the Bill of Materials because this was done as an after thought, but it's only a LED and a resistor. I used a red/blue bi-coloured LED.

ABOUT THE AC/DC SWITCH:
You may have noticed the audio input of the filter has an AC/DC switch in it. This is provided for instances where the full audio bandwidth of the signal is desired. DC coupling allows very low notes to pass through uninhibited by the input capacitor. This is actually the only filter on this website (apart from the ARP2600 LPF) that doesn't have a capacitor in the audio path, when switched to DC that is.
A DC signal can pass straight through the filter without ever encountering a capacitor so the filter can actually process a control signal! This opens up an entirely different can of worms. (In a positive way.)
For example you could patch the CV output of a sequencer through the Lowpass mode of this filter before it goes into a VCO. If you then modulate the cutoff frequency with an LFO you can create some really spacey effects.

CALIBRATION:
This is the procedure for the V/Oct. tracking of the filter in full self oscillation:
Connect the lowpass output to your VCA so you can hear the signal. Be careful, the self oscillation signal is quite loud! (Very loud in fact)
Connect a keyboard or other V/Oct. source to the 1V/Oct. input of the filter.
Put the filter in self oscillation by turning the resonance full clockwise and adjust the V/Oct trimmer for as close to a one Volt per Octave interval as possible. Go between C2 and C3 on the keyboard for instance and turn the trimmer to get the best result. Use the Frequency Fine control to help you tune the oscillator to the right notes, if you kept this potmeter.

About the trimmers.... what I actually did was put them in the middle position and just leave it at that. There really is nothing to trim because the modern AS3080 chips don't have erratic offset voltages in their output like the old CA3080's used to have. That's why this option is built into this filter, to trim away the offset from the CA3080's but with the new AS3080 there is no offset voltage.
So I didn't do any trimming and the filter works fine but I'll give you the procedure anyway, but as far as I'm concerned, you can ignore it.
Here is the procedure as mentioned in the official article: 
Put the trimmers in the middle position. With multiturn trimmers you start turning them untill they start clicking. Then turn back and count the number of turns until the wiper is at the other side and you hear it clicking again. Now turn the wiper half the number of turns you counted. Then it's in the middle position. You could also just measure the voltage coming from the wiper and turn until it's at zero Volts. Then it's in the middle too.
Connect a square/pulse wave to the filter input and monitor the Lowpass output with an oscilloscope. Now check for DC deflection as you turn the Frequency Cutoff potmeter through its range. Adjust the trimmer to get the least DC deflection at the output. 
The trimmers are interactive (they influence eachother) so you may have to go back and forth between them a few times.
There should really be very little to trim. As I mentioned earlier, the filter will actually work fine even without these offset trimmers and with the AS3080 there shouldn't be any offset voltage to speak of.

PICTURES:
Here are some pictures I took during the build proces:




As long as I was waiting for the new powder coated aluminium to come in the mail, I thought I'd make a template for the panel out of cardboard, so I can mount all the components in it and see if all the wiring is long enough. As you can see I changed my mind about the switch placement and I needed to lengthen several wires but it all fits nicely behind a Kosmo sized panel of 20 x 7.5 CM. I want to install this filter in my DIY synthesizer, not my Eurorack system. I think, if you want to fit it behind a eurorack panel, you have to make it a bit wider still.



Here's the finished module all ready to go mounted in my DIY synthesizer: I did all my testing running this filter on +/-12V and it was absolutely fine. But in my synthesizer I have two powersupplies, one for +/-12V and one for +/-15V, so I decided to connect it to the +/-15V supply for permanent use. 
(Boy, does this thing sound good. I love it!)


I wrote the labels with a white acryllic pen. I got new pens and this one is not as scratch resistant as the old pens I used to have so after I finished labeling everything I sprayed the panel with a layer of clear lacquer.

The stripboard is mounted behind the panel with a piece of plexiglass that I bent at both ends so it grips the stripboard like the fingers of a hand. I glued two little pieces of plexiglass at the ends so the stripboard can't slide out and I secured it with hot glue. Then I drilled a 3mm hole through one end and mounted it to the panel with an M3 bolt. I also used superglue to secure it and keep it from rotating should the bolt get loose.

When I first tested the filter I found that the Frequency control wasn't working. The Resonance was fine and I could see on the oscilloscope that the filter was doing it's thing but no Frequency control. I took my scope probe and tested the legs of the transistor pair and sure enough. Transistor Q2 was not working. So I put in a new matched pair of transistors and now everything was fine. It all worked as it should. Strangely enough the transistor was not faulty. It must have been a bad connection.

Here is a video of me testing the filter and the different outputs. It's a video I also uploaded to my YouTube channel.
I found with testing that the Lowpass sounds best with a squarewave on the input. The High- and Bandpass filters sound the best when you use a Sawtooth wave on the input.


Here's a little test video with a demonstration of the extra CV input I installed (with level potmeter). I have a sinewave connected to the second CV input. The rest is like the previous video:


Okay, that's it for now. Enjoy building this filter. It's a really good one!
If you have any questions about this or other projects then please comment below or post your question in the special Facebook Group for this website.

Sunday, 15 December 2019

Synthesizer Build part-12: THE KORG MS20 FILTER.

A good working version of the famous Korg MS-20 filter by Rene Schmitz, with updated stripboard layout and wiring diagram with LP & HP .

This is a filter I absolutely had to include in my DIY synthesizer project, for one because Sam Battle from LookMumNoComputer raves about it and it sounds amazing in his videos and the other reason is that it has the option to go between Low-Pass and High-Pass and I didn't have a High-Pass option in the synthesizer yet. I also added the Band-Pass option in the layout drawing however I tested it and it adds no extra benefit to this filter. Of course, combining this filter in High-Pass mode with one of the other lowpass filters gives you the bandpass option too and with a much better sound! (Check out the video at the bottom of this article to hear this filter in series with the Moog Ladder Filter. A really cool combination.) And if you build the Dual Korg Filter you'll have an even better bandpass option but that's for an other article.
There was a discussion on the Synth DIY Facebook group a while back about the possibility of switching this filter between 6dB per Octave and 12dB per Octave. I've tried it and it works but only in LowPass mode. More about this further down the article.
Btw, I tested this filter on dual 12 Volt and it works just as well as on 15 Volt so no need to change anything if you are feeding it from a +/- 12V powersupply. Of course you need to open Resonance a little more than on 15V but it's all within the normal throw of the potmeters so no problem there.


SCHEMATIC:
For this filter I used the 'Late MS20 Filter' schematic from Rene Schmitz which you can find by clicking here.
As he mentions in the text with his schematic, the gain of the opamps is hightened so you can get some weird sounds out of this. That's certainly true. :)
This filter is definitely different from other filters. It doesn't sound like the Moog Filter but it does have that 'ripping the fabric of the universe' synth sound and it's a real Speaker Ripper!. It's a 'Sallen-Key' type filter and it produces really divers sounds. (I always think of this filter as the 'Heavy Metal Guitar' pedal of the synthesizer world.) You can get deep bass tones out of it and if you connect an Envelope Generator like the little AD/AR to the CV1 input you'll get a squarewave changing into a really bassy sinewave as the note progresses. It's awesome to experiment with this filter.
In HighPass mode the Cut-Off Frequency potmeter doesn't work over its complete throw. I found it usually only works over the first 50%. This is also true of the other MS-20 filters I built for the Dual version so this is normal behaviour for this design.
This filter is self oscillating in both the Low and High-Pass configuration. The more Resonance you give it, the more the two yellow LED's light up. I found that by using an LM13600 instead of a LM13700 you can  tame the filter a little. The 13600 seems to be a bit less aggressive although the difference is really small. Btw, instead of the TL074 you can also use the TL084 or the LM324. They are pin for pin compatible and work just fine. I personally tested them all successfully.

Here's the original schematic with the pinout numbers for the LM13700:


Here's a link to an image I made showing the switch connections for HP and LP mode: --- click here --

About Resonance and Self-Oscillation:
On the oscilloscope you won't see much Resonance ringing on top of a squarewave in Lowpass mode. I've noticed this with all 3 Korg filters I built so far. Maybe one little sinewave bump on the top left corner of a squarewave but it's not like the ARP or Steiner filters where the whole top and bottom of the squarewave is full of Resonance or self-oscillation. (It gets better with lower input levels though.) But in HiPass mode you get much more. However, this is normal for this filter and it still sounds pretty amazing so this doesn't matter.
Beware this filter does not like high input levels! When I feed it 0-10Vpp squarewaves directly from the Digisound-80 VCO it doesn't work right. It is much happier with the -5/+5Vpp levels of the Thomas Henry 555-VCO. It is always a good idea to put an input level potmeter on the audio input of this filter so you can regulate the input volume. You can try to put a electrolythic capacitor between 1µF and 4,7µF on the audio input to block the DC offset voltage of a 0 to 10V signal and turn it into a -5/+5V signal. That should work.
This is a well known characteristic of the Korg MS20 filter. If you increase the level of the audio input you will drown out the resonance of the filter. So you must find a balance between input level and resonance.

6dB vs 12dB.
Although this is a 12dB per Octave filter (2 pole) it is possible to get an output with 6dB per Octave roll-off (1 pole) if you tap the signal from pin 7 of the TL074 (A1 in the schematic drawing) with a 470nF capacitor, just like the normal output. The 6dB however won't work in Highpass mode because the signal is output from the stage before the one where we input the Highpass audio signal.
I have experimented with 6dB and at first I dismissed the option but having recently rebuilt my filter using (vintage) Polystyrene capacitors (and Polyester box caps for the 470nF output caps) it now sounds much better and the 6dB function sounds better too. So I made new layouts which includes the 6dB/Octave function with a switch to give you the choice between 6dB or 12dB. In the rebuilt filter I also used two BC558 transistors that were roughly matched. I'm not sure if this is necessary but it can't hurt. The 6dB/Oct setting sounds more distorted an rough around the edges if you know what I mean. It's a heavier sound. 

LAYOUT:
Below here's the stripboard layout. I made my own version from the ones that are circulating on the internet to which I added the potmeter connections and the audio in and out, CV in, plus the switch connections for Low-, Band- and Highpass with the altered position of the 1nF cap at pin 12 of the LM13700. So with this and the schematics you should have all the info you need to build it right the first time. BTW, the 2 transistors used on the layout below are BC558 PNP's but you can also use the 2N3906 but those have to be put in the other way around. In subsequent builds I used the BC557.

ABOUT THE LED's: 
Make sure you use LED's with a voltage drop of around 1,8 Volts. That means Yellow, Green or Red LED's are okay but do NOT USE Bright white LED's or Blue LED's. They have a much higher voltage drop and won't work well in this filter. Remember the LED's replace the original 3 diodes in series. These diodes have a voltage drop of 0,6 Volt so 3 in series means 3 x 0,6Volt = 1,8 Volt.



(Last revised 7-Oct.-2023 Cosmetic changes to make layout clearer.)

Please note: I did add the Band-Pass option to the layout but if I were you I would just leave it out. But do some tests and decide for yourself.

About the DPDT switch wiring for HP/LP mode: 
Connect the top two pins and the right middle pin of the High Pass/ Low Pass switch together and connect that to the High-Pass input. You could even just forget about the top right pin and bypass it but I thought it was neater to include it. The lower right pin goes to ground. The audio signal goes into the middle left pin, and the lower left pin goes to the Low-Pass input. The Band-Pass switch is simply connected to the Low-pass input and the audio input. If the filter is in Low-Pass mode the BP switch won't have any effect but in High-Pass mode the switch will connect the audio to the Low-Pass input aswell so both inputs get the audio signal thus creating the bandpass characteristic.
A little sidenote about the writing next to the switch in the layout: the HighPass and LowPass marking next to the switch on the wiring diagram reflect the function of the actual wires connected to that part of the switch. A Toggle switch works the other way around. If you flip the switch upwards, the middle and bottom pins are connected to eachother. If you flip it downwards the top and middle pins are connected so on the eventual panel, the switch should have LowPass marked at the top and HighPass at the bottom.  This way of marking the switch functions goes for all the layouts on this website that have switches in them.

Close up of just the stripboard layout (Print this one and use it for your project. The lay-out is guaranteed, tested and verified faultless. It has been used by hundreds of people by now). Don't forget to cut all the copper strips under the IC's.


(Last revised 7-Oct.-2023 Cosmetic changes. Removed colour codes from resistors, added colour coding to wirebridges.)

Cuts and wirebridges as seen from the COMPONENT SIDE! As always, mark the cuts to be made with a black waterproof Sharpie on the component side. Then put a pin through the marked holes and mark them again on the copper side. Then cut the copper at the marked positions with a sharp, hand held, 6 or 7mm drill bit. Check your cuts with a continuïty meter or a powerful magnifying glass before you proceed.


Bill of Materials:


About the components:
I used fairly cheap LM13700 chips I got out of China via eBay and I think I got lucky and got real ones instead of fakes. But play it safe and get your chips from a reputable source.
I used a DPDT toggle switch (Double Pole Double Throw) to switch between High-Pass and Low-Pass but you could also use a jack socket for High-Pass input with a build-in switch that connects C4 to ground when nothing is plugged in there.
The Cut-Off Frequency potmeter in this build is a 100K one, but you can use any type you wish because pins 1 and 3 are connected to the + and - of the power supply so it is nothing more then a voltage devider. I saw that Sam Battle uses a 4K7 pots for this in his layout so use what ever value you want. (Beware that the voltage difference over that potmeter is 24 Volts so don't go too low with the value or you'll fry your potmeter. Remember Ohm's law!)
I don't think the Resonance potmeter is that critical either but you better stick to the schematics for that one. Keep it a 100K potmeter. I used a logarithmic one but linear will work fine too. As mentioned earlier, you can use an LM13600 instead of the LM13700 and instead of the TL074 you can use the TL084 or the LM324. They all work just fine.
I rebuilt the filter recently and used polystyrene caps instead of ceramics. It did make a difference in my filter but the first version I built of this filter was a mess to look at. Building something neat and tidy always makes it work better I found out. So don't expect miracles by changing the caps from ceramic to polystyrene.
One thing that might be worth experimenting with is the 10K feedback resistor over opamp A3 in the schematic. The one by the LEDs. You could put in a 15K trimpot and see what it does if you change the feedback resistance. I haven't tried this yet myself but it might be worth experimenting with.

Here's a picture of the panel I made for it. Because I recently re-built the filter I had one unused mounting hole left in the panel so I put a white 3mm LED in there. It's a bit bright =)


Here's a picture of the insides. Those big brown Mullard 'tropical fish' caps (so called for their colourful stripes) at the top and bottom are just 100nF caps for de-coupling. They're spread out a bit because they're so big. I advise to use polystyrene caps for all the other capacitors although that's not necessary for the filter to work. I just found polystyrene caps to sound better but you mustn't attach too much importance to the use of polystyrene caps. Any type will do.:



DEMO VIDEOS:
Here's a new demo video I recently made. Just trying out the different functions. I had it connected to the 8 step sequencer. It sounds really awesome but it needs a snappy ADSR input and attenuation on the audio input to make it sound like this:.



This is an old test video, made right at the beginning of when I started building modules. It has the Korg filter (in Highpass mode) and the Moog Ladder filter (in Lowpass) in series and using my 8 step sequencer and reverb from the CaraOK effects module:


Sounds quite good doesn't it? Especially with added echo or phase-shift effects. 

WARNING: Beware your speakers!! This filter can oscillate at below audible frequencies and the cones of your bass speakers will take a hell of a beating if you've got some serious amplification going. If ever a filter could be called a 'Speaker Ripper' this one is it. Quite literally. (I added this warning because tonight I almost blew my speakers up with this filter.)

EXTRA DOCUMENTATION:
I want to direct your attention to a very useful page from Scott Stites' website. He talks about all the different aspects of this filter, using two of these filters in tandem and his approach to adding a Band-Pass mode to it. If you want to build this filter, you have to read this text I think.: Click here for Scott Stites website.

Lastly, here's an other very interesting document I found by Sound Semiconductor entitled "Designing Voltage Controlled Filters for Synthesizers with the SSI-2164."
It goes into great detail into how filters work and how to design them and places specific emphasis on the Korg MS-20 filter.

Okay, that's it for this one. If you have any questions or comments then please put them in the comment section below of post them in the special Facebook Discussion and Help Group for this website.
Fun fact: this article is on a solid number two listing of most popular builds on this website, number one being the AS3340 (Digisound-80) VCO. (you know, the really good one.. ^___^  )