Showing posts with label lookmumnocomputer. Show all posts
Showing posts with label lookmumnocomputer. Show all posts

Wednesday, 12 February 2020

Synthesizer Extra's No. 01: SIMPLE AD/AR using the 7555

A fantastic little AD/AR envelope generator that is super easy to build and works very well.  Perfect little adition to the DIY synthesizer.

I was looking for a better AD/AR design than the one I had built and used upto now and I came across the Thomas Henry design. Here is the schematic.
This design uses the CMOS version of the NE555, the 7555 and it can be built on a piece of stripboard that is the same size as the LMNC version that I first used.

If you're new to all this; AD/AR stands for Attack Decay/Attack Release. It's a little Envelope Generator creating a control voltage that can open and close a Voltage Controlled Amplifier (or you can drive a filter with it. There are lots of options.)
In the picture below is the stripboard layout I made for it. I added all the features that Sam Battle has in his design, like the Arcade push-button with internal light and I added a little thing of my own, an option to double the output voltage of the Envelope from 0 to +5V to 0 to +10Vpp. I always find it handy to have a bit of extra charge on the envelope if I want to use it to control a filter for instance. You can of course connect a potmeter to the +10V output and so turn the output amplitude up or down from 0 to 10V. That way you can do away with the +5V output altogether. Since I already made and wired up the panel for this, I couldn't use the potmeter option. I simply exchanged the old stripboard for this new one and soldered all the wires back in place. You can also wire up the opamp in such a way that it inverts the envelope. That would be easy enough to do. As a final extra I put in buffer stages for the envelope output, for both the +5V and the +10V output. You could also wire one of those up to be an inverter. Lots of options here. One thing that is different from the LMNC version is that the Arcade Push Button won't work as long as a key is pressed down. The Gate signal has priority in this design.

The layout below is an early version and although it works fine, it is a bit messy. So I made a new layout which you can find a bit further down the article. I'm leaving the old one up in case someone who built it needs to reference it for troubleshooting or something.

SKIP THESE 2 LAYOUTS AND GO FURTHER DOWN TO THE UPDATED LAYOUTS TO BUILD THIS PROJECT.

Beware if you are using standard 24 x 56 holes stripboard, that the layout only goes from A to U not to X. So only 21 strips!


(Last revised: 1-March-2020: Changed attack and release pots from linear to logarithmic. 4-Oct.-2021: Cosmetic changes to layout.)

Here's a close-up of just the stripboard:



Bill of Materials:



Here's a look at how fast this little AD/AR is and it is super fast! It reacts to the Gate signal with practically no delay what so ever as you can see from these scope images. The risetime is about 12 µSec. The same as the risetime of the Gate signal (Gate = yellow, AD Out = blue). The gate signal has a bit of a skew in it half way up. That's due to some circuit specific stuff elsewhere in the synth but not really relevant because we are zoomed in so much it's practically instant. I mean, it's 12 millionth of a second in total:





UPDATED LAYOUT:
I made an updated version of the layouts above. I built it and changed the old one for this new one and everything works as it should so it's verified.  In the previous layout the output stages and 0 to 10V is a bit clumsy, although I guarantee that it works fine! The layout below is just a bit neater because I gained some knowledge over the past year and applied it here:


Beware if you are using standard 24 x 56 holes stripboard, that the layout only goes from A to U not to X. So only 21 strips instead of the usual 24!


SCHEMATIC:
Here is the schematic for this version. As you can see I added two buffers (which is a bit overkill but I wanted to use all the opamps available) and one opamp with a gain of x2 to get a 0 to +10V output. The buffers help to prevent this AD/AR from 'hanging' if you use it with inputs that have a bit of a low impedance (see text below). Both outputs are connected to a switch so you can choose between them. You could of course connect sockets to both outputs, instead of the switch and have two outputs permanently available, a 0 to +5V and a 0 to +10V. That's up to you.


The AD/AR works as follows: In AR or Gate mode, the Attack remains high for as long as you keep the key on the keyboard pressed down. After you let go the Release kicks in and the signal will fade out in the time you have set with the Release potmeter.
In AD or Trigger mode the Attack/Decay cycle still needs to have been completed before you can trigger it again but as soon as the Attack cycle has been completed the Decay kicks in, regardless of whether the key is still pressed down or not. For fast trigger sequences the Attack and Decay need to be set to short times because it won't trigger again until the cycle is completed, and that's perfectly normal.
So with the Attack a tiny bit open and Decay/Release fully closed you get a powerful envelope pulse of either 5V or 10V depending on how the switch is set.
In Gate mode you can have both Attack and Release fully closed to get fast short envelope pulses as the video below will demonstrate.
If you build this circuit with separate inputs for Trigger and Gate, and you feed it both at once, the Gate signal will take priority.

Here are some pictures of the stripboard using the new layout. I had made a mistake at first because I forgot this layout only had 21 strips instead of 24 so I made some cuts in the wrong place. That's why I placed the warnings with the layouts. And that's why there are some horizontal wirebridges in the lower ground strip (bottom black line).





12V vs 15V:
A little word on operating this from a dual 12V power supply. It will work but you'll need to change one resistor at the output. (R7 on the schematic). The 2K2 (R7) becomes a 3K3. This is necessary to give pin 6 on the 7555 the correct threshold voltage. I myself put in a 5K trimpot for R7 so I could experiment with the threshold voltage. It turned out that changing the resistance value of R7 mainly influenced the amplitude of the Envelope. In other words, you can set the initial envelope voltage with it. So after I learned this I took the trimmer potmeter back out and put in a 3K3 resistor.

The 'hanging' issue:
Because the resistor voltage divider at the original output influences how this AD/AR works I decided to add some extra buffer stages at the end, to stabilize the working of the circuit. I noticed that impedance differences, when connecting it to certain filters in my synth, can make the AD/AR hang sometimes. The release won't activate like it should, probably because the threshold voltage on pin 6 is disturbed somehow. I didn't want to rebuild the whole stripboard so I used a little piece of stripboard with just a single TL072 on it and buffered the +5V aswell as the +10V outputs. I stuck it onto the main board with hot-glue. It now works perfectly. No hanging or anything. I incorporated these buffers on the stripboard layout so they are now part of this design.

This design works a lot better for me than the LMNC one. This AD/AR reacts to trigger signals with an amplitude of +4 V and upwards and gate signals from +1.8 V and upwards with a maximum frequency of at least 60Hz. For triggering to work well, you need to open up the Attack a tiny little bit. The circuit is so fast that the envelope pulse shuts off before it has time to reach full potential. I tried different things to fix this little issue but I wasn't successful upto now. Anyway, it's nothing serious having to turn up the Attack a tiny little bit when using Trigger pulses. When you use Gate signals there's no problem.
I do strongly advise you use a logarithmic potmeter for the 1 M Attack potmeter. I used a normal linear one first but had trouble setting short attack times accurately. I've now put in a logarithmic one and it makes a world of difference. Works so much better. I really need to change the Release potmeter into a Logarithmic one too. That would make it much easier to dial in the Resonance or Cut-Off frequency when I use this to activate a filter. For the 4,7µF capacitor you can use a normal electrolythic capacitor. You don't need to use a Bi-polar capacitor in this circuit, unlike the LMNC one. You can put in extra electrolythic capacitors in parallel with the 4,7µF cap. to stretch the Attack time to the maximum length you want. I put in a 3,3µF and two 1µF caps for a total of 5,3µF which gives me almost 10 seconds maximum attack time. If you need longer Attack times just put in a 10­­µ­F cap.

Here are some technical specifications:
Minimum Attack time: 692 µSec
Minimum Decay time: 248 µSec
Maximum Attack time: 6 seconds with 4,7µF cap.  9 seconds with 5,3µF (which is what I installed)
Maximum Decay/Release time: ±30 sec.
Maximum input pulse frequency: ±60Hz

Here's a link to the Electro-Music Forum page that deals with this design:
http://electro-music.com/forum/topic-61297.html

Here's a little demo video of this AD/AR in action:




This second video shows one way of using the AD setting (trigger mode) of the AD/AR to control the cutt-off frequency of the ARP2600 filter. The Attack is fully closed so the instant a key is pressed the envelope voltage opens up the filter and then the Decay sets in and slowly closes the filter off as the envelope voltage fades down to zero. Watch the big blue light and listen to the effect on the sound.



The LED inside the Arcade push-button is connected to the +10V envelope output with a 4K7 resistor. It shines nice and bright. There's also a yellow LED on the panel between the input and the output. That one is connected to the output jack with a 1K resistor. It shines normally when you use +5 V out and extra bright when you use the +10 V output level. This is just a handy indication of how the output switch is set. It also reacts faster to pulses than the LED inside the push-button so it's a better indicator for that too. The LED was already built in so I thought I might aswel use it like this. :)
The Arcade push-button switch, which is the manual trigger, is fed with half the positive rail voltage (+7,5V) by means of the voltage devider formed by the two 68K resistors. I thought that was better than giving it the full whack of the +15V rail voltage. You can of course use other values for these as long as they are both the same. If you want to feed the switch with a different voltage then you can calculate that voltage as follows: Say R1 is the resistor coming from +15 V and R2 is the resistor going to ground. V = 15/(R1+R2)*R2
The arcade push button will not work as long as a Gate signal is present!!
Gate takes priority over manual trigger, just so you know that.


Okay, conclusion time: This design is a big improvement over the LMNC simple AD/AR and I can highly recommend using it. It works very well with patches where you feed it a fast trigger signal to control drum modules for instance. The switch which lets you choose between +5V or +10V output works perfectly fine but if you want more control just build it with the output controlled by a potmeter like I mentioned before. I do recommend you include the extra buffers at the end. They will insure that this AD/AR works perfectly under any condition. The only tiny little down point is that in Trigger mode the Attack needs to be a tiny bit opened to get a full envelope pulse. With Attack fully closed in Trigger mode, the pulse you get on the envelope output stops so fast that is doesn't have time to reach the full voltage potential. You could say it's too fast for its own good. You can see this happening on the oscilloscope. You get really fast pulses that don't reach the full voltage before they're cut off again. In Gate mode you won't have this issue and it works just perfectly. I really like this design and I highly recommend building it.

Here's a picture of how I added the buffer stages by glueing on a little print with a single TL072. This saved me from having to rebuild the whole thing.



Finally, for my own record keeping purposes, here's two pictures of how the finished synthesizer now looks, with two new VCO's and the Envelope Follower and the little oscilloscope of course:




Okay that's it for this article.
This article isn't really part of the synthesizer build itself so I named it 'Synthesizer Extra's'.  That's the header I will use for articles describing enhancements and changes to the original synthesizer that I build in the past 19 articles.
If you have any questions please leave them in the comments or post them on the special Facebook Group for this website. Okay, see you on the next one.


Sunday, 29 December 2019

Synthesizer Build part-14: AD/AR Envelope Generator.

An updated/slightly improved version of the LookMumNoComputer simple AD/AR.  Improvements suggested by Sam Battle himself.

This Envelope Generator is a fantastic little extra to put in your synthesizer. It's always handy to have a few extra envelope generators in your synth to trigger filter responses or other parameters. I built a 'proper' ADSR a few pages back and this simple version is just perfect to have as extra. I found this on the LookMumNoComputer website and Sam has also done a video about this on YouTube which you can watch here:


Because the LFO from the last blog post didn't have a synchronization input I needed something that could trigger a filter response when I pressed a key on the keyboard so I decided to build this. I had just enough room left on the panel for the LFO to include this and it only needs a small bit of stripboard to build it up on.

Here is the layout that I made, which is just a copy of the one on the LMNC website but with a few changes (see text below. All potmeters viewed from the front.):



AD stands for Attack and Decay, this is when the switch S2 is in the Trigger position. That means there is no sound after you let go of the key. AR stands for Attack and Release and this is when S2 is in the Gate position and now the tone will fade out after you let go of the key.
It's fun to build it like Sam does in the video with a big arcade button with an internal LED light.
It's pretty straight forward build. In fact, it's so simple that I didn't even test it before building it in and luckily it worked straight away. It didn't work perfectly though. It needed pretty high voltage Gate signals and Triggering didn't work at all. There was a discussion about this on the LMNC Circuit Discussion Group Page on FaceBook and it turned out that Sam had advised to lower 3 of the 100K resistors to 10K and an other suggestion was to remove the diode from the input to the switch and make it a normal wire connection. I implemented these changes in the stripboard layout but I left the diode in place. I also advise to put in a bigger capacitor than mentioned on the original layout.  I was lucky enough to have kept some bi-polar capacitors that I took out of some circuitboards years ago because they came in very handy in this build. On top of the 1µF cap I put an extra 2,2µF bi-polar cap to get 3,2µF in total. (put in 5µF if you can) That gives a bit more time for the release to fade out. With just the 1µF it fades in just a few seconds.
Because I mounted this on the same panel as the LFO I was able to just connect the power leads to those of the LFO stripboard because they both use + and - 12 volt. So no need for an extra power cord and connector. This circuit can also be powered by +/- 15V.

Now, if you want something that is just as small but works a lot better then I can refer you to my 'Synthesizer Extra's No:01 SIMPLE AD/AR using the 7555'

This article is about the Thomas Henry designed AD/AR from 2014. He used the 7555 and his design works very well.

Okay, that's all for this one. If you have any questions about this or other builds on this website then please put them in the comments and I'll answer them asap. And while you're here, leave me a comment anyway!
Until the next one!

Thursday, 7 November 2019

Synthesizer Build part-2: THE VCO

A word in advance: this article deals with the first VCO I've ever built and is based on the datasheet schematic combined with the LookMumNoComputer lay-out for the CEM or AS3340 chip. I personally had great trouble getting this VCO tuned over a wide range of octaves.  I could also never get really deep notes from this design. I have since found a much better VCO design so if you want to build a simple but excellent working and tunable VCO on stripboard I refer you to Synthesizer Build part-18: A Really Good VCO design.

I'm keeping this article up for my own archive and as a warning for those just starting out not to build this VCO!!!
Here's the original text for the first VCO build:
After having constructed the power supply and the power bus system it is time to move on to the next step. The Voltage Controlled Oscillator. I'm not going to go into details as to how it works etc. There's plenty info online about that.  In order to make this a complete build, not just the circuit board I needed something to mount the knobs and in- and outputs on. So I ordered a sheet of Aluminium, 200 x 1000 X 1.5 mm and powder coated gray/black on one side. That is fantastic stuff to make panels out off and I highly recommend it. You can saw off panels of the right width using an electric jigsaw with a fine toothed metal saw. Make sure you guide the saw with a straight piece of wood or metal to get nice straight panels.

For my VCO I chose the AS3340 chip which is a complete 1 volt per Octave VCO in a chip. It's a clone of the CEM3340 which were used in the 80's in synths like the Prophet 5 the Roland SH101 and many others.
The VCO we're building here will have almost all the options that the AS3340 chip has to offer and those we didn't include are not worth having anyway ;)
The schematic I used is pretty much just the schematic that comes on the datasheet.

This is the one I used:


I used the layout made by Sam Battle, from LookMumNoComputer and did a few enhancements on it. (Look to the one on the right).


For one, his layout is meant for the CEM3340 which uses a 10K pulldown resistor on pin 4, the squarewave output. For the AS chip, that's supposed to be a 51K resistor although I'm reliably informed it doesn't make a blind bit of difference what you use here. There was also a mistake in his design, namely the 10K resistor in the bottom left near the TL072. It is switched in parallel with the 10K on pin 4 making the overall resistance 5K. Just leave the bottom 10 K resistor out.
The 10K trimmer potmeter at the top left of the 3340 needs to be a multiple turn potmeter so you can set it very accurately.

Sam's layout doesn't include the High Frequency Tracking but you really need to include it in your VCO. I first build it without and at first it seemed to work fine but after having completed the whole synthesizer I couldn't get really deep bass tones out of it. That is until I included the High Frequency Tracking. Seems a paradox that something meant for High Frequency adjustments can have so much influence on the bass notes but if you look at the schematics you can see that it pulls the CV voltage on pin 15 down to ground a bit through the 20K potmeter. I kept out the 360K resistor between +15V and CV input because that kicks the VCO into really high notes. I don't know why that resistor is there but it really screws up the frequencies. I left it out but maybe I should have experimented further with that resistor in place. Anyway...
The HF adjustment pot only adjusts about half a note over its full throw so when you first test it it might look as though it doesn't work but it does when you start tuning the higher octaves of the VCO.

Furthermore I gave the buffer for the triangle wave a gain of 2 by adding two 100K resistors to the TL072. That gets the level of the triangle output up to 10V peak-to-peak, in line with the output voltages of the other two waveforms. Btw, you can use any resistor value between 50K and 1M for this purpose as long as both resistors have the same value.

I also added the Positive and Negative Hard Sync options from the Digisound 80 Modular design so that's also available on this VCO.

Here is the layout that I drew and used:


So there we have it. It's become quite a comprehensive VCO with lots of options.
I added a 100K resistor to the +15V input of the Pulse Width Modulation potmeter to get it to work over the complete throw of the potmeter and I added a switch to have the ability to decouple it from the PW Control Voltage if you have PWM controlled by an LFO for instance. You don't have to decouple it but the option is there.

I tested the finished print and everything worked as expected but there was a funny quirck in the squarewave output. Below 1.35kHz there was a strange triangular wave ringing on the downward slope of the square-wave. Here's some pictures of that from my scope:



I opened a discussion about this in the Synth DIY Facebook Group and there were many suggestions but I still haven't figured out the cause. It's not a de-coupling issue anyway.
I suspect that leaving out the High Frequency Tracking I mentioned earlier may be the cause. (Note: I did some more tests and it turns out that it does have a big influence on this issue. Including HF Track with the 360K resistor to +15V almost gets rid of the problem but on low frequencies there still is a bit of ringing on the downward slope but not nearly as much as now.
But as I mentioned before, the 360K resistor really screws up the frequency response so it can not be included. I have heared that there might be batches of chips that have this fault, so it might be the chip. I don't know and don't really care because you don't hear it and everything works fine.

[Edit: In the second VCO I built and now use (see article 18) this ringing is still there but it is much less then in this design. The new VCO has at most 3 spikes in the downward slope of the squarewave. Anyway it has proven to be not a problem what so ever. You can't hear it and it doesn't affect the working of either VCO in any way.]

Although the connection is there in the layout, I did not use the Soft Sync input on my final build. I don't think I'll need it. I did use the FM input. You can connect a second VCO to that for instance.
Here's a look at the finished product, panel and all. The powder coated Aluminium was a great choise and looks so cool. It doesn't scratch easy at all, it's perfect for this project.




I'll explain what's on the panel.
We have the FM input at the top left. The big knob at the top is the Coarse Tune potmeter, below that on the left are the CV1 and CV2 inputs and on the right are the Triangle-, Ramp- or Sawtoothwave and below that the Squarewave outputs. ( I always put inputs on the left and outputs on the right.)
Then there are three inputs to the left of the blue knobs. Those are the Pulse Width Control Voltage input, the blue knob next to it controls its level. Underneath that are the Positive Hard Sync and Negative Hard Sync inputs. The bottom blue knob is the Manual Pulse Width control if you don't use a control voltage. The switch with the diode symbol let's you choose to put a diode in the external Pulse Width input line which de-couples it from the internal PWM control or to bypass that diode and get more range on the PWM control knob. [edit] I have since scrapped this idea and I took out the diode. The switch is now used to turn off or on the manual Pulse Width Modulation potmeter as described above. (It's not necessary but the switch was there so might aswel use it for something). I added one more output which isn't in this picture and that is a "CV out" function to connect the second VCO to the first one. It's simply switched in parallel with the CV-1 input.


Okay, that's it for this one. If you have questions or suggestions please write them in a comment. Next part will be about a filter, probably the Prophet One Low Pass filter.
Stay tuned!