Wednesday, 20 November 2019

Synthesizer Build part-4: THE ENVELOPE GENERATOR or ADSR

This was the first Envelope Generator I built but I no longer use this design myself since I discovered the Digisound 80 ADSR and the Yusynth 7555 ADSR both of which are much better designs with the Digisound design also using the AS3310 chip (or the CEM3310). So my strong advise is not to build this particular design. "Why is it posted here then", I hear you ask. Well, because this website is an archive of the synthesizer I built and that includes all the lesser designs too. But you get ample warning if I advise against building. It's mostly the early projects that can be a bit problematic. The design below is simply the datasheet circuit of the AS3310 chip, which is not the best design by a long shot.

Original text of this article:
The Envelope Generator is generally better known as the ADSR which stands for Attack, Decay, Sustain and Release. These are the four phases a note goes through when you press a key on the keyboard. The attack is the speed of the initial rise of the note, once you press the key. Decay is the time it takes for the note to go from the peak attack level to the sustain level. Sustain is the level of the note as you keep the key pressed down. It is usually a bit less loud than the first instance of the note being played. Then we have Release and that is the amount of time it takes for the note to fade out once you let go of the key. So the envelope generator produces a signal that determines the volume of the note over time and this signal is being used by the Voltage Controlled Amplifier (VCA) which interprets it as an output level. In some Minimoog synths it is also called the Loudness Contour.

Now of course the envelope output is a control voltage so it doesn't mean that you need to use it for the above mentioned purpose. You can connect it to anything that can be controlled with a control voltage like the filter cut-off or the resonance or the pulse width of a squarewave. This opens up a miriad of options but let's not get ahead of ourselves here. If you're just starting out with synth building, you need the ADSR to open the VCA and the fancy stuff will come later.

I decided to build this ADSR using the chip series that I plan to use for the most important components of my DIY synth, the AS33xx series of chips. The AS3310 is the ADSR chip and it costs way less then its CEM counterpart. It's about €6,- 

So I looked up the datasheet and used the circuit that was presented there. I made the following stripboard layout for it. This layout is verified, I used it for my build. (All potmeters viewed from the front.):


(Last revised: 16-March-2020: Removed direct potmeter connection to 5Volt. Revised potmeter wiring. Trigger when not used shorted to Gate via internal switch in trigger input socket.)

Print only:



This design works very well and does the job it needs to do. It has a few little quircks though. The potmeters for instance. I used normal linear type potmeter and that works but it would be better to have reversed logarithmic or anti-logarithmic potmeters because the difference between 1 second and 10 seconds on the Release for instance is only a few degrees of turning the knob. But once you're used to this it's not really a problem. The Sustain potmeter is at its maximum at about 2/5th of its maximum throw. If you turn it further the Sustain level rises but the attack won't be able to reach it. So if you have Attack set to, for instance, one second, it will rise normally and after one second it will suddenly jump to the Sustain level. I've got some oscilloscope pictures below to illustrate this.
The external trigger input is normally shorted out through a switch in the Trigger input socket. So if there's no trigger cable attached, the trigger for the chip is provided by the Gate signal through the 3nF capacitor. The AS3310 needs a simultaneous gate and trigger signal to function. So if you plug a cable into the trigger input but you don't provide a trigger signal, the Attack parameter of the ADSR will not work! So this is not a malfunction, this is how it's supposed to work.

I added a few extra's to this design. First there is the option to output a signal that is twice the voltage of the normal output (10Vpp instead of 5Vpp). You can use this, together with a passive attenuator in the mixer panel, to drive a filter's resonance or other parameters of the synth. Then there's also an inverted signal output, to add to the options of driving parameters of the synth. This goes from 0V to -10V.
All this takes place at the opamp on the lower left of the circuitboard. You can use the old favourite TL072 for this or the TL082. Pins 1,2 and 3 together with the two 100K resistors form the 2x amplification. You can use other resistor values as long as you use 2 resistors of the same value. Then the input signal is split at the non inverting input and goes, via a 100K resistor to the other side of the chip where the opamp is set up as an inverting buffer. Both opamp outputs have their own output jack socket. The normal 5V ADSR output is a separate socket (of course).

And finally I added a manual trigger option, at first I added it so I could put a gate signal on the gate input for test purposes, but then I thought this would be handy to have anyway so I added the switch to the final panel. I decoupled the manual trigger signal from the gate input socket with a Schottky Diode so no voltage goes into the circuitry that delivers the normal gate signals so as not to damage it (although this is probably not necessary). I used a Schottky diode because their voltage drop is only 0.2 Volts so it doesn't detract too much from the usual 5 Volt gate signal.

Here's the E.G. mounted in my synth. You can see that I doubled the output sockets. There's 2 outputs for normal 5Vpp ADSR and 2 for either 10Vpp or Inverted -10Vpp I also installed a Gate output and a Trigger output. The Trigger output is connected to the Gate output via a 3nF capacitor and the Gate output is simply switched in parallel over the Gate input. I will however install a opamp buffer for the gate output in the near future.:



Here are some oscilloscope screenshots showing the function of each variable:
This is the normal envelope CV at 10Vpp.


Varying the Decay time:



The picture below shows the quirck I mentioned earlier where the Sustain level is set higher than the Attack can reach and so after the Attack cycle has finished the Decay is skipped all together (because there is no Decay if the Sustain level is higher than the Attack level) and the envelope jumps to the Sustain level. You can clearly hear the jump in volume in the audio. You can use this to your benefit though because it sorta has a percussive quality to it. Anyway, if you don't want this, just turn the Sustain down a bit. Problem solved. You can also limit the maximum resistor value of the Sustain potmeter by adding a resistor or trimmer to pin 3, but you'll have to experiment to find which value works best.



Lowering the Sustain level:



Increasing the Release time:



And finally switching between the inverse envelope (which was set to 0 to -5V in my ADSR but to 0 to -10V in the stripboard layout) and the 10Vpp envelope.



Okay, that's it for this one.
I hope you enjoyed this article and leave a comment please if you found this helpful! Much appreciated! Also, any questions? Put them in the comments or contact me on Facebook. I'm a member of the 'Synth DIY' Facebook group and the LMNC Discussions FBgroup and also the "Synth DIY for non engineers" Facebook Group all under my own name Eddy Bergman.
Stay tuned for more build reports and click 'follow' to be notified of new posts to this website.

Friday, 15 November 2019

Synthesizer Build part-3: TRIANGLE TO SINEWAVE CONVERTER

This article has been re-written at 11-11-2020 and updated in Dec. 2025.

After I had finished the VCO I wanted to add a Sinewave option to it. The first design I had posted here was a bit sketchy so I now present a new layout here. This layout has been made using the schematic of the Thomas Henry CEM3340 Deluxe VCO.
This circuit needs the Triangle input wave to be +/-5 Volt peak-to-peak. You can input a Trianglewave of 0V to +10Vpp but then the input must first go through the 1µF electrolytic capacitor to take away the offset voltage. The Triangle to Sinewave converter will not work properly if you input a 0/+10Vpp Trianglewave without first filtering out the DC offset voltage.

Here is the new stripboard layout. This converter offers a +/-5Vpp output and a 0/+10Vpp output. 


Here is the schematic drawing. I did not include any de-coupling capacitors but if you want to include them then just add two 100nF ceramic capacitors to the voltage rails as close to the chip as possible. One going from +15V to ground and the other from ground to -15V.
If you only need a bipolar output (+/-5V) then you can leave out the two opamps on the right and just tap the sinewave off at pin 1 of IC1-A as shown below, and leave out the 100K resistors and the opamps D and C.

Updated schematic 2025:


(There's also a KiCad version of this schematic further down this article.)
Here are two pictures from the oscilloscope. One without offset from the +/-5Vpp output and one with offset from the 0/+10Vpp output. If you look closely at the pictures you see that the scope is set to 2V per division and therefore that the amplitude of the sinewave is 8V. But now that I changed the feedback resistor Rf, that has changed to 10V (even a tiny bit over):



As you can see they are beautiful sinewaves and you can set the symmetry and distortion very accurately with the trimpots on the stripboard. 
It will be easy enough to mount this little stripboard on one of the M3 bolts used to mount the print of the 'Really Good VCO' and thus add a Sinewave output to that VCO. You can tap the Trianglewave straight from pin 10 of the AS3340 (or CEM3340) chip or from pin 12 of the TL074 quad opamp chip. I think that will be even easier. On those pins the Trianglewave is not yet given a +5V offset voltage so it is still +/-5Vpp and therefore doesn't need to go through the 1µF electrolytic capacitor on the layout of the Triangle- to Sinewave converter. 

Okay that's the new version of this article done. If you have any questions please put them in the comments below or on the EddyBergman Facebook Group page.

UPDATED VERSION OF THE SCHEMATIC Oct. 2025:
Here's the KICad version of this circuit which I used in the Eurorack PCB version of the 3340 VCO of project 18. It works like a charm and it has an extra 1K trimmer at the top of the transistor pair which lets you trim away any offset voltages. (I updated the stripboard layout with this feature too). It has a small range though so you need to make sure the 10K resistors are well matched to eachother. The transistors themselves must also be matched to get the best results. 


Here's a screenshot of the sinewave it produces. A really beautiful symmetric sinewave:


Btw, all the comments below upto August 2020 refer to the original Tri- to Sinewave converter article (which is now deleted) and not to this new updated one. So please disregard those comments as they are not relevant to this article.

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!

Wednesday, 18 September 2019

Synthesizer Build part-1: SYMMETRICAL POWER SUPPLY (1,5A) with independent voltage adjustment.

The essential building block for our DIY synth. with outputs for +/- 15V, 12V and 5V at 1.2 Ampères.

Please scroll half way down the article to find the second version (which is modular in set-up) with stripboard layouts

WARNING, THIS PROJECT REQUIRES YOU TO WIRE UP A MAINS TRANSFORMER. BE VERY CAREFUL WHEN HANDLING MAINS POWER. IT CAN BE DEADLY AS YOU PROBABLY KNOW. IF IN DOUBT ASK AN EXPERT OR POST QUESTIONS IN THE FACEBOOK GROUP. DON'T TAKE CHANCES WITH MAINS ELECTRICITY!!

In Oktober 2019 I set myself the task of building my own synthesizer. I started by slowly buying in the components I was going to need, as my budget allowed (and that wasn't much ^__^).
The first thing I needed for this project was a symmetrical power supply to give me positive and negative voltages, because practically everything in a synthesizer runs on a dual powersupply.
I used the LM317 and LM337 for this project because they are easy to work with and fully protected inside against short circuits and over heating. They also don't drop in voltage when pulling a lot of current from them which the 78** ones can do. The LM3XX series regulators can deliver up to 1,5 Ampères.
This is the schematic I came up with and it works very well: (click picture for full screen view)


(STRIPBOARD LAYOUT FURTHER DOWN THE ARTICLE!)

I based this schematic on the datasheet schematic for the LM317 and LM337. It calls for a 5K trimpot but I used 10K's because that's what I had and it works fine. Afterall you can trim it down to below 5K just as easy, so no problem there. The values of the electrolytic caps I'm using is way over the top compared to the datasheet but it does help stabilize the voltage especially because some modules, like Sample and Holds or Sequencers can pull a pulsed current from the powersupply. Here's a screenshot of the original schematic from the Texas Instruments datasheet:



The transformer you use for this power supply must be about 2 to 3 Volt higher in output voltage than the needed output voltage of the powersupply. There is going to be some voltage drop over the voltage regulators and the diode rectifiers that must be accounted for. However the voltage will also be higher than the transformer delivers when it comes out the diodes so we must also account for that. I find 2 x 17Vac secondary outputs to be about the sweet spot. You can go a bit higher if you like.
In the schematic above you can see that the output capacitors are 1000µF. They don't have to be this big. 100µF will do nicely too. The caps discharge through the 220 Ohm and 10K potmeter when you switch off.
If you need a power supply that can handle more current, say 10 Ampères for instance, then you can easily adjust this circuit by adding a 2N3055 on the positive side and an MJ2955 on the negative side. You can even put more power transistors in parallel over eachother to get even bigger current specs. Move the capacitors that come after the LM3XX's past the transistors but put an extra 100nF capacitor between the base and the null to suppress transients etc. Use Google to find more specific schematics for that, if you need it.

But for a modular synthesizer those alterations are not needed because the individual modules I'm going to build won't draw much current at all. It's mostly in de 20 to 80 milli amps at most. The only transformer that I had that was big enough for this project didn't have a center tap but it had two independent secundary outputs. One at 21V and one at 17V. This was close enough. I connected one wire from each output together to make a center tap and made a circuit board to build the powersupply on. (Make sure when you connect two secundary windings together like this, that you measure the AC output before proceeding with the next steps. If you connect the wrong wires the 2 voltages will try to cancel eachother out. It won't damage the transformer but you won't get any voltage out.) I didn't have etching fluid anymore so I cut different islands on the copperside of the copperclad circuit board I was using, with a dremmel tool with a milling bit. I had an old 25 Amp. Graetz diode bridge in my collection of components and after I drilled all the holes the build was pretty straight forward.
I used little trimmer potentiometers to set the voltage with. Once you set it, you don't have to touch it again but if you want to make it continuously adjustable you can of course use 10K panel mounted potentiometers with a knob. I put some LED's on the output side to indicate that all is working well. The difference in brightness will indicate if the voltages are set differently from eachother. You could also go the luxurious route and use two panel voltmeters to indicate the voltage but as I intend this to power my synthesizer that will not be necessary.
But if you build this as a stand-alone power supply, it would be a good idea to use two meters on the outputs. Beware with cheap Chinese digital voltmeters. They look great but they put a ton of noise on the voltage rails!! Use analog meters instead if you can. They look even better and are noise free.
The power supply as described above outputs between 1,5 and 25 Volts (dependent on the transformer you use) at a maximum current of 1,5 Ampere. If you want a more powerful version you could use the LM3XX regulators to drive a 2N3055 and a MJ2955 NPN and PNP power transistors as mentioned above and then you can draw up to 10 to 15 Amps. Be aware that the pinouts for the LM regulators differ from eachother. The correct pin numbers are noted on the schematic above.
The ripple is very low on the output. It's actually better than some you buy ready made. Make sure the electrolytic capacitors you use are rated 50 volts or higher. (I used 35V ones and that seems to work fine too but don't go any lower!) and make sure they are oriented the right way. Plus on + on the positive side and plus to ground and minus to negative voltage on the negative side. The voltage at the secundary directly after rectification can go up to 10 volt higher than the AC voltage from the transformer. Don't present more than 35V to the input pin of the regulators and be sure to use big heatsinks on both of them.
I've measured the ripple and noise of the power supply using the method outlined by Dave Jones from the EEVblog on YouTube in his video EEVblog #594 - How To Measure Power Supply Ripple & Noise
I used my simple home build 'brute force power load' described in the article from januari 2017 and under a load of 1 Ampere the Ripple Voltage Vrms was 6mV and Vpeak-to-peak was 10mV. Those are very good results.
To further lower the noise floor you can add 100nF caps in parallel over the rectifying diodes.

Here's the stripboard layout for the powersupply. There are minor differences in values and components because this layout is based on an eBay kit, instead of the above datasheet schematic but it works perfectly, I assure you. You can mount the voltage regulators on a single big heatsink but they must be electrically insulated from the heatsink and eachother.

[NB: 11-Sept-2021 I just built one of these again today using this layout and it worked rightaway.]
You can leave the 10µF electrolytic capacitors over the trimpotmeters out. You don't need to include them. I put them in as an added protection for the LM3** voltage regulators but they are not needed. They are also not included in the schematic above.   


I included an L-Bracket symbol to show which part of the stripboard can be used for mounting behind a panel or in a case. The components are quite spread out so you can put them closer together to make the board smaller, I leave that up to you.

Here are some pictures of the first powersupply . As you can see there's some room left on the circuitboard for extra voltage regulators to get other voltages from the same supply:




I added the inductor coil in series with the Ground or Zero Volt pole to suppress any high frequency noise. It's just something I added as a test but you can leave that out.

It's a week later and I finished the power supply as I need it for my synthesizer project. It now has -15/0/+15V,  -12/0/+12V and -5/0/+5Volt. I looks a bit of a mess as my projects usually do but it works just fine. Here's a picture of the finished psu:


[EDIT: This is future Eddy speaking 5 years later. Having built over 60 synthesizer projects which have all been connected to this powersupply I can say it's a solid design. Many a time I have tested a module and had a short circuit somewhere but the powersupply always survived it.]

Obviously you can't plug in all modules in the same holes so I've build a power bus system to which I can connect every module I build. It's a bit crude and I use a lot of hot-glue to stick it all in place but it works just fine and it will all be invisible once the case is ready.



Below you see the connector I build. The pins carry the following voltages: From top to bottom in the pic below, the top 2 pins are ground or 0V. Then I took out two pins and stuffed the holes in the female connector with hot glue. This is to get an a-symmetrical distribution so you can't put the connector in the wrong way around. Then there's -15, -12 and -5 Volt and then we get +5, +12 and +15 Volt. I kept the plus and minus pins as far away from eachother as possible for safety reasons.




Before we continue with part two I want to show you this video which I recently (aug 2026) came across. It explains how a 317 voltage regulator works and how to add some extra's to get the best from your power supply. These extra's have not been incorporated into my powersupply design although mine works just fine, I guarantee it. Anyway, this is a very interesting video so take a look:



PART TWO. SECOND POWERSUPPLY for stage two of my synthesizer.
So, as I'm writing this we're 6 months on in the synthesizer build and I'm about to add a second stage to go on top of the synthesizer I have already built.
So I need a second power supply. The first design as seen above works so well that I'm repeating it for the second stage with a few minor changes. I'm using multiturn potmeters for the LM317 and 337 voltage regulators so I can set them very accurately. In fact, the one I just built has plus and minus 15.00V that's accurate to 1/100th volt. I'm using all LM3xx regulators for this because I have a lot of them and because their voltage doesn't drop if you pull more current from them which is important because otherwise the VCO's would become out of tune. I'm using the same schematic as above and I made separate stripboards for every stage of the supply. Here's the stripboard layout:



Bridge rectifier board. (Don't forget to cut the copper strip underneath the fuses and to tin all the copper strips that carry current.). You can hang more than one voltage regulator print off of the bridge rectifying board as long as the transformer and rectifying diodes can handle the maximum current of the combined regulator boards.


Voltage regulator board. (Again, make sure to tin all the copper strips that carry current). 


(Last revised: 30-Jan.-2021: Corrected connection of negative voltage indicator LED.)


SOME NOTES ON THE DIFFERENT COMPONENTS TO USE:
Don't get confused by Capacitors being of a different value on the stripboard than on the schematic. The electrolytic caps on the Rectifier board are the big ones. They can be 1000µF to 2200µF or even higher and they do the main ripple suppresion. On the regulator board the electrolytic caps can be smaller, like 100µF because the main ripple suppresion has already been done and these are there to suppress noise and such. 100µF is enough for that.
Diodes also. The diodes around the voltage regulators are simply safety valves. Their purpose is to prevent the output having a higher voltage than the input, which could damage the regulator. The circuit will work fine even if you leave the diodes out. You can use any type of diode you wish 1N4148, 1N4001 upto 1N4007. It doesn't really matter. The diodes on the bridge rectifier however must be types that can handle at least 100V and 1,5 Ampères. You can not compromise on those but there are many different types you can choose from so I didn't specify which type number of diodes to use. You can also use a Graetz Bridge Rectifier, that's 4 big diodes in one case. I saw a 1000V/4Amp one for 50 cents on eBay. Those will work fine and they won't even get warm.
Like I mentioned before, the voltage regulators must be mounted to a heatsink. Either use two separate heatsinks (make sure they can't touch eachother) or use one big one for both regulators but in that case you MUST insulate the regulators electrically from the heatsink otherwise you'll get a very short lived microwave oven with integrated laser lights. ^____^
Naturally the voltage regulators do not have to be mounted on the stripboard itself. You can mount them on the backside of a front panel, using that as a heatsink, or on the side of a metal case you're using and then you can wire them up to the stripboard with normal electrical wire. Use your imagination but do make sure the regulators are not electrically in contact with eachother, otherwise, boom!
The LED's are simply there as a visual indicator that the circuit is under power and they are not critical to the working of the circuit, so you can do without them if you wish. Use 15K current limiting resistors with the LEDs though, because lower values can get hot.

Should you have problems like not getting the right voltages out of the powersupply then check your resistor values. Are you sure the 220 Ohm is not a 220K? This has happened on at least two occasions I know of that's why I'm writing it here as a reminder.

Here are some pictures of the finished power supply. Tinning all the copper strips that carry current is important because they get very thin around the holes in the stripboard. 
I've mounted the whole powersupply on a long piece of MDF ready to accommodate the power-bus system I need to build.






I found some very old vintage diodes with a metal case which I think look very cool and they work fine. They are sturdy too because I had some short circuits in testing and the fuse went 2 times but the diodes didn't mind and I use slow fuses too so they did get some current through them.
Use plenty of heat sink compound on the LM's. The electrolithic caps are 1000µF each; all four of them and that's all the capacitance I put in. 1000µF in the rectifier and 1000µF on the output side of the voltage regulators. The rectifier caps have 10K 1Watt resistors over them to make sure the are drained of voltage when the powersupply is switched off. (It's 2K2 in the picture but they were getting slightly warm so I changed them for 10K's)


SIMPLE FIXED VOLTAGE POWERSUPPLY  using the 7812 and 7912 voltage regulators.

Finally I want to close off this article with a very simple powersupply that uses fixed voltage regulators. The 7812 for positive voltage and the 7912 for negative voltage. These can do up to 1,5 Ampères but I wouldn't use it for more than 1 Amp. otherwise they get very hot even with heatsink.
Btw, you must use these on a heatsink too, just like the previous designs, and you must make sure they don't electrically touch the heatsink if you have both regulators on one heatsink. Otherwise you get a short circuit and a lot of magic smoke. The circuit schematics for this one can be found by clicking here

Here is the layout I made for this PSU. It's very small and can fit anywhere. The LEDs are there to indicate if power is present on the outputs. You can mount those in a panel if you make a panel for your powersupply. I always mount leds like this near the ON/OFF switch for the PSU (Power Supply Unit).


(Last revised: 24-Aug-2022: Corrected a mistake where the LEDs were not connected to ground properly, thanks to a observant reader. )

Okay that's it for this one. If you have any questions you can leave them in the comments or post them on our special Facebook Group for this website, where we have a cool little community who will love to help you out.

Sunday, 26 May 2019

ELECTRO-MAGNETIC FIELD DETECTOR.

Here is an easy to build EM Field detector with 4 stage LED strength indication and which has a wide range of applications. This circuit will detect electromagnetic fields and also static electricity. It detects the mains hum on a 240 Volt (or 110V) wall socket or cable without having to touch the object. It is enormously sensitive to any changes of the EM field surrounding it so it could be used to detect lightning (proof is in the video below) or maybe even ghosts. (No video proof of that alas! At least not yet  ^__^ ). Please note: this circuit can not be used as a metal detector.

Here is the circuit (click on image to display full screen):

(Last revised: 02-june-2020: Changed 1M potmeter for 20 to 50K potmeter.)

Parts list:

Transistors:
8 x BC547 

Resistors:
1 x 680 Ohm 
4 x 470 Ohm
1 x 220 Ohm 
1 x 4K7 
1 x 3K3 
2 x 2K2 
1 x 100K
1 x 1M 

Potmeter:
1 x 20K or 50K potmeter (use either a trimpotmeter or a panel potmeter if you're building this into a case.) 

LEDs (3mm):
3 x green, 1 x yellow, 1 x red

Diode:
1 x 1N4148

Miscellaneous:
9V battery clip, 1 switch (SPDT Toggle Switch ON-ON), 1 Bullet conncector for antenna. (optional)

Before I go on with the rest of the explanation, here's a video showing this EMF Detector in action in a lightning storm. In the background audio you can hear the crackle of the lightning on an AM radio I had switched on, and you can see that the meter lights up as the radio crackles and lightning occurs. Sometimes it even detects the build up of the electric field in the air before lightning happens. I'm not influencing the meter in any way. I'm just holding it by the 9 volt battery underneath. Here it is:



I designed this because I always found it a shame that these "everything detectors" or 8 Million times amplifiers never had a strength indicator so you could actually see if and how it's working. So I tried combining two pre-existing circuits and see if I could make them work together and it turned out to work very well. The first of these circuits is this 4 LED signal strength indicator


and the second is this circuit which is the actual detector stage, consisting of the 8 million times amplifier.



You can easily build this on a piece of stripboard.
The circuit needs only 8 transistors (BC547 or 2N3904), 5 LEDs and 11 resistors. The extra (5th) LED is there simply to function as a on/off indicator and could be left out if you so wish. I used 3mm LEDs on this project but 5mm will work too. Don't use LEDs that draw a lot of current though like bright white LEDs or blue LEDs. The circuit is fed from a normal 9 Volt battery.

The sensitivity of the circuit can be changed with the 20K or 50K potmeter. If you're using it like me, without a case, you can use a trim-potmeter. If you're building this into a little case then use a panel potmeter for sensitivity. Make sure there's a grounding point when you build it into a case. Some connector from where you can ground it.

The circuit is very sensitive and it reacts to all sorts of things. If you hold this EMF Detector  near any mains cables it will instantly detect the voltage, I noticed that if you hold it near metal it will detect that too and even in an open space it will sometimes indicate a field even if there's nothing visible there but it's not a malfunction because it will keep indicating on the same spot in the room. 

This meter works best if it is grounded properly, either by connecting minus to a metal case in which you build the meter and then holding it in your hand  or by  grounding it to some metal item (do NOT connect to ground of mains power supply!!!)
Also be aware that this is a very simple design and therefore it can be touchy to changes in the design. If you build it like I did as a simple perf board on top of a battery, it should work fine. If you build it into a case and make a fancy meter out of it, it may not work! Be aware of this. Grounding by using your hand and body as ground works the best.

Here are some pictures of the detector I build:




Enjoy building this awesome little "everything detector" ^____^ oh and hey, while you're here, please leave a comment! That'll be cool! :-)

Wednesday, 15 August 2018

BAOFENG BF-F9V2+ Impressions.

This is just a little overview of my experience with the Baofeng BF-F9V2+ hand transmitter.
[Please keep in mind this review was written in 2018. I don't think this particular model is still available.]
I ordered mine from eBay and even though they're Chinese made transmitters, they all come from the United States. The are sold by Foscam or Baofengradios.us
Beware that since they come from the States, they come with US chargers that don't fit in European or UK wall sockets! (As I am situated in The Netherlands I just soldered on a European wall plug and covered the connections in hot glue and then with electrical tape. Works like a charm and it's safe too.)
I did a check on May the 12th 2019 and couldn't find a listing of these Hand Transmitters anywhere. It seems the BF-F9V2+ models are out of stock everywhere. It seems the new kid on the block is the Baofeng BF-UVS9+. This is the new model for 2019 but it doesn't seem to offer anything more than the older model except a higher capacity battery (3800 mAh instead of the 1800 mAh of the F9V2+), and a newly designed case which does look very cool and comes in 3 colours, black, silver and red.
It's also an 8 Watt model. They call it Tri-Band but they include in that the FM broadcast band on which you of course can not transmit. There are however also models that include the 200MHz range and are true tri-band hand transmitters.

Here's a picture of my BF-F9V2+:



Build Quality and Range:
This is a 3rd generation version of the well known UV-5R series of HT's and the exterior looks exactly like the UV-5RV2+ but it's most distinguishing feature is that it has the 8 Watt RF power option (although it doesn't really do 8 Watt, more on that later). I am familiar with FM transmitters and I know that in order to double your range with any transmitter, the general rule is that you need a 10 fold increase in output power. So I didn't think the extra power would have much influence on the range of this HT but it did have an effect. Not so much a big increase in range but an increase in penetrating power. The BF-F9V2+ has very good penetrating force. I must remark here that the first thing I did when I got this set is remove the original antenna and replace it with an original Nagoya NA-701. That is important because all the consequent testing is done with that antenna! Well, the signal goes through buildings and what have you like a hot knife through butter. For instance, I was underneath an overpass, a kilometer away from my house where the receiver stood (I used a UV 5RE+ with a Nagoya NA-701 antenna as receiver because at that time I didn't have a second BF-F9V2+ and I used a digital voice recorder to record the received signals.) I was inside my car with all windows closed and underneath that particular concrete overpass you're literally below ground level, and still the signal came in crystal clear. I was impressed I can tell you. That would not have worked had I used a normal UV 5R. An other thing I noticed is that the BF-F9V2+ has a better sound quality out of the build-in speaker than the UV-5RE plus. The BF has better low frequency sound. The UV sounds very tinny, with much more high frequency elements in the sound. The BF uses a new chip set with noise reduction features that block out noises caused by signal intensity changes and it also has a tail tone elimination feature.
The unit feels very solid. It's made from industrial plastic and has an aluminium frame inside. The loudspeaker is protected by a metal gauze over which they mounted a black anodized aluminium protection plate. This has a bevel in it which gives a shiny effect when the light hits it. It looks very cool. Also the lettering on the front around the LCD screen has a holographic effect which gives it all the colours of the rainbow if you hold it at different angles. On the back there is a spring loaded belt-clip which is made from plastic but feels very sturdy. It's the same one as on the UV-5R. I think you'd have to misuse it a lot in order to break it. The LCD display is protected by a hard plastic window so you can't touch the LCD screen itself whereas the UV-5R just has the display with the metal case around it. The UV-5R LCD-display is soft plastic and scratches easily in itself, but because of the raised metal edges it hardly ever scratches with normal use. The BF-F9V2+ has a hard plastic window over the display which protects the display but this plastic window is not protected by any metal so it will scratch in normal use. So that's a bit of a paradox. The protective hard plastic window should protect the display underneath from scratching (which it does) but because it is right at the surface of the unit it will scratch over time because things will rub against it. None of this is really important though in my opinion. They are meant to be used and hold up in daily use and they do. All the Baofeng units are very sturdy and excellent value for money.
One tiny thing on the front panel is different to the UV-5R; it's missing the 'Band' button. Leaving that out was a wise decision by the designers, because I don't think anyone ever uses that button. It's not needed because the band is selected automatically when you enter the frequency.
The unit comes in a nice brown box with a 74 page manual for which you'll need glasses with enormous magnifying power to be able to read it. The letters are 0.9 mm high. (Yes I actually measured them ^__^) It is however a very useful manual. It tells you everything you need to know, including how to program it. If you're sensible though, you should get a programming cable from eBay so you can use "Chirp" to program it. For those of you who don't know Chirp. It's free software you can download from the net and which makes programming this unit a breeze.
You can download CHIRP directly by clicking here.

The frequency range is as follows:

65 to 108 MHz (FM Broadcast band, receive only)

136-174 MHz (VHF) I found that it still works as low as 131 MHz and as high as 177 MHz.  You can transmit and receive from 131 to 177 MHz without problems. You can type in 130 MHz on the BF-F9V2+ and it will transmit but it only transmits weird beeping sounds. You can see it's not designed to transmit on frequencies as low as that, but the software does allow you to type it in. If you type in frequencies between 178 and 179 MHz and press the PTT button it just goes on transmitting even if you let go of the PTT button. You need to switch the unit off in order to stop transmission. It works fine up to 177 MHz though.

400-519.990 MHz (UHF) The UHF range is listed as 400 to 480 but goes up to 519.990 without problems. However, I tested the signal on my oscilloscope and it looks more like a modulated AM signal than an FM signal so I wouldn't use these frequencies if I were you. You can type in 520.000 MHz but again the transmission will go on even if you let go of the PTT button and you need to switch off to stop it. It's not designed to go that high. Best keep within the advertised ranges at all the bands.

The 5 bar signal indicator does actually work. It doesn't just go on or off if you receive a signal. It actually shows more bars as the signal gets stronger. This does not work if you press the Monitor Button. Then you just get all 5 bars at once. So there's a working signal strength indicator on all Baofeng HT's  (not just this model) but it's so small you can hardly read it. Oh well. =)

FUN FACT:
Did you know that the ON/OFF and Volume knob can actually be used as a tool to tighten or remove the fastening ring on the antenna connector? If you pull the knob off the radio you'll see 4 little stubs in there that fit inside 4 little notches in the screw ring that fastens the antenna connector. So you can use it to remove or fasten that ring should it come loose.

RF Power:
I measured the output power on a Diamond SX-600 SWR/Power meter with a 50 Ohm Dummy-Load attached as antenna and I measured an output power of 6 Watts on the 2 meter band (VHF) and 4 Watts on the 70cm band (UHF). That is less than advertised but it is still 2 Watts more compared to the UV-5R on both bands which I measured at 4 Watt and 2 Watt respectively.

The BF-F9V2+ with 2 UV-5RE+'s behind it. Note the lettering which changes colour according to the angle at which you hold it. It's the same in outward appearance as the UV-5RV2+.

BF-F9V2+ with the Nagoya NA-701 antenna. This is the antenna that I find the most useful for these HT's. Although the Nagoya NA-771 is a bit better it is also 38 Centimeters long (15 Inches). The NA-701 is 20 cm (8 Inches) long, which is much more practical. The original Ducky antenna is just 14,5 cm (5.7 Inches) and is pretty much useless. Get rid of it as fast as possible.


The inside is Aluminium and the battery is in a sturdy industrial-plastic casing.


Here is the complete manual in PDF form: click here

EDIT: In the recently started conflict between Russia and the Ukraine, I saw a Ukrainian soldier on a news item with a Baofeng UV5-R. It seems they are ideal for communication in close quarter fighting because of their long range, clear sound and long battery life.



That's is it for now, thank you for reading this. I hope you found it useful and if you did, I would love for you to leave a comment. Let me know your thoughts on the Baofeng products!
See you later!