Showing posts with label LMNC. Show all posts
Showing posts with label LMNC. Show all posts

Tuesday, 12 April 2022

Synthesizer Build part-49: 8 STEP SEQUENCER version 2.0

A redesigned version of the 8 step sequencer (project number 8) with external clock input option and offset control that allows you to transpose the sequence upto 3.5 octaves up or down.

-- Please read the entire article before you start building!! --

The sequencer project I posted when I was just starting out on this modular journey has rapidly become a very popular project on my website. I was however never really happy with that design. It was a bit clumsy and it had no extra features and although it worked like it should, it was never as good as I wanted it to be. It always nagged me.
So because it is such a popular project now, and using the knowledge I gained in the three years I've been building modules, I wanted to offer people something better to build. Something that I was sure wouldn't disappoint anyone building it. I'm really happy with how it turned out and I love using it. This is one of the few sequencers that can actually deliver negative voltages if you want to. Because a sequencer doesn't have to be used to make melodies or bass-lines, it can be a modulation source aswell. It really is a step above the basic baby 8 sequencers without using Arduino's. So here it is; the 8 Step Sequencer version 2.0 

A NOTE FOR BEGINNERS: A sequencer does not actually produce any sound itself. It produces a stepped control voltage that can be patched into the CV input of a Voltage Controlled Oscillator and the VCO then produces the actual notes you hear. In a sequencer you can set each of these (8) steps manually to any voltage (and therefore any note) you want within 1 to 5 octaves.

This sequencer has a few advantages over the first one. 
01 External Clocking. The sequencer can be clocked by an external source. In order to make sure this external clocking would work as well as possible I decided to use some of the hex inverters with Schmitt-Trigger inputs in the CD40106 chip (that we use to provide the internal clock signal) as buffers. A Schmitt-Trigger input has hysteresis. This means there's a voltage difference between when the hex inverter flips from on to off. For instance it might jump to off when the input goes over 6 Volt and turn on when the input gets below 4 Volt (remember it's an inverter). That's a 2 Volt hysteresis and this means it will be less susceptible to noise on the external clock signal. This turned out to work just like I hoped it did. I used two of these inverters switched in series so the (external) clock pulse itself is not inverted. I did a test and installed a bypass switch to feed the signal past the two hex inverters and immediately the external clocking stopped working for some signals, proving it's a good solution.
There is one little downside. The external clockpulse needs to be quite high in voltage. A 5 Volt pulse won't be enough. It should preferably be 6V or higher. I tried clocking it with the Behringer RD-8 but it wouldn't work. But when the pulse is high enough in voltage it won't matter what wave shape you use, it'll work.  The Yusynth LFO with sync and FM input was able to trigger it if I used the triangle wave as external trigger. 
NB: One option to solve this problem: You can lead the trigger pulse through the Voltage Processor first and give it a little positive offset voltage. That way it will breach the 6V minimum threshold. 
An other option would be to use an opamp as a comparator so that if the trigger rises above a certain threshold the opamp goes high and low again when the signal trigger goes below the threshold. I found a comparator design that works. You could put this on a tiny piece of stripboard and solder it to the input lug of the external trigger input socket and connect it to the external clock input. I would use a toggle switch to go between internal and external clock in this case. Btw, I have now tested this design and it works provided you connect the 741 chip to positive and negative 12 V as shown in the layout.
The clockpulse will come out with a 180° phase shift but it will be a 0 to +10V pulse.
I used this design for the clock input of the PCB version of this sequencer and it works great. It takes any waveform and changes it into a useable clock pulse. 


I took this design from the input of the Waveshaper project. You can find the schematic in project 60.
I took some pictures of the input (in blue) and output (in yellow) from the scope screen. In the first picture I used a squarewave going in and in the second a triangle wave. As you can see they are both converted into a nice 0-10Vpp clock pulse:




02 CV OffSet. This sequencer has an Offset feature. That means you can transpose the whole CV output chain up or down by as much as 3.5 octaves without compromising the Volt per Octave tracking. With the previous sequencer we were limited in the lowest notes by the voltage drop of the diodes on the potmeters. So it was never possible to get to note C0 which is 0.0833 Volt. But now we can trim the offset down and that will drag the whole sequence down in voltage making it possible to get to the lowest possible notes without screwing up the volt/oct. tracking and without need for special Schottky Diodes. I did use Schottky diodes (which have a voltage drop of only 0.2V) but only because I re-used the old sequencer for this build and the diodes were already soldered to the potmeters.
The offset feature is a game changer for this sequencer in my opinion because we can make really cool basslines or melodies and transpose it up or down without any problems. Naturally the output is not quantized so you won't land on true notes every time when tuning or transposing the sequencer. It's always a good idea to have a quantizer in your rig but they are too complicated for me to build as a DIY project. However, you can buy a eurorack quantizer like the Doepfer A-156 QNT (which I have in my Eurorack system) for €119,- (and that's a dual quantizer with extra options!) On the other hand, without a quantizer we can tune by ear and to what sounds right to us, without being bound by set scales. So there are advantages too to not having a quantizer. I always tune my sequencer with the Joyo tuner which I hacked for modular use (click here for that project.)
The offset feature can also be very useful if you use the sequencer as a modulation source for instance to modulate the filter. You can drag the sequence down so some steps have a negative voltage and others a positive voltage and so create weird VCF responses. 
For those of you interested, the CV voltage (the sequence) goes into the inverting input of the offset opamp and the offset voltage goes into the non inverting input. Then in the second opamp the CV voltage is inverted back to normal again while the offset voltage now gets inverted. That's why the wiring of the offset potmeter is the other way around from normal. The output opamp has a 470pF capacitor over the feedback resistor to suppress little voltage spikes which I could see on my oscilloscope, just like in the Sample and Hold v2.0 project. The 470pF gets rid of that very effectively.
03 External Speed Control. I recently added an external speed control so you can influence the speed of the sequencer with an LFO or ADSR or any other CV source while still being able to set the overall speed with the speed control on the panel. I did this by simply putting a Vactrol over the Speed potmeter. It's really easy to do. Just add an extra input socket and make a Vactrol and connect the LED of the Vactrol to the socket using a 1K current limiting resistor to protect the LED in the Vactrol. Make sure you connect the plus to the audio lug of the socket and not the ground one. Also make sure you test the Vactrol before putting it in. My own Vactrol died on me a few days later but I used a 470 Ohm resistor instead of a 1K and that is too small as a current limiting resistor. Use 1K and a bright white LED. That should work fine for CV voltages upto +10V.
I did not add an attenuator for this function because I ran out of space on the face plate but you could of course do that if you wanted to. Vactrols consist of a Light Emitting Diode (LED) and a Light Dependent Resistor (LDR) wrapped together in some Heat-Shrink Tubing. They are really easy to make. There are enough videos on YouTube that show you how to make them. You can of course also buy them new. Now Vactrols are not very accurate in how they work so you can't set the speed exactly to a certain value with a certain voltage. This feature is meant to influence the sequencer in a musical way, like speed it up every x number of beats, to create some variation.
An other way to vary the sequencer speed is to vary the external clock speed when using an external clock. This would be a more exact option if, for instance, you are clocking the sequencer with an LFO with an external Frequency Modulation input, like the LFO in project 30.
Please only add the external speed control if you think you'll need it, otherwise save yourself the trouble.

SPEED CONTROL and the TUNE/RUN switch.
The sequencer has a speed control potmeter that will go from 1.34 seconds (746mHz) to about 185Hz. If you want that speed to be lower you can add a 4,7µF cap in parallel over the 10µF cap to bring that speed down to about 2 seconds which is slow enough and it will still be able to go very fast too. 
It also has the tune/run feature of the previous sequencer to make tuning each step easier. The old procedure was to just set the speed very slow and then stop the sequencer at each step so you could tune it. Then you would switch to Run to go to the next step and stop it again to tune that one. With this new version you can use the push switch to manually go through the steps to tune them.
I had some problems with stopping the sequencer in the beginning. The sequencer would continue running even after switching it to Tune but the solution was simple. When switched to Tune the clock input must be grounded (which I hadn't done). I used a 1K resistor for that, connected to the switch and to ground. This is why it is important to connect the wire that is in direct contact with pin 14 of the CD4017 to the middle pin of the Run/Tune switch. Otherwise this doesn't work. 

A word about tuning: it's not the easiest thing to tune this sequencer to an exact note due to the fact we have 7 Volt to deal with and a 100K potmeter to set it to an exact note. In the 1V/Octave standard the difference between two notes is only 0,1666 Volt. And between two half notes only 83,3 thousandth of a Volt. That sort of resolution is difficult to achieve with a normal potmeter. However it is not impossible. It takes little touches of the potmeter but, as you can see in the demo videos below, it can easily be done with a little patience and accuracy. This problem goes for all Baby 8 sequencers, not just this one and I use mine a lot and I've always managed to get it sounding really good and in tune. This is also why the CD4017 is powered with 8 Volt. If you gave it 12V the resolution would be much worse.  As I mentioned earlier, you could buy a cheap eurorack quantizer which would help a lot with accurate tuning but that's up to you. Or, an other really helpful tool to have is the Joyo Tuner, hacked for use with modular synthesizers. It's what I personally use to tune my sequencer.

MOMENTARY SWITCH
I had a lot of problems in the beginning, implementing a momentary switch into this design. With that switch you can advance one step each time you push it to switch between channels to make tuning easier. The problem was that I forgot to ground the clock input of the CD4017 when the sequencer is in Tune mode. I made some changes and I connected a 1K resistor to the 'Run/Tune' switch that grounds the clock input. After I had done that I thought I'd try to get the momentary switch working. I connected a momentary switch between +8V and the pin of the 'Run/Tune' switch that has the 1K resistor connected to it. But when I switched to Tune mode it still kept jumping several steps when I pushed the switch. I figured this must be due to contact bounce in the switch. To counter that I soldered a 100nF capacitor in parallel over the momentary switch and that did the trick. Now it works like it should. It's not perfect. Occasionally it will still skip a step randomly but that happens very rarely. Overall it works really well and it's perfectly useable. You can put in a bigger value capacitor like a 470nF if you want to be sure it works perfectly. (The PCB version uses 470nF)

SCHEMATIC:
Here is the schematic for this sequencer. I made it using Photoshop. 
I have only drawn two of the output steps coming out of the CD4017, with the LED, the potmeter and the diode connecting to the CV Rails. You need 8 of those to complete the 8 steps of the sequencer of course. The CV Rails is just a bare copper wire where the outputs of each of the 8 steps are soldered to. From there a wire then connects the CV Rails to the offset opamp on the stripboard.


The addition of the offset feature means that when the sequencer is switched off, there would normally still be an offset voltage on the CV output! I have routed the CV output through the same switch as the one we use to switch the sequencer on and off. So when we switch the sequencer off the CV output is also interrupted. That's why we need a dual pole switch for the on/off.

ALTERNATIVE SPEED CONTROL:
I found a better way to do the speed control on the sequencer. Instead of just a 100K pot and a 10µF cap, use a 500K potmeter with a 10K resistor in series and then use a 4,7µF cap like in the picture below:


This gives a better and smoother speed control. This is not implemented on the stripboard layout so you'll have to make these changes yourself.

The connections of the rotary switch follow one step behind the connections of the potmeters. So step 1 is reset by the pulse from step 2 so be very accurate in that. I got that wrong in the previous version. 
There are two diagrams on the layout below explaining where all connections go for the potmeters and for the rotary switch.
In the schematic I use normal 1N4148 diodes but in the layout they are named as 1N5819 Schottky diodes. Go with the 1N4148 diodes. I only have Schottky's in the layout because that's what was already in there from the previous version of this sequencer. Schottky diodes have a lower voltage drop than normal silicone diodes but now that we have the Offset feature the voltage drop is no longer an issue.
It is totally unnecessary to include transistors in the output steps to feed the LEDs. I just put 10K resistors in series with the LEDs to keep their current draw to a minimum and because opamps don't draw any current at all the LEDs do not pull down the voltage when they are on. The LEDs are fed with 8V from the outputs of the CD4017 and with the 10K resistors they are still bright enough. It is however important that you do NOT use any LEDs that draw a lot of current like blue LEDs or bright white LEDs. Those may draw the voltage of the CV output down. Not only that, in the long run they can heat up the CD4017 so much that it fails. The outputs from the chip can't deliver more than 6.8mA maximum with a 15V power supply. (see datasheet)
(The PCB version runs on +/-12V and uses a 7805 to feed the CD4017 and the potmeters (5 octaves) and it has 4K7 resistors on the LEDs.)
The current draw of this module is incredibly low. The +12V part only draws 6 mA in normal use and with the internal clock at full speed it draws 10 mA. The negative side, -12V, only draws 0.73 mA! That's 730 µA! Regardless of the clock-speed. That's nothing! So you can easily run this module on two 9V batteries and use it as a stand alone sequencer should you wish to do so, and your batteries will last for months. (use 2 batteries to create a dual voltage supply)
The Gate output produces gate signals that are exactly half the length of a single CV step. In other words they have a duty cycle of 50%.

HERE IS A FALSTAD SIMULATION OF THIS CIRCUIT: --- CLICK HERE ---

LAYOUTS:
Below is the layout I made for this project. If you built the first version of this sequencer earlier, then it's really easy to replace just the stripboard with this new one. You only have to make two extra holes in the face plate for the external clock input socket and for the External Speed CV input (or three if you want to include the 'end of cycle' trigger output) and all you have to do is reconnect the old wiring to the new stripboard,
In this layout I connected only the first 3 steps to show you how it should be done. You can easily repeat these connections for the other 5 steps. I did this to prevent the layout becoming a mess of hook-up wires. Follow the numbering in the text at the bottom right to connect the potmeters and rotary switch pins to the correct pins of the CD4017. Of course you could include the left over two pins from the chip to make it a 10 step sequencer but 10 steps don't sound right. Normally you got 4 steps to a beat so 8 steps sounds better. If you do want to make it a 10 step sequencer you will need a rotary switch with 11 positions! Otherwise, if you use a 10 step switch, the CD4017 will be reset at step 9 instead of 10. In case of a 10 step sequencer you don't need a reset pulse because the CD4017 only goes to 10 steps so it will reset itself.
This sequencer is equipped with an ON/OFF switch so you can easily introduce it into a jam session by flicking the switch. That way you can leave it patched up and have it instantly available when you need it. The ON/OFF switch for this module is located behind the voltage regulator and that is done on purpose. If you put it before the regulator the sequencer would shut down very slowly because the 470µF capacitor discharges very slowly. So you would hear the sequence getting slower and slower and the notes going out of tune and fading out if you switched off. With the switch behind the voltage regulator the switch-off (or on) is instantly done. The regulator itself doesn't use any current when not in use and this has the added bonus that the sequencer starts up immediately too if you switch it on.
If you want to include 'Mute' switches for each step then I indicated on the layout the best place to put them (after the diode of each step). If you mute a step there will still be a gate signal for that step present on the Gate output.  

Wiring diagram:
If you don't want to include the External Speed control, just leave it out. 
I show only 3 of the 8 steps in this layout to avoid it becoming too cluttered with hook-up wires. It's already a mess of wires. Just repeat the LED, Diode and Potmeter combinations five more times. The list at the bottom right tells you where to connect each step. This layout also contains an LED pinout diagram.
All potmeters are viewed from the front!


(The connections of the rotary switch follow one step behind the connections of the potmeters to the CD4017. That's why there are two columns of connections on the lower right.)
Please be aware of the wiring of switch 1a and 1b. The switch interrupts power to the CD40106 and CD4017 chip and also the CV output.

THE LAYOUT BELOW IS THE SAME LAYOUT AS ABOVE ONLY THE POTMETERS ARE NOW SEEN FROM THE BACKSIDE! I thought this might be helpful for some people when wiring up the panel.


NOTE: The position of the Gate output wire as I built it here will mean that when you set the sequencer to 'Tune' you won't get a gate signal output if you push the momentary switch. If you do want a gate output when in tune mode then de-solder the wire that goes to the gate output socket out from the stripboard and solder it to the middle pin of the 'RUN/TUNE' switch or to the right hand side of strip L (pos. 22 to 38). That way you'll always have a gate signal when the sequencer moves from one step to the next. I don't think it's necessary to make this change but I just want to mention it here.

Wiring procedure:
When you are ready with the stripboard and ready for wiring, make the face plate first and put all the potmeters, sockets. LEDs and switches in. Then wire up the potmeters with the diodes to the CV rail (a bare copper wire) that connects with a wire to the stripboard. Wire up all the LEDs too. Now loosely connect the stripboard to the faceplate and then you can wire everything up to the stripboard very easily.
The mysterious grey component at the bottom middle is an L-Bracket to mount the stripboard to the faceplate. But you can use any method you want to connect the stripboard to the faceplate. In my build the stripboard is mounted parallel to the faceplate with one M3 threaded stand-off. The wiring also helps to keep it in place nicely.

TIP: You could connect a socket to each of the 8 stages (before the potmeter) and so use this as a trigger sequencer too.

Stripboard only view:
Below is a close-up of the stripboard. The voltage regulator and the big 470µF electrolytic capacitor plus the other two 10µF caps are quite crammed in together on the top left of the board but it shouldn't be a problem. The voltage regulator doesn't even get warm in normal use so it doesn't need a heatsink. You could also use the smaller 78L08 types that look like a TO-92 package transistor. 
You do need the big 470µF cap in there otherwise the pulsetrain could be audible on the voltage rail. In fact, I myself used a 2200µF/16V cap in that position to be on the safe side. (The light blue edges of the caps indicate the negative pole.)


Cuts and Wirebridges:
Below are the cuts and wirebridges seen from the component side. As always, mark the cuts on the component side first using this layout and then stick a pin through the marked holes and mark them again on the copper side and cut the strips by hand with a sharp 6 or 7mm drill bit. That way you have the least chance of making mistakes. Check the cuts afterwards with the continuïty mode of your digital multimeter or a strong magnifying glass.


Bill of materials.  This is a new version including a Vactrol for the external speed option.
In my own sequencer I actually have two Gate Out sockets, just connected together. I found it useful in some patches to have two so order 5 sockets it you want to include that option.


Pictures:
Here are some pictures of the stripboard during the building proces. My stripboard had one little error in it which was spotted by one of our awesome Facebook members and that was that the copper strip connecting pin 8 of the CD4017 to ground had a cut in it. I built it with that error included and strangely enough it worked normally but I have now corrected it. I made an other error in the top picture, the connection to +12V for the TL072 chip has been forgotten. (Holes N-41 and O-41 in the picture below) You can see it's added in the picture below it:




OSCILLOSCOPE SCREENSHOTS:
Here's a picture of the 'End of Cycle' trigger pulse that resets the CD4017. You can see how enormously fast this pulse rises and falls, within 280 nanoSeconds. (Ignore the yellow line above it.) 
In itself it's not too strong a signal so the signal is routed through two of the left over Schmitt Trigger inverters of the CD40106. This makes sure we'll get a strong 8V end of cycle pulse output. 


Here's an example of a CV output sequence with potmeters set to various notes.  As you can see the maximum output voltage is around 7 Volt (or 7 octaves) when the potmeter(s) are fully set clockwise and goes all the way to 0V with the potmeter(s) fully closed and a little negative offset applied. You can easily set or adjust this just by ear. 



And this is a scope image of the clock pulse generated by the CD40106 as it enters the CD4017:



DEMO VIDEOS:
Finally, here's a little demo video showing the sequencer in action connected to a Thomas Henry VCO-555 and the Steiner Parker filter.


If you can't see the video above, here's the link:  https://youtu.be/lcsw4txNoj 

And here's a video of me trying to replicate the intro from Vangelis' Spiral. I always loved that sequence. The sequencer is again connected to a Thomas Henry 555-VCO and the Steiner Parker filter. Plus a little echo from the FX Unit:


To get this sound connect the sequencer CV out to the Exp. FM Input of the Thomas Henry VCO-555 (attenuator fully clockwise). Take the Sawtooth output and patch it to the input of the Steiner-Parker filter set to Lowpass. From there into the VCA and add some echo with preset 59 of the CaraOK FX Unit. Just add a little of the echo. Play with the VCF Cut-off to get the variation in the sound.
To program that pattern, tune your steps as follows:  F2, C2, F3, C3, F4, C4, F5, C5

And finally a test with Vangelis' Dervish-D intro. Make sure you use a fast envelope on the VCA because the notes need to sound punchy.


The note progression for this sequence is: C#3, C#3, C#4, G#3, B3, G#3, F#3, E3

CLOCKING AT AUDIO RATES or the SEQUENCER as WAVEFORM GENERATOR:
I was watching one of Sam Battle's (LMNC) videos and he talked about using a Baby 8 sequencer as a waveform generator. If you clock this sequencer at audio rates you will in fact get an other oscillator with a waveform that is cut into 8 steps (or less) and adjusting each step will change that part of the waveform and with it the overall sound of the oscillator/sequencer. The sequencer is clocked by a VCO so the clock frequency will change with the note you play so it will track over the octaves and the CV out from the sequencer can go straight into a filter.
It's a really fun thing to experiment with. I'll link to the video in question below here, where Sam explains how this works. The video should start at 9:25:

KORG SQ-1
TIP: Finally here's a little tip for all you who want to take sequencing a little further. Buy a Korg SQ-1 sequencer. It costs less than €100,- and will give you 16 steps or 2x8 steps and a miriad of options. This is of course not a module but a stand alone sequencer but it is very small and runs on 2 AA batteries. The case is made of metal and the thing weighs over a kilo! It outputs quantized CV voltages and you can set the voltage range to upto 8V. A lot of performers use an SQ-1 in their live sets. It also works very well with the modular synthesizer I've built from all these projects.
If you want to know more about this easy to use sequencer then just Google "Korg SQ1" or even better do a search on YouTube and you will find a sea of videos on this machine that will tell you all you want to know. 

Okay that's it for the Sequencer V2.0. As always, if you have any questions or remarks about this or other projects please comment below or post on the Facebook Group for this website.


Monday, 30 March 2020

Synthesizer Build part-25: DUAL BUFFERED MULTIPLE with LEDs.

A very practical module that replicates any voltage on the input and splits it 4 ways. Now also in Eurorack size. This is also known as a CV/Gate Expander but it's the same thing. After seeing Sam Battle's version with the bi-coloured LED's I've added a second version of my own with the bi-coloured LEDs because I think it will be in demand.  The version with LED's is half way down this article.

I have finished the case for the second stage of my DIY synthesizer so now I can continue building modules and writing about them here. So the first thing I wanted in the new case was a Buffered Multiple. I have built a number of filters that need a 1V/Octave signal but I only had one output to provide it so I designed this little circuit. You can connect anything you want to the inputs: Audio signals, LFO signals, 1V/Oct. CV, Gate signals, you name it. Any voltage presented at the input is replicated at each of the four outputs and if you need more you can connect one of the outputs of the first stage to input 2 and so get a total of 7 outputs for one input. 
I've added a Eurorack version with LED and, as a bonus, at the very bottom of this article there is a layout for a 3 x 4 Triple Buffered Multiple also in Eurorack format.

This module will work on both +/-15V and +/-12V.  Running it on 15V just means it can handle a bit higher voltages but as the average synth only uses control voltages with a maximum of +/-10V it really won't matter.
This the one module that is always in use in my synth because you always need a multitude of 1V/Oct. signals and Gate signals. It's been in constant use for 5 years now and never had a problem with it. 

Here is the schematic drawing showing one stage. As you can see it's just 4 non-inverting buffers with all the inputs connected together. The module is just two of these on one piece of stripboard. I've put 100 Ohm resistors on the outputs for some extra protection. Because there's (practically) no current flowing these resistors won't influence the output voltage. I've tried 1K resistors but they influence the voltage and bring the notes down by a few Cents. I did a lot of testing on this and 100 Ω is really the maximum. Of course you can use 1K and retune your VCO's but I want to keep it as clean as possible. If you don't feel comfortable with resistors on the outputs you can leave them out all together. In my own version I left them out too and replaced them with wirebridges. The IC's have built-in short-circuit protection anyway.

I've had some kind feedback in the comments of the Buffered Multiple not working right with Gate signals in combination with the Behringer TD-3. The Gate pulse would stay high. The solution was very simple, just put a 1MOhm resistor between the input and the Ground.  This is something I forgot but you must never leave an opamp input floating so there must be a resistor between the input and ground. I've adapted the schematic and put in the 1M resistor on the input. All the layouts are updated too.



To be quite clear because a lot of people miss read this: 
THE RESISTORS IN THE OUTPUTS ARE 100 Ω NOT 100K!!! If you put in 100K resistors you won't get much signal out at all. If in doubt put in wirebridges instead!!

Here's the verified stripboard layout. Just two IC's and some wire bridges and resistors. I recently added de-coupling capacitors for the chips because it was kindly remarked upon in the comments below that they were missing and it is good practise to include them.
Please don't forget to put a 1M resistor between between the input and ground (on both sides). The circuit needs these because opamp inputs should never be left floating. 


(Last revised 25-Feb.-2022: updated the layout and added 1M resistors to inputs.)

Stripboard only. The 100 Ω resistors can be replaced with wirebridges. In fact I would use wirebridges instead of resistors to begin with. I chose 100 Ω because that's the highest value that still doesn't cause a drop in voltage but you can easily do without them and use wirebridges instead. The resistors are there to offer some protection to the chip should you connect a live signal to one of the outputs by mistake, but most chips have internal protection from that anyway:



Bill of Materials:


BI-COLOURED LED VERSION:

Here's the layout for the version with the bi-coloured LEDs:
Wiring Diagram:

(Last revised: 11-feb-2022: added 1M resistor to inputs.)

Stripboard only. 


BOM for the LED version:



Make sure you choose the bi-coloured LED's with two legs and not the ones with 3 legs. They won't work in this set-up. They must be two-legged. You may need to alter the value of the 18K resistors according to the brightness of the LED's you're using but I find 18K to be a nice middle value. Not too bright not too dim either. I've altered my own Buffered Multiple to include the LED function and These 18K resistors work just fine with the Red/Blue LEDs I'm using. But you can use 5K6 if 18K is too dim in your case.
If you take a look at the demo video in the article about the "Really Good AS3340 VCO" you can see this Dual Buffered Multiple at work to the left of the VCO I'm demonstrating.
Below note E1 the Red light, which is positive voltage, doesn't light up but above E1 you can see it light up. The higher the note, the brighter the LED gets and it can handle voltages as high as 15V without problems. Above the lowest 2 octaves the LED shines about as bright as it will ever get. For the blue part of the light the threshold for the LED is higher, about 3,5 Volt. So it will need a tiny bit higher initial voltage to turn on, but that's not really a problem. But for accuracy it's better to use Red/Green LED's because of the lower threshold voltage of the green LED vs the blue one.
I've added 6 times gain to the LED opamp stage so that the LED will start shining at the lowest of voltages. The 510K resistor determins the Gain. The formula for calculating the gain is 1+(510K/100K)=6.1
Of course you could also use two normal LEDs; one for the positive cycle and one for the negative cycle. It's up to you.
The extra gain of the LED output stage works very well in practise. The LED has quite a good range in brightness and thus gives a good indication of the strength of the voltage present on the outputs.

Here's the schematic for the LED version. I've connected it to output 4 of each of the two sides but you can choose any output that's convenient. Because the LED is buffered it takes no voltage away from the output. This schematic drawing shows only one side because the second side is identical to this one.


This module is very useful to have in your setup because sooner or later you're going to need at least one of these, just like you need at least one mixer/passive attenuator.

Here are a few pictures of the finished product. I made a little L-Bracket (also visible on the layout) so I could mount the board at 90° to the panel.


This is the version with the LED's installed. The right LED is displaying the voltage of the Gate signal which is +5V. The left LED is displaying the 1V/Oct signal which is a bit lower and thus the LED shines a bit dimmer.


The print up close. As you can see mine has more wire bridges because I forgot that some connections can be made directly under the IC. So I did it the hard way. The first picture below is the original module without LEDs. The second one is after I converted it and added the LEDs.


Because I added the LEDs later I had to use some jumpwires on the stripboard to connect it all together.



EURORACK VERSION.
Single buffered multiple with one input and five outputs.
This is one I recently built for my eurorack case. It has 5 outputs because I added a dual opamp for the LED and that uses only one side so I had an opamp left over which I added to the outputs. I used 68 Ω resistors from the outputs to the sockets to give the opamps a little bit of protection should a signal carrying cable be plugged into an output by mistake (opamps don't like that). I didn't use IC sockets for this build because I've run out of those. I soldered the IC's straight in but that works fine and it also means bad IC-socket contacts won't be an issue so it makes it more reliable.

This layout is verified.


Here's the schematic. It's more or less a copy of the above schematic and I've put in the Bi-Coloured LED section with the 2nd opamp of the TL072. I lowered the value of the output resistors a bit from 100 Ohm to 68 Ω to be absolutely sure there's no voltage drop but you can use wirebridges instead of resistors too. The output resistors serve as a short circuit protection but opamps have that protection built-in nowadays. If you want de-coupling caps then put some 100nF ceramic caps over the power pins of the chips to ground as seen on the layout.


Here's the Bill of Materials for this version. The list has 100 Ω resistors instead of the 68 Ω in the schematic. Either of the two will work fine, even wirebridges work fine:



Here are some pictures of the finished eurorack module. It's 6hp wide (3cm) and 5cm deep. I used hot-glue to connect the stripboard straight to the back of the panel and next to the output sockets to which the stripboard is also glued for some extra support. Works very well and it's very sturdy. I soldered the power lead straight to the stripboard and also secured it with some hot-glue. 
 



As you can see in the last picture there's one ground wire going through all the ground lugs of the sockets and the cathode leg of the LED. From there a copper wire connects it straight to the ground of the circuitboard. Don't rely on the conductivity of the metal front panel for grounding. Always connect socket grounds with wire to the circuitboard.

TRIPLE BUFFERED MULTIPLE.
As a little bonus for you, here's a Eurorack friendly version of a Triple Buffered Multiple. So 3 inputs and 12 outputs in total (no LEDs). If only one of the three inputs is used the signal comes out of all 12 outputs. If you use more then one input the signal gets divided up over the outputs. (See text on layout).
This module will run fine on either dual 12 or 15V so also useful for Kosmo sized systems.
If you want LEDs on this module you can choose to connect a Bi-Coloured LED to outputs A4, B4 and C4 and mount the LEDs next to those particular sockets or leave those 3 sockets out. The LEDs will probably pull down the voltage a bit on those outputs (but not on the rest.). Use a 15K resistor as a current limiter in series with each of the LEDs. Add decoupling caps if you wish over the powerrails nearest to each of the chips. A 100nF from + to ground and a 100nF from ground to - for each chip so 6 caps in total. There's enough room for that above each chip. You can use normal ceramic type caps.


I left in 6 empty strips at the bottom so you can hot-glue the stripboard to the back of a Eurorack panel and use the side of the sockets for extra support, so the components will stick out above the sockets (or below the sockets, which ever way you look at it ^___^). If you have an other way of mounting it and don't need the extra empty space then just saw it off.  

Okay, that's an other one done. Number 25! A bit of a milestone for my synth build :)
If you have any questions or comments just leave them in the comments below please. 

See you on the next one!

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.