{"id":389,"date":"2017-01-08T16:47:13","date_gmt":"2017-01-08T16:47:13","guid":{"rendered":"http:\/\/bassett.me\/mike\/blog\/wordpress\/?p=389"},"modified":"2020-06-17T16:57:24","modified_gmt":"2020-06-17T15:57:24","slug":"analogue-function-generator","status":"publish","type":"post","link":"https:\/\/bassett.me\/mike\/blog\/wordpress\/electronics\/analogue-function-generator\/","title":{"rendered":"Analogue Function Generator"},"content":{"rendered":"<p><a href=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Finished-unit.jpg\"><img loading=\"lazy\" class=\"alignnone wp-image-437\" src=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Finished-unit-256x300.jpg\" alt=\"\" width=\"450\" height=\"528\" srcset=\"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Finished-unit-256x300.jpg 256w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Finished-unit-768x902.jpg 768w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Finished-unit-872x1024.jpg 872w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Finished-unit.jpg 1500w\" sizes=\"(max-width: 450px) 100vw, 450px\" \/><\/a><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">Every electronics lab needs a function generator! <\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0<\/span><span style=\"color: #000000; font-family: Calibri;\">The one describe here, when fully built, produces sine, square and triangle waves at a range of frequencies from about 0.25Hz up to about 160kHz. A symmetry control is available which will vary the slope on the triangle wave and the ratio of the square wave; it also does strange, but predictable, things to the sine output. If the full unit is built, then the output will be up to about plus or minus 6V and capable of supplying about 200mA; though the continuous power is fairly small so it cannot supply the full voltage and current simultaneously for very long but you can apply a heatsink to extend this capability. <\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0<\/span><span style=\"color: #000000; font-family: Calibri;\">The OPA551 amplifier used as the output does however have thermal and current limits and a signal output for when they are exceeded.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Nothing is calibrated but there is space on the control panel to put stickers for your favourite settings.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">Most of the parts are available from CPC Farnell and the prices given are approximate as of 2016.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Some of the lower cost parts are only available in small bulk but the excess components are generally useful for your bits\u2019 box.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">The nuts, bolts and washers I got off amazon from Connex, part numbers DP8500055 and DP8500056.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">One is a kit of nuts and bolts and the other of washers.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">These kits are both very useful and a worthwhile addition to your bit\u2019s box.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">They cost about \u00a35 each with p&amp;p about the same.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">The unit is built on a custom printed circuit board which you will need to have made up.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">There are several manufacturers providing a range of services.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Some will provide 1 board quickly and some 10 boards slowly but all cost roughly \u00a330.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">So if you want 10 boards and don\u2019t mind waiting about 4 weeks you buy your boards from China \u2013 I use iTead.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">If you want one board quickly you get them from Europe \u2013 sometimes within a day or two.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Whichever service you use you will almost always require the Gerber files.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">These are a set of several text files which describe in detail how your board will be created, layer by layer.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">I used Eagle to create my design and having tried several other circuit design programs this is my preferred one.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Possibly due to reading Simon Monks excellent book on the subject.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">I hate re-inventing the wheel and Simons book describes the whole process exceptionally well.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">There are 2 templates included which need to be printed to scale so that the control panel width is 165mm and the height is 210mm and the holes in the IEC C14 connector are 40mm apart.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">If printed to a scale of 100% this should be right.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Do not be tempted to print once and photocopy the second unless the photocopy is a better size in which case use 2 photocopies.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">The front panel template is used twice and if both templates are not exactly the same size it won\u2019t work correctly.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Photocopiers rarely produce an exact scale copy.<\/span><\/p>\n<h2><span style=\"color: #2e74b5; font-family: Calibri Light; font-size: large;\">Tools you will need<\/span><\/h2>\n<p><span style=\"color: #000000; font-family: Calibri;\">You may have several of these from previous projects.<\/span><\/p>\n<ul>\n<li><span style=\"font: 7pt 'Times New Roman'; margin: 0px; font-size-adjust: none; font-stretch: normal;\"><span style=\"color: #000000;\">\u00a0\u00a0 <\/span><\/span><span style=\"color: #000000; font-family: Calibri;\">Soldering iron and solder.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">15 or 25 W iron should do.<\/span><\/li>\n<li><span style=\"color: #000000; font-family: Calibri;\">\u00a0 Drill with 1.5, 3.5, 4.5, 5, 6 and 10mm bits.<\/span><\/li>\n<li><span style=\"font: 7pt 'Times New Roman'; margin: 0px; font-size-adjust: none; font-stretch: normal;\"><span style=\"color: #000000;\">\u00a0\u00a0\u00a0 <\/span><\/span><span style=\"color: #000000; font-family: Calibri;\">Sharp knife.<\/span><\/li>\n<li><span style=\"font: 7pt 'Times New Roman'; margin: 0px; font-size-adjust: none; font-stretch: normal;\"><span style=\"color: #000000;\">\u00a0\u00a0\u00a0 <\/span><\/span><span style=\"color: #000000; font-family: Calibri;\">Metal ruler.<\/span><\/li>\n<li><span style=\"font: 7pt 'Times New Roman'; margin: 0px; font-size-adjust: none; font-stretch: normal;\"><span style=\"color: #000000;\">\u00a0\u00a0\u00a0 <\/span><\/span><span style=\"color: #000000; font-family: Calibri;\">Junior Hacksaw.<\/span><\/li>\n<li><span style=\"font: 7pt 'Times New Roman'; margin: 0px; font-size-adjust: none; font-stretch: normal;\"><span style=\"color: #000000;\">\u00a0\u00a0\u00a0 <\/span><\/span><span style=\"color: #000000; font-family: Calibri;\">File.<\/span><\/li>\n<li><span style=\"font: 7pt 'Times New Roman'; margin: 0px; font-size-adjust: none; font-stretch: normal;\"><span style=\"color: #000000;\">\u00a0\u00a0 <\/span><\/span><span style=\"color: #000000; font-family: Calibri;\">Computer with PDF reader and printer. (duh)<\/span><\/li>\n<li><span style=\"font: 7pt 'Times New Roman'; margin: 0px; font-size-adjust: none; font-stretch: normal;\"><span style=\"color: #000000;\">\u00a0\u00a0\u00a0 <\/span><\/span><span style=\"color: #000000; font-family: Calibri;\">Centre punch.<\/span><\/li>\n<li><span style=\"font: 7pt 'Times New Roman'; margin: 0px; font-size-adjust: none; font-stretch: normal;\"><span style=\"color: #000000;\">\u00a0\u00a0\u00a0 <\/span><\/span><span style=\"color: #000000; font-family: Calibri;\">13mm and 14mm spanners for the controls or adjustable spanner for those sizes.<\/span><\/li>\n<li><span style=\"font: 7pt 'Times New Roman'; margin: 0px; font-size-adjust: none; font-stretch: normal;\"><span style=\"color: #000000;\">\u00a0 <\/span><\/span><span style=\"color: #000000; font-family: Calibri;\">Screwdrivers.<\/span><\/li>\n<li><span style=\"font: 7pt 'Times New Roman'; margin: 0px; font-size-adjust: none; font-stretch: normal;\"><span style=\"color: #000000;\">\u00a0\u00a0 <\/span><\/span><span style=\"color: #000000; font-family: Calibri;\">Heat gun to shrink the sleeving but you can use the soldering iron, it just takes longer.<\/span><\/li>\n<li><span style=\"color: #000000; font-family: Calibri;\">Multimeter.<\/span><\/li>\n<\/ul>\n<h2><span style=\"color: #2e74b5; font-family: Calibri Light; font-size: large;\">Tools it would be desirable to have<\/span><\/h2>\n<ul>\n<li><span style=\"color: #000000; font-family: Calibri;\">Temperature controlled soldering iron instead of above soldering irons.<\/span><\/li>\n<li><span style=\"color: #000000; font-family: Calibri;\">Folding metal ruler.<\/span><\/li>\n<li><span style=\"color: #000000; font-family: Calibri;\">Vice (I have several)<\/span><\/li>\n<li><span style=\"color: #000000; font-family: Calibri;\">Glue gun<\/span><\/li>\n<li><span style=\"color: #000000; font-family: Calibri;\">Office laminator<\/span><\/li>\n<li><span style=\"color: #000000; font-family: Calibri;\">10mm Q max cutter instead of 10mm drill bit.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">This makes a much neater hole<\/span><\/li>\n<li><span style=\"color: #000000; font-family: Calibri;\">Oscilloscope <\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000; font-family: Calibri;\">I use the glue gun several times to fix the front panel label and to anchor long wires.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">For the resistors and capacitors I bought kits of parts:<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000; font-family: Calibri;\">Resistors 5%<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">RE07593<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a311.00<\/span><\/li>\n<li><span style=\"color: #000000; font-family: Calibri;\">Ceramic capacitors<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">CA08363<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a311.00<\/span><\/li>\n<li><span style=\"color: #000000; font-family: Calibri;\">Electrolytic capacitors<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0\u00a0\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">CA08364<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a39.00<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000; font-family: Calibri;\">For the wiring from the Printed circuit to the control panel I used flat ribbon cable.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">This is very useful if you are doing a lot of projects.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">I bought a 100 foot roll of 9 way for about \u00a320.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">You can split off any number of wires quite easily and it makes the job tidier.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Note that the capacitance between adjacent wires is about 30pF a metre which you may have to take into account on some projects. <\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">I definitely recommend the resistor kit and will assume you\u2019re using it in this project as I think it\u2019s a no brainer.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">The electrolytic kit does not have the 1000\u03bcF 50V capacitor but does have a 25V one.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Using the 25V one is sailing a bit close to the wind as there can be slightly more voltage across it.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">However the kits are all good value if you intend to create more projects.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">I am not providing part numbers for the 5% resistors and the capacitors in this article that\u00a0you can use from the kits.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">My simple guidelines for good soldering are no butts and no bulges.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">If you just butt 2 connections together they can be pulled apart easily: Wrap wires round tags and hook 2 wires together.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">If the solder bulges out, then it is not welded to one or both of the connections or there is too much of it.<\/span><\/p>\n<p><em><a href=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/PCB-as-received.jpg\"><img loading=\"lazy\" class=\"alignnone wp-image-419\" src=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/PCB-as-received-300x244.jpg\" alt=\"\" width=\"385\" height=\"313\" srcset=\"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/PCB-as-received-300x244.jpg 300w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/PCB-as-received.jpg 719w\" sizes=\"(max-width: 385px) 100vw, 385px\" \/><\/a><\/em><\/p>\n<p><strong>The PCB as received<\/strong><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">The PCB comes all on one board but the Power supply could do with separating off from the remainder of the electronics.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">You will need a sharp knife, small vice and a folding metal ruler to use the method below.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">You can use the board as it comes but there is a small risk of hum pickup.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">You will also need to build the Power supply first and set up the voltages before putting the other electronics on the board.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">Insert the board between the 2 halves of the ruler, then line up the ends of the ruler, tape them together and line up the board within it so that the dividing line is just visible.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Put the assembly in a vice so that the ruler is between the jaws, not too tightly or you will damage the board. Score lightly and evenly along the line on both sides of the board using the ruler as a guide. <\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0<\/span><span style=\"color: #000000; font-family: Calibri;\">You will see that there are 3 connections between the two boards.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">These need to be cut completely to prevent the tracks being torn from the board in the process of separating them.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">There is provision for wiring them together subsequently. Take care to only score along the line or you may damage some of the other copper tracks which would be quite difficult to repair. Repeat the scoring, using heavier strokes as you progress.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">You will get to a point where the boards separate easily.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">This method is less prone to mistakes than others I have tried.<\/span><\/p>\n<p><i><a href=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Board-in-folding-ruler.jpg\"><img loading=\"lazy\" class=\"alignnone wp-image-403\" src=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Board-in-folding-ruler-300x178.jpg\" alt=\"\" width=\"378\" height=\"224\" srcset=\"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Board-in-folding-ruler-300x178.jpg 300w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Board-in-folding-ruler-768x455.jpg 768w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Board-in-folding-ruler.jpg 850w\" sizes=\"(max-width: 378px) 100vw, 378px\" \/><\/a><\/i><\/p>\n<p><strong>PCB ready to be cut<\/strong><\/p>\n<p><em><a href=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Board-seperated.jpg\"><img loading=\"lazy\" class=\"alignnone wp-image-405\" src=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Board-seperated-300x217.jpg\" alt=\"\" width=\"380\" height=\"275\" srcset=\"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Board-seperated-300x217.jpg 300w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Board-seperated.jpg 746w\" sizes=\"(max-width: 380px) 100vw, 380px\" \/><\/a><\/em><\/p>\n<p><strong>The Seperated PCB<\/strong><\/p>\n<p><em><a href=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Inside-the-finished-unit.jpg\"><img loading=\"lazy\" class=\"alignnone wp-image-417\" src=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Inside-the-finished-unit-300x183.jpg\" alt=\"\" width=\"467\" height=\"285\" srcset=\"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Inside-the-finished-unit-300x183.jpg 300w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Inside-the-finished-unit-768x468.jpg 768w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Inside-the-finished-unit-1024x624.jpg 1024w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Inside-the-finished-unit.jpg 1380w\" sizes=\"(max-width: 467px) 100vw, 467px\" \/><\/a><\/em><strong>Inside the finished unit<\/strong><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">I am building the function generator into a low cost sloping front enclosure.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">This is Farnell part number EN55108 and costs about \u00a37.00.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">All the drilling will be done at once as adding holes once you have started building can be difficult without damaging the circuitry.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Refer to the picture above for the placement of the parts.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">This does not have to be exact.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">I am working on a small static mat and I recommend you also do this.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Static discharge may not produce immediate problems but equipment is weakened and may fail later.<\/span><\/p>\n<h4><i><span style=\"color: #2e74b5; font-family: Calibri Light; font-size: medium;\">The Box<\/span><\/i><\/h4>\n<p><span style=\"color: #000000; font-family: Calibri;\">The box itself requires a few holes cutting in it:<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">2 of 4mm to mount the transformer, 4 of 3.5mm for the power supply electronics, a bit of an awkward shape for the IEC C14 socket and the 3.5mm holes for the posts for the main electronics.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">You don\u2019t have to use the IEC C14 socket; you can run the cable through a suitable grommet with cable clamps to secure it.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">The socket is a better solution though and I recommend it.<\/span><\/p>\n<p><em><a href=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/IEC14-template.png\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-415\" src=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/IEC14-template-300x170.png\" alt=\"\" width=\"300\" height=\"170\" srcset=\"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/IEC14-template-300x170.png 300w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/IEC14-template.png 332w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/em><\/p>\n<p><em>This not to scale.\u00a0 print it with scaling so that the holes are 40mm apart.<\/em><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">Note that I haven\u2019t slavishly copied the shape of the IEC C14 and a 4mm radius on the corners is acceptable.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Print the sheet out, cut out the template and tape it where you want the socket.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">I placed it on the back between the transformer (see photo above) and the left-hand side. The dashed line on the template is 2mm from the edge so you can centre punch round it at 4mm intervals, drill first with a 1.5mm bit then with a 4mm one.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">This gives better accuracy than drilling with the 4mm straight off.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">You will then need to file out the shape or pare it off with a strong craft knife.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">The 2 holes on either side are 3.5mm:<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Centre punch them through the template or if you have done the larger hole through the holes in the socket, then drill with 1.5mm then 3.5mm.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">The holes for the transformer mounting are 74 mm apart for the part specified:<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Check the transformer you have bought as it may be different.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">I have done a 4 mm hole 10mm from the back and 70mm from the left hand side.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">The other hole is 74mm towards the front from this.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">Eight more holes are needed to mount the power supply and electronics boards.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">To complete the drilling of the box you will need:<\/span><\/p>\n<ul>\n<li><span style=\"font: 7pt 'Times New Roman'; margin: 0px; font-size-adjust: none; font-stretch: normal;\"><span style=\"color: #000000;\">\u00a0 <\/span><\/span><span style=\"color: #000000; font-family: Calibri;\">10mm M3 machine screws<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">16<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">FN00719<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">2.60 (50)<\/span><\/li>\n<li><span style=\"color: #000000; font-family: Calibri;\">12 mm standoffs<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">8<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">PC01656<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">0.70 (10)<\/span><\/li>\n<li><span style=\"font: 7pt 'Times New Roman'; margin: 0px; font-size-adjust: none; font-stretch: normal;\"><span style=\"color: #000000;\">\u00a0 <\/span><\/span><span style=\"color: #000000; font-family: Calibri;\">Power supply PCB<\/span><\/li>\n<li><span style=\"font: 7pt 'Times New Roman'; margin: 0px; font-size-adjust: none; font-stretch: normal;\"><span style=\"color: #000000;\">\u00a0 <\/span><\/span><span style=\"color: #000000; font-family: Calibri;\">Electronics PCB<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000; font-family: Calibri;\">Using the power supply board as a template centre punch the box on the outside.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Use the picture to get an idea of its position.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Drill the holes using a 3.5mm bit.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">With M3 screws attach the standoffs loosely to the inside of the box and screw the board onto the standoffs with more 3mm screws.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Tighten up the screws on the box.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Remove the board ready for making up the power supply electronics later.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Repeat the process for the electronics board.<\/span><\/p>\n<h4><i><span style=\"color: #2e74b5; font-family: Calibri Light; font-size: medium;\">Front Panel &#8211; drilling<\/span><\/i><\/h4>\n<p><span style=\"color: #000000; font-family: Calibri;\">The aluminium front panel on this box is only 1mm thick so care will be needed if you are not to damage it.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">I have produced a template for this which you use twice:<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Firstly to position the holes in the panel and secondly to decorate the front panel with labels for the controls.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">I recommend using a 10mm Q\u00a0max punch for the holes for the controls. These are available online for about \u00a310. The Q max cutter produces a very neat hole and is a very useful tool to add to your toolbox if you are doing a few control panels as most rotary panel components mount in a 10mm hole.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">You will need to supply an Allen (hex) key to use it and you need to grease the whole hole cutter for good operation.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">Print out a copy of the front panel template and tape it in position to the front panel.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Centre punch the locations for each of the 10 holes, each marked with a cross inside a circle and an extra hole near to the output socket; this will be 3mm. <\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0<\/span><span style=\"color: #000000; font-family: Calibri;\">then drill a 1.5mm hole at each position.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Drill out the upper hole for the power to 5mm and the lower one to 6.5mm.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Do not be tempted to drill out the holes to full size straight away as you will lose accuracy and they won\u2019t be as neat.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Drill out the holes for the controls and output socket to 6.0mm.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Now using your Q max cutter or 10mm drill make the holes for the controls up to 10mm lining them up as well as you can.<\/span><\/p>\n<h4><i><span style=\"color: #2e74b5; font-family: Calibri Light; font-size: medium;\">Front panel &#8211; labelling<\/span><\/i><\/h4>\n<p><span style=\"color: #000000; font-family: Calibri;\">The following is my preferred way of labelling the front panel as it is fairly easy and quite durable.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">You do not need to laminate the paper template but it tends to get grubby and worn quite quickly if you don\u2019t.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">Print out another copy of the front panel template and cut it out along the dotted lines.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Laminate it on an office laminator and cut out the laminated template about 3mm bigger than the template all around.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">You then need to create holes for the various controls and screws.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">I used a leather punch for the smaller holes and the Q max for the controls.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">If you have been careful with your drilling and punching everything should line up.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">I scored along the line between the top and bottom of the template and folded it slightly to fit the bend in the control panel.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">I then glued it, using a hot glue gun, to the panel making sure the holes all lined up.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">If you don\u2019t have a glue gun then double-sided sticky tape will do.<\/span><\/p>\n<h2><span style=\"color: #2e74b5; font-family: Calibri Light; font-size: large;\">Power Supply<\/span><\/h2>\n<p><span style=\"color: #000000; font-family: Calibri;\">I am going to start the electronics with the power supply, which is very simple.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 \u00a0You need to do this first\u00a0 if you haven&#8217;t split the board<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">You need the following parts:<\/span><\/p>\n<ul>\n<li>Mains on\/off switch\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0SW02851\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0.90<\/li>\n<li>IEC C14 chassis socket\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0CN14818\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0.70<\/li>\n<li>6mm heat shrink sleeving\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a01\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0CB10959\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a02.00<\/li>\n<li>transformer 12VA, 15+15V\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a01\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0TF01340\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 5.60<\/li>\n<li>Rectifier 1N4007\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a04\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0SC07337\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a03.60(10)<\/li>\n<li>Capacitor 1000\u03bcF 50V\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a02\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0CA05182\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1.80<\/li>\n<li>Capacitor 10\u03bcF 25V\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0from kit<\/li>\n<li>Power Regulator IC 7815\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a01\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0SC08386\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0.20<\/li>\n<li>Power Regulator IC LM337\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a01\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SC08262\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0.70<\/li>\n<li>Trimmer 1k\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RE04242\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0.80(5)<\/li>\n<li>resistor 1k\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a01\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0from kit<\/li>\n<li>resistor 120R\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a01\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0from kit<\/li>\n<li>Power supply PCB<\/li>\n<li>heat sink<\/li>\n<li>heat sink compound<\/li>\n<li>small nuts and bolts<\/li>\n<\/ul>\n<p>The numbers in brackets are the minimum order quantities.\u00a0 In some cases, you will end up with quite a lot in your bit\u2019s box.\u00a0 I recommend that instead of the 2 resistors you get a kit of resistors as mentioned earlier.\u00a0 This will build up your bits box with useful components and some of the parts will be useful later in the function generator electronics.\u00a0 It\u2019s also cheaper than buying the minimum quantity of each value you will need.<\/p>\n<p>In designing a power supply everything has to be larger than life.\u00a0 The capacitors C1 and C2 will have a full 25V or more across them as the transformer has a regulation of 16%. This means that with no load it gives out 17.4V AC on each winding \u2013 not 15V, rectification and smoothing will multiply this by 1.414 to the peak of the sine wave giving us 24.6V.\u00a0 Mine actually measured at 26V. This also means that your rectifier diodes have to be at least 50V to cope with both halves of the voltage swing.\u00a0 The diodes specified can take 1000V!\u00a0 this may seem excessive but the minimum order is 10 and they don\u2019t cost any more than the 50V ones so you will have some good general purpose rectifiers in your bits box.\u00a0 The transformer also has to have a lot of leeway on the power rating as running one at its full power rating will make it very hot indeed.\u00a0 The one used is 12VA but 2 x 15V x 200mA only appears to demand a 6VA one.\u00a0 The 12VA transformer still gets quite warm.<\/p>\n<p>When playing with Power supplies after having them plugged in you should always discharge the large capacitors after you subsequently switch off.\u00a0 Even though this is a low voltage unit if you accidentally discharge a capacitor through another component you may well destroy it.\u00a0 <strong>With high voltage supplies If you fail to discharge the capacitors the voltage on them can kill you.\u00a0 <\/strong>The voltage may remain on the capacitors for several hours after they have been disconnected from the mains.\u00a0 Discharge is best done through a resistor; the bang you get from doing it with a pair of insulated pliers may be fun but it doesn\u2019t do the capacitor or your pliers any good.<\/p>\n<p>The switch, transformer and socket should all be wired before they are assembled to the box as it will be awkward afterwards.\u00a0 I used a short length \u2013 about 300mm &#8211; of mains flex to do the mains wiring.\u00a0 Remove the three cores from the overall insulation.<\/p>\n<p>Firstly, wire up the IEC C14 socket using about 100mm of wire on each of the neutral (blue) and earth (yellow\/green) and 300mm on the live (brown).\u00a0 Solder the wires to the plug, using the normal colour convention for mains wiring, then thread about 20mm of the heat-shrink sleeving onto each wire, make sure it covers the solder joint and as much metal as possible, then shrink it onto the joint. You can use the heat of the soldering iron to do this or \u2013 with care &#8211; a heat gun such as that used for paint stripping.\u00a0 Thread the wires through the hole cut in the box for the socket and screw the socket onto the box using M3 nuts and bolts \u2013 preferably countersunk.<\/p>\n<p>Now wire the transformer.\u00a0 I\u2019m doing this for 230V. The 115V connections need insulating with the heat-shrink sleeving but it is not necessary for the 15V connections as they give no shock hazard.\u00a0 The transformer has 4 pairs of connections: \u00a02 marked 0-115V and 2 marked 0-15V.\u00a0 On each of these connect the centre connections together, solder the 115V ones ensuring you have used heat-shrink sleeving to insulate them \u2013 leave as little bare metal as you can.\u00a0 Connect the neutral wire from the socket to the connection marked 0 on the unconnected 0-115V terminals \u2013 use sleeving to insulate it!\u00a0 Connect the earth wire from the socket to the centre of the 15V connections.\u00a0 Use normal connecting wire and connect 3 wires, one from each of the unconnected, outer 0-15V terminals; I used yellow wire for this and one green wire to the 2 earth terminals at the centre.\u00a0 Make them about 200mm long.\u00a0 These will later connect to the power supply PCB.<\/p>\n<p>The switch is in the live wiring and needs all the connections carefully insulating.\u00a0 Put the sleeving on the wires before soldering them on.\u00a0 Connect the live wire from the IEC socket to an end connection on the switch \u2013 insulate it.\u00a0 Wire the centre connection of the switch to the unwired 115V connection on the transformer. \u00a0It is important to not wire the live connection to the centre contact on the switch as when you switch it off the other end connection will then become live.\u00a0 From the photo you can see that the connections on the transformer have a bare metal part projecting above the connecting tags.\u00a0 I have insulated these with heat shrink on the mains side but the bare metal is visible on the low voltage side.<\/p>\n<p>Now screw the transformer in place using M4 nuts, bolts and washers.\u00a0 Use washers on the transformer fixing outside the box to reduce the chance of it breaking the plastic box as it is quite heavy.<\/p>\n<h2>Power Supply Electronics Board<\/h2>\n<p>Now we will use the power supply board we used as a template when drilling the box to make the electronics for the power supply.<\/p>\n<p>Solder in the low-lying components first:\u00a0 The resistors, rectifiers and the trimmer, then the 10\u03bcF capacitors.\u00a0 Take care to fit the rectifiers, 10\u03bcF and 1000\u03bcF capacitors the right way round.\u00a0 Fit the heatsinks on the 2 regulators spreading heat sink compound on the metal area of the regulators and using the small nuts and bolts to fit them.\u00a0 Solder the regulators to the board with the metal side facing out.\u00a0 Now fit the 2 large 1000\u03bcF capacitors.\u00a0 Connect wires to the output of the Power supply.\u00a0 These go on the 3 connections on the side of the board.\u00a0 The positive goes nearest the end, the ground in the centre and the negative on the remaining connection. I use red for positive, green for earth and black for negative.<\/p>\n<p>Connect the transformer to the Power supply board. This is connected to the 3 connections on the end of the board.\u00a0 The ground connection goes to the centre connection and the two other wires to the outside connections\u2019 it doesn\u2019t matter which way round the 2 yellow wires go.\u00a0 The negative voltage will now need adjusting to match the positive voltage.\u00a0 You need to do this before connecting to the function generator as the voltage can go to about -20V which is more than some of the components can safely take.\u00a0 Plug in to the mains, switch on and measure the positive voltage between the green and red wires.\u00a0 This should be about 15V (mine was 14.6V).\u00a0 Now measure the negative voltage between the green and the black wires; adjust this with the trimmer until it matches the positive voltage just measured.\u00a0 Unplug from the mains.<\/p>\n<h2>Control Panel<\/h2>\n<p>You should already have completed the drilling for this when drilling the box so let\u2019s add the actual controls.\u00a0 You will need the following parts:<\/p>\n<ul>\n<li>Potentiometer 100k\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 3\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RE04393\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 5.00<\/li>\n<li>Potentiometer 100k twin gang\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a01\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0RE04433\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2.70<\/li>\n<li>Switch 2 pole 6 way\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SW04136\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1.50<\/li>\n<li>Switch 4 pole 3 way\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SW01435\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1.60<\/li>\n<li>Socket BNC\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CN06849\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2.80<\/li>\n<li>Knob pointer (legacy)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 6\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SW05328\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 3.60<\/li>\n<li>LED 5mm\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a01\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SC11574\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0.80 (5)<\/li>\n<li>Resistor 2.7k\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 from kit<\/li>\n<li>3mm nut and bolt\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a01\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 from kit<\/li>\n<li>Connecting tag\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a01\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0PC01452\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a04.00 (100)<\/li>\n<li>Heatshrink tubing as above<\/li>\n<\/ul>\n<p>There are no scales on the control panel as this instrument\u00a0\u00a0is uncalibrated and scales would be misleading.\u00a0 You can however add your own markings with a fine erasable marker.<\/p>\n<p>I chose the legacy pointer knob because it is cheap and very easy to see where it is pointing.\u00a0 You can, of course, choose your own.\u00a0 I use BNC sockets as it is convenient to use oscilloscope probes on x1 setting for the connections.\u00a0 If you use a \u2018scope probe you may find the x10 setting a useful way to get a really low signal as this puts a 9 megohm resistor in series.<\/p>\n<p>Cut the shafts on the potentiometers and switches down to about 8mm in length using a junior hacksaw and clean up the ends with a file or sandpaper.\u00a0 Take care with the rotary switches as there is often an end stop consisting of a loose ring on the base of the shaft; if this is allowed to move away from the body of the switch it can be difficult to find its correct position again.\u00a0 You may want to mark the position with a marker pen before removing the nut.\u00a0 Attach the controls and BNC sockets properly now, using a spanner to tighten the nuts.\u00a0 Do not overtighten as you may break the control.\u00a0 The 6-way switch is the range control.\u00a0 The 3-way switch is the function control.\u00a0 The 100k twin gang potentiometer is the frequency control.\u00a0 All the other controls are 100k single gang pots.<\/p>\n<p>The LED should be a tight push fit in the 5mm hole, a little hot glue would be useful here to hold it in.\u00a0 Don\u2019t attach the power switch yet.\u00a0 Next attach the control knobs.\u00a0 For the potentiometers you should turn the potentiometers fully anticlockwise and screw the knob on pointing to the most anti-clockwise mark.\u00a0 When you turn it fully clockwise it should point to the most clockwise mark.\u00a0 For the function switch turn it to the centre position and fit the knob pointing straight up to the triangle position.\u00a0 The range switch should be turned fully anti clockwise and the knob fitted pointing to the left hand mark.<\/p>\n<p>Bolt the connecting tag to the back of the front panel using the 3mm nut and bolt.<\/p>\n<p>You then need to do some wiring on the control panel.\u00a0 The LED which is not shown on the schematic and the scan socket and circuit.<\/p>\n<p>Wire the earth tag on each of the BNC sockets to the connecting tag.\u00a0 Don\u2019t solder the output socket connection yet as this is wired to the electronics board.<\/p>\n<p>Hook the 2.7k resistor onto the long lead on the LED and solder them together.\u00a0 Hook a piece of red wire about 15cm long onto the other end of the resistor and solder that. Slip a piece of Heatshrink down to cover the wires and the resistor and shrink it on.\u00a0 Repeat this process using black wire on the other end of the LED but without a resistor.\u00a0 Connect the centre tag of the frequency potentiometer closest to the panel to the centre tag on the scan socket.<\/p>\n<h2>The Electronics Circuit Board<\/h2>\n<p>This is a fairly straightforward assembly but some decisions need to be made before starting. One is how the wiring from off the board to the control panel and power supply is to be attached.\u00a0 There are two main choices:<\/p>\n<ol>\n<li>Soldered directly on to the board. This is the method used here.<\/li>\n<li>Plug and socket. This is the most convenient way in the long run but assembling the cables can be a bit laborious.\u00a0 This is also the most expensive option.\u00a0 You will have to select your own plugs and sockets for this job.\u00a0 I use KK connectors usually.<\/li>\n<\/ol>\n<p>Another decision is adding a heatsink to the OP551 amplifier.\u00a0 This will increase the power output substantially.\u00a0 I used thermal adhesive tape which you can buy in a small sheet for about \u00a310.\u00a0 With care this can last\u00a0you for many heatsinks but if you don\u2019t need the power it is an unnecessary expense.<\/p>\n<p>You will need the following parts:<\/p>\n<ul>\n<li>Heatsink\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Optional\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <a href=\"http:\/\/cpc.farnell.com\/fischer-elektronik\/ick-smd-f-10-sa\/heat-sink-for-smd-71-c-w\/dp\/SC10775?CMP=TREML007-003\"><u>SC10775<\/u><\/a>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a30.50<\/li>\n<li>Heatsink tape\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Optional\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SC10691\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a39.50<\/li>\n<li>Electronics PCB<\/li>\n<li>LF347 IC\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a01\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SC07963\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a31.00<\/li>\n<li>OPA551 IC\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SC07897\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a34.00<\/li>\n<li>200k Trimmers\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a03\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RE04196\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a32.00<\/li>\n<li>1N4148 diodes\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a010\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SC07316\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a30.40 (10)<\/li>\n<li>100pF ceramic capacitor\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 1\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0from kit<\/li>\n<li>1nF ceramic capacitor\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0from kit<\/li>\n<li>10nF ceramic capacitor\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 1\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0from kit<\/li>\n<li>100nF ceramic capacitor\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 5\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0from kit<\/li>\n<li>1\u03bcF ceramic capacitor\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 from kit<\/li>\n<li>10\u03bcF electrolytic capacitor\u00a0 \u00a0 \u00a0 2\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 from kit<\/li>\n<li>6k8 resistor\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a01\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 from kit<\/li>\n<li>12k resistor\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a01\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 from kit<\/li>\n<li>1k0 resistor* (1k0)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RE03722\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0.80 (50)<\/li>\n<li>24k resistor* (22k)\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a02\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RE03746\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0.80 (50)<\/li>\n<li>200R resistor* (220R)\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a01\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RE03738\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0.80 (50)<\/li>\n<li>620R resistor* (680)\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RE05326\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0.80 (50)<\/li>\n<li>100k resistor* (100k)\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RE03724\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0.80 (50)<\/li>\n<li>15k resistor\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a01\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 from kit<\/li>\n<li>56k resistor\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a02\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 from kit<\/li>\n<li>68k resistor\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a01\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 from kit<\/li>\n<li>5.5-50pF capacitor\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a01\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CA06916\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 5.00(5)<\/li>\n<\/ul>\n<p>The resistors in the triangle to sine convertor shown with an * should, strictly speaking, be high tolerance 1% devices to get the best result but you can get away with nearby 5% values if you can stand a bit more distortion.\u00a0 You can get a kit of 5% resistors, as previously recommended, quite cheaply but the 1% resistors would have to be bought in individual values \u2013 usually in quantity; a kit containing these values costs about \u00a3100 and you end up with a lot of resistors you will never use. The bracketed values are the recommended 5% resistors.\u00a0 The part numbers given are for the 1% values; it is assumed that you will buy the resistor kit for the 5% resistors.<\/p>\n<p>The highest components on this board are the 10\u03bcF capacitors so you can just mount the rest in any order you like.\u00a0 Take care to orient the diodes and IC\u2019s the correct way round.\u00a0 The IC\u2019s have a notch or dimple at one end which matches up to a notch on the outline on the board.\u00a0 The diodes have a band at one end to match up to the one on the board.\u00a0 You may like to use sockets for the IC\u2019s<\/p>\n<h2>Putting it all together<\/h2>\n<p>This entails a lot of wires between the control panel and the electronics!\u00a0 If you make the wires too long it will degrade the signal:\u00a0 Too short and you won\u2019t be able to work on it.\u00a0 I screwed my front panel upside down on the right hand side of the box and then wired quite loosely.\u00a0 I used ribbon cable because I\u2019d got it.\u00a0 You can use ordinary connecting wire; stranded preferably.\u00a0 In most cases you will need to refer to the schematic and use your multimeter to trace out the connections.\u00a0 There is no easy way to label these up on such a small PCB.\u00a0 Reference to the PCB layout (shown below) is a great help here.\u00a0 All the potentiometer connections have the wiper at the centre.<\/p>\n<p>Rotary switches have a convention whereby all the wipers are labelled with letters:\u00a0 A, B, C etcetera\u2019s and the tags with numbers.\u00a0 A will switch to 1,2 etc in clockwise direction and on, say, a 4-way switch B will connect to 5,6 and so on.\u00a0 On a 6-way B will start at tag 7.<\/p>\n<p>If you have replaced C6 (10\u03bcF) with 10pF then you may want to change your wiring accordingly so that C6 is connected to the rightmost position on the switch or straight to the wiper connection.<\/p>\n<p>Your Power supply should be working by now; check the voltages, switch off and connect the Power supply to the electronics.\u00a0 I used Red for Positive, black for negative and green for earth.<\/p>\n<p><em><a href=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/pcb-connections.png\"><img loading=\"lazy\" class=\"alignnone wp-image-441\" src=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/pcb-connections-300x223.png\" alt=\"\" width=\"463\" height=\"344\" srcset=\"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/pcb-connections-300x223.png 300w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/pcb-connections.png 631w\" sizes=\"(max-width: 463px) 100vw, 463px\" \/><\/a><\/em><\/p>\n<p><strong>PCB connections<\/strong><\/p>\n<h2><span style=\"color: #2e74b5; font-family: Calibri Light; font-size: large;\">Setting it up<\/span><\/h2>\n<p><span style=\"color: #000000; font-family: Calibri;\">This really, really needs an oscilloscope but you can fudge it with a multimeter.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Note that you may have to reduce the output amplitude to prevent clipping of the triangle wave<\/span><\/p>\n<ol>\n<li><span style=\"color: #000000; font-family: Calibri;\">Monitor the output with the function switch set to sine.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0<\/span><\/li>\n<li><span style=\"color: #000000; font-family: Calibri;\">Adjust the triangle wave using R6 until you get the best sine wave.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0<\/span><\/li>\n<li><span style=\"color: #000000; font-family: Calibri;\">Set the function to triangle and read the peak to peak voltage.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><\/li>\n<li><span style=\"color: #000000; font-family: Calibri;\">Set the switch to sine once more and adjust the peak to peak voltage of the sine to the same as the triangle using R5. <\/span><\/li>\n<li><span style=\"color: #000000; font-family: Calibri;\">Adjust the square wave similarly with R7.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><\/li>\n<\/ol>\n<p><span style=\"color: #000000; font-family: Calibri;\">As it stands the square output probably has a lot of ringing.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">The cure is to put a capacitor across R21, this is C17 and it is adjustable.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Set the function to square and the range switch to the 4<\/span><sup><span style=\"color: #000000; font-family: Calibri; font-size: small;\">th<\/span><\/sup><span style=\"color: #000000; font-family: Calibri;\"> position then monitor the output with your \u2018scope set to about 10uS\/div and adjust C17 until you get the best waveform.<\/span><\/p>\n<p><em><a href=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/waveform-with-ringing.png\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-435\" src=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/waveform-with-ringing-273x300.png\" alt=\"\" width=\"273\" height=\"300\" srcset=\"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/waveform-with-ringing-273x300.png 273w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/waveform-with-ringing.png 503w\" sizes=\"(max-width: 273px) 100vw, 273px\" \/><\/a><\/em><\/p>\n<p>50 kHz with ringing<\/p>\n<p><a href=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/compensated-waveform.png\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-407\" src=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/compensated-waveform-240x300.png\" alt=\"\" width=\"240\" height=\"300\" srcset=\"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/compensated-waveform-240x300.png 240w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/compensated-waveform.png 244w\" sizes=\"(max-width: 240px) 100vw, 240px\" \/><\/a><\/p>\n<p>50kHz with compensation<\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">Most of the artefacts on the output of this unit are created in the OPA551.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">If you wish you can replace this with a more normal op-amp. You lose the output power though.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">This is displayed at 20uS\/div so the rise and fall times are about 1uS.<\/span><\/p>\n<p><em><a href=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/schematic.png\"><img loading=\"lazy\" class=\"alignnone wp-image-443\" src=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/schematic-300x201.png\" alt=\"\" width=\"473\" height=\"317\" srcset=\"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/schematic-300x201.png 300w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/schematic-768x514.png 768w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/schematic-1024x685.png 1024w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/schematic.png 1554w\" sizes=\"(max-width: 473px) 100vw, 473px\" \/><\/a><\/em><\/p>\n<p><strong>Schematic (click on image to get an enlarged view)<\/strong><\/p>\n<h1><span style=\"color: #2e74b5; font-family: Calibri Light; font-size: x-large;\">How it works<\/span><\/h1>\n<p><span style=\"color: #000000; font-family: Calibri;\">You may want to print out the schematic here \ud83d\ude42<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">The heart of this circuit is IC1B and IC1C.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">IC1B is an integrator which, when the input is switched from one voltage to another will make the output ramp up or down in a linear fashion.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Its output is fed into a Schmidt trigger formed by IC1C.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">The output of this will switch between the extreme high and low voltages when the input reaches set levels determined by R12 and R13.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">This output is fed back into the integrator (By way of IC1A which is a buffer).<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">The result is that the output of IC1B is a triangle wave and that of IC1C is a square wave.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">To make life more interesting (really?) I\u2019ve added a symmetry control.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">This varies the rate at which the triangle wave rises and falls.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">It also changes the shape of the square and sine waves, varying the high and low ratio of the square wave and the curve of the sine wave. <\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0<\/span><span style=\"color: #000000; font-family: Calibri;\">IC1A buffers this control to prevent the symmetry control affecting the frequency too much (it still does a bit).<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">The symmetry control varies the rate of ascent and descent of the triangle wave by sharing the charge through D3 and D4.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">D1 and D2 compensate for the non-linear characteristics of D3 and D4.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">C1 to C6 are the timing capacitors for the integrator.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">These control the frequency of the function generator.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">You have a choice in creating a range according to the value of these components.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">As these cannot be polarised capacitors then the higher values, representing the lower frequencies, can be quite expensive.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Trying to use the lower values \u2013 100pF or less can be problematic due to the inherent capacitance of the wiring and a fault known as microphony.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Microphony is a problem whereby the movement of the connecting wires varies the capacitance by a small amount thereby altering the signal.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">This is generally solved by not letting the wires move!<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Both these can be overcome for one value only by connecting the lowest value capacitor directly rather than through the switch; unfortunately, the value of that capacitor is then added to all the others.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">C6 is actually connected this way.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">The jungle of diodes and resistors after the triangle generator is a fudge to make an approximation to a sine wave and it actually works quite well.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">The distortion though is quite high and there are better convertors but they are a lot more complicated.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">The output of the integrator \u2013 triangle, the Schmidt trigger \u2013 square and IC1D \u2013 sine, are selected by SW2 go to the output buffer IC2 by way of the amplitude control.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">The buffer has a gain of about 2.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">The OPA551 is optimised for a gain of 1 which is why we get some unwanted artefacts such as ringing.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">The\u00a0inverting input of this amplifier is connected to the Offset control which adds a voltage to the signal.<\/span><\/p>\n<h1><span style=\"color: #2e74b5; font-family: Calibri Light; font-size: x-large;\">The Controls<\/span><\/h1>\n<p><span style=\"color: #000000; font-family: Calibri;\">Most of the controls are pretty much self-descriptive but I will provide a \u2013 mainly \u2013 short guide to each.<\/span><\/p>\n<h2><span style=\"color: #2e74b5; font-family: Calibri Light; font-size: large;\">Function<\/span><\/h2>\n<p><span style=\"color: #000000; font-family: Calibri;\">This selects between the three waveforms available:<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Sine, Square and Triangle.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">This switch is probably the best place to monitor the signal before it goes to the output stage.<\/span><\/p>\n<p><em><a href=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/triangle-wave.png\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-433\" src=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/triangle-wave-300x205.png\" alt=\"\" width=\"300\" height=\"205\" srcset=\"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/triangle-wave-300x205.png 300w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/triangle-wave.png 535w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a> <\/em><\/p>\n<p>Triangle<\/p>\n<p><em><a href=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/square-wave.png\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-429\" src=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/square-wave-300x178.png\" alt=\"\" width=\"300\" height=\"178\" srcset=\"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/square-wave-300x178.png 300w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/square-wave.png 452w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/em><\/p>\n<p>Square<\/p>\n<p><em><a href=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/sine-wave.png\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-427\" src=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/sine-wave-300x172.png\" alt=\"\" width=\"300\" height=\"172\" srcset=\"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/sine-wave-300x172.png 300w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/sine-wave.png 420w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a> <\/em><\/p>\n<p>Sine(ish)<\/p>\n<h2><span style=\"color: #2e74b5; font-family: Calibri Light; font-size: large;\">Range<\/span><\/h2>\n<p><span style=\"color: #000000; font-family: Calibri;\">This selects the range of frequencies which the Frequency control uses.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Each stop on the switch changes the frequency by a factor of about 10.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">This factor is approximate and is dependent upon the accuracy of the capacitors C1 to C6.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">If you need better accuracy you may select these components to be as close to a scale of 10 from each other as you can.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">This is best achieved by padding the lower values up to the higher ones:<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">First find the capacitor which produces the lowest frequency for its range \u2013 not the lowest frequency overall but the lowest you would expect at its setting.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">You then add small capacitors to the others to make them more exact in their scale to it.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">I wouldn\u2019t go too mad though; one well selected capacitor on each range will usually do a pretty good job.<\/span><\/p>\n<h2><span style=\"color: #2e74b5; font-family: Calibri Light; font-size: large;\">Amplitude<\/span><\/h2>\n<p><span style=\"color: #000000; font-family: Calibri;\">This controls the output amplitude which at a maximum should be about 20V peak to peak. This needs to be adjusted with the resistors R5,6 and 7. If you need better control nearer the lower amplitudes, you may prefer to use a logarithmic potentiometer for this.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">If you set the amplitude too high, then you will experience clipping of the waveform.<\/span><\/p>\n<h2><span style=\"color: #2e74b5; font-family: Calibri Light; font-size: large;\">Frequency<\/span><\/h2>\n<p><span style=\"color: #000000; font-family: Calibri;\">As with all the controls this is approximate and does not provide a calibrated output.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">The frequency is dependent upon the capacitors on the Range switch.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">My unit provided the following range:<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000; font-family: Calibri;\">1<\/span><span style=\"font: 7pt 'Times New Roman'; margin: 0px; font-size-adjust: none; font-stretch: normal;\"><span style=\"color: #000000;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><span style=\"color: #000000; font-family: Calibri;\">0.25Hz \u2013 10Hz<\/span><\/li>\n<li><span style=\"color: #000000; font-family: Calibri;\">2<\/span><span style=\"font: 7pt 'Times New Roman'; margin: 0px; font-size-adjust: none; font-stretch: normal;\"><span style=\"color: #000000;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><span style=\"color: #000000; font-family: Calibri;\">2.7Hz \u2013 100Hz<\/span><\/li>\n<li><span style=\"color: #000000; font-family: Calibri;\">3<\/span><span style=\"font: 7pt 'Times New Roman'; margin: 0px; font-size-adjust: none; font-stretch: normal;\"><span style=\"color: #000000;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><span style=\"color: #000000; font-family: Calibri;\">140Hz \u2013 1kHz<\/span><\/li>\n<li><span style=\"color: #000000; font-family: Calibri;\">4<\/span><span style=\"font: 7pt 'Times New Roman'; margin: 0px; font-size-adjust: none; font-stretch: normal;\"><span style=\"color: #000000;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><span style=\"color: #000000; font-family: Calibri;\">750Hz \u2013 10kHz<\/span><\/li>\n<li><span style=\"color: #000000; font-family: Calibri;\">5<\/span><span style=\"font: 7pt 'Times New Roman'; margin: 0px; font-size-adjust: none; font-stretch: normal;\"><span style=\"color: #000000;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><span style=\"color: #000000; font-family: Calibri;\">4kHz \u2013 125kH<\/span><\/li>\n<li><span style=\"color: #000000; font-family: Calibri;\">6<\/span><span style=\"font: 7pt 'Times New Roman'; margin: 0px; font-size-adjust: none; font-stretch: normal;\"><span style=\"color: #000000;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><span style=\"color: #000000; font-family: Calibri;\">See below<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000; font-family: Calibri;\">You may omit C6 altogether but the result is not predictable.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">At the higher frequencies the slew rate of the op-amps takes control rather than the feedback capacitor.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">That lowest frequency range may be too low for your taste so you may want to use different capacitors C1 to C6.\u00a0 You may also want lower frequencies; for instance to provide a very slow ramp from the triangle wave.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">Now we will now reveal the purpose of the Scan socket!<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">It\u2019s quite simply an output providing a voltage proportional to the rotation of the frequency control.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">If you have an oscilloscope with an X-Y input then you can connect the Scan output to the X channel of the \u2018scope, the Y channel to the output of a frequency dependent circuit and the output of the function generator to the input of the frequency dependent circuit.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">As you turn the Frequency control you will generate a graph of the frequency response of your circuit on your \u2018scope.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Lots of result for little effort \u2013 yeah! (But it\u2019s not perfect)<\/span><\/p>\n<h2><span style=\"color: #2e74b5; font-family: Calibri Light; font-size: large;\">Symmetry<\/span><\/h2>\n<p><span style=\"color: #000000; font-family: Calibri;\">The basic function of this control is to change the ratio of the up and down ramp speeds of the triangle wave.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">In doing this it changes both the square and the sine wave outputs.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">The ratio is quite large at lower frequencies but is limited at high frequencies by the characteristics of the op-amps.<\/span><\/p>\n<p><em><a href=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/extreme-symmetry-2.png\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-411\" src=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/extreme-symmetry-2-300x205.png\" alt=\"\" width=\"300\" height=\"205\" srcset=\"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/extreme-symmetry-2-300x205.png 300w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/extreme-symmetry-2.png 412w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/em><\/p>\n<p>Square wave at one extreme of the symmetry control<\/p>\n<p><em><a href=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/triangle-wave-with-extreme-symmetry.png\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-431\" src=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/triangle-wave-with-extreme-symmetry-300x259.png\" alt=\"\" width=\"300\" height=\"259\" srcset=\"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/triangle-wave-with-extreme-symmetry-300x259.png 300w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/triangle-wave-with-extreme-symmetry.png 472w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a> <\/em><\/p>\n<p>The effect on the triangle wave<\/p>\n<p><em><a href=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/sine-wave-with-extreme-symmetry.png\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-425\" src=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/sine-wave-with-extreme-symmetry-300x222.png\" alt=\"\" width=\"300\" height=\"222\" srcset=\"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/sine-wave-with-extreme-symmetry-300x222.png 300w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/sine-wave-with-extreme-symmetry.png 526w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/em><\/p>\n<p>and the sine<\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">With square waves it changes the pulse width ratio; the timing of the high and low voltages and with sine waves; erm, well, judge for yourself.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">You might, possibly find it useful, maybe, sometime.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">I suppose you could set the ratio to an integer: 1:2, 1:3 etc. and get the harmonics<\/span><\/p>\n<h2><span style=\"color: #2e74b5; font-family: Calibri Light; font-size: large;\">Offset<\/span><\/h2>\n<p><span style=\"color: #000000; font-family: Calibri;\">This adds an offset voltage to the output \u2013 negative or positive.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">This can be particularly useful to generate logic level outputs on the square wave.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">It is limited by the maximum output voltages of the output amplifier and the signal may be clipped to remain within those.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\"><em><a href=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/sine-clipped-by-too-much-offset.png\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-423\" src=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/sine-clipped-by-too-much-offset-300x162.png\" alt=\"\" width=\"300\" height=\"162\" srcset=\"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/sine-clipped-by-too-much-offset-300x162.png 300w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/sine-clipped-by-too-much-offset.png 414w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/em><\/span><\/p>\n<p><strong><span style=\"color: #000000; font-family: Calibri;\">Too much offset on a sine wave\u00a0 <\/span><\/strong><\/p>\n<h1><span style=\"color: #2e74b5; font-family: Calibri Light; font-size: x-large;\">Suggestions for extending the unit <\/span><\/h1>\n<p><span style=\"color: #000000; font-family: Calibri;\">The unit has been purposefully overbuilt in some respects:<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">The case has loads of room in it and the power supply has some overhead.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">This gives reasonable space for expansion.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">A dead simple mod is to extend the power supply outside the case to use with other projects.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">The best way to do this is to put a 3pin socket or 3 terminals on the case wired to the supply.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">Do not use a socket which could be mistaken for a mains input!<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">You may also want to put a heatsink on the regulator IC\u2019s \u2013 I did.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">The Burr-Brown data sheet has a circuit for increasing the current output of the OPA551 to about 1A.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">If you do this, you will need to upgrade the power supply.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">You may want to replace the OPA551 completely with your own output power buffer. <\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">The OPA551 has a flag output which supplies a pullup current of about 120\u03bcA when the chip is overloaded and cuts out.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">This operates when the chip reaches 160\u02daC and allows the chip to function again when its temperature drops to 140\u02daC.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">You might want to make this operate an LED on the front panel or provide an output \u2013 preferably buffered.<\/span><\/p>\n<p><span style=\"color: #000000; font-family: Calibri;\">With a bit of research, you could almost certainly find a better \u2013 if more complex &#8211; triangle to sine convertor.<\/span><span style=\"color: #000000; font-family: Calibri;\">\u00a0 <\/span><span style=\"color: #000000; font-family: Calibri;\">The one used here was chosen for its simplicity.<\/span><\/p>\n<p><em><a href=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Component-layout-2.png\"><img loading=\"lazy\" class=\"alignnone wp-image-455\" src=\"http:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Component-layout-2-300x236.png\" alt=\"\" width=\"483\" height=\"380\" srcset=\"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Component-layout-2-300x236.png 300w, https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-content\/uploads\/2017\/01\/Component-layout-2.png 680w\" sizes=\"(max-width: 483px) 100vw, 483px\" \/><\/a><\/em><\/p>\n<p>Component layout<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Every electronics lab needs a function generator! \u00a0The one describe here, when fully built, produces sine, square and triangle waves at a range of frequencies from about 0.25Hz up to&nbsp;[&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-json\/wp\/v2\/posts\/389"}],"collection":[{"href":"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-json\/wp\/v2\/comments?post=389"}],"version-history":[{"count":12,"href":"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-json\/wp\/v2\/posts\/389\/revisions"}],"predecessor-version":[{"id":806,"href":"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-json\/wp\/v2\/posts\/389\/revisions\/806"}],"wp:attachment":[{"href":"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-json\/wp\/v2\/media?parent=389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-json\/wp\/v2\/categories?post=389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bassett.me\/mike\/blog\/wordpress\/wp-json\/wp\/v2\/tags?post=389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}