Build a Square Wave Oscillator - Part 1 of DIY Modular Synths

 by dnhushak
Featured
DSCN0512.JPG
Synthesizers have become an incredibly prominent instrument in modern music; it's difficult to hear a track without one anymore! Unfortunately, many synthesizers are incredibly expensive and hard to acquire, making it rather difficult for the hobbyist or budget musician to get any of those sounds. This instructable won't teach you how to build one of those feature-rich, user friendly synths, but it will start you off with a very simple device that can be used with other units to create interesting and unique sounds.

The following is the simplest and most fundamental piece of a synthesizer - an oscillator. This particular oscillator is a "Square Wave" oscillator, and has limited functions, but can still be used every now and then for fun sounds.

Let's get started!
 
Remove these adsRemove these ads by Signing Up

Step 1: Gather Your Parts

DSCN0498.JPG
The square wave oscillator is a rather simple device, so not much is needed to construct it. Most of these parts have some sort of alternative that can be found at radioshack, but I prefer this website for all of my electronics projects:
http://www.pedalpartsplus.com/

If you can't find all of these on that website, I would also suggest digikey.

Here's a list of everything you'll need:

-Project Enclosure
-2x 500kΩ Potentiometers
-Radioshack Perfboard
-Resistors:
   -1x 4.7kΩ
   -5x 1kΩ
   -2x 1MΩ
Capacitors
   -1x 100µF
   -1x .001µF
-LED, any color
-741 Op Amp
-1/4" Audio Jack
-9v Power Adapter Jack


You will also need a few tools:
-Drill Press
-Drill Bits of Varying Sizes
-Drill Bit Index
-Sharpie
-Breadboard
-Safety Goggles
-Soldering Iron
-Solder
1-40 of 72Next »
pquadros says: Feb 13, 2013. 11:41 AM
Can you use an USB cable instead of the 9V power adapter?
dnhushak (author) in reply to pquadrosFeb 13, 2013. 1:43 PM
Theoretically, one could try it. Note that you'd only be getting 5V instead of 9V, so your op amp rails will only be ±2.5V, which doesn't give you much swing (and therefore not much output), but it's certainly worth a try. Let me know what results you get!
bengoza says: Feb 11, 2013. 12:42 PM
The ones in step four where you show the circuit laid out on a breadboard. Maybe they're not jumper cables, the thicker black and red wires going off screen. Thanks for the quick reply!
dnhushak (author) in reply to bengozaFeb 11, 2013. 1:36 PM
Oh, two of those are going to a power supply to give the circuit the +9V it needs to operate - these are replaced by the power jack later on. The other two are going to an oscilloscope just to test output - these are replaced by the audio output jack later on. Hope that helps!
bengoza says: Feb 9, 2013. 8:54 PM
Where are those jumper cables connected to? What is their purpose? Thanks for your patience, and thank you for this instructable!
dnhushak (author) in reply to bengozaFeb 9, 2013. 9:09 PM
Which jumper cables are you referring to?
jatinbatra says: Dec 28, 2012. 7:23 AM
what is peak voltage?
jin_yeugh says: Nov 25, 2012. 11:47 AM
I'm wondering where the other end of the 500k pot, from pin 2, goes. Do I take it to ground? it already goes to ground through the cap/resistor.
Skelpolu says: Mar 30, 2012. 8:37 AM
Hey there.
I'm a pretty much newbie in things like this. You will probably tell me to start of by soldering a working LED, but I've done that before. Anyway ...
I am not quite sure, but can't I also use a 12V Power Jack and a 12V LED-Power-Switch? ( It's just a switch with an LED indicating that its "on" ) I'd like to know. And also, another thing: The Schematic doesn't help me at all, I don't say its badly made, it's probably pretty good, but I don't know where what who is... If somebody can help me a bit more with that, I'd appreciate it a lot. See you then guys.
dnhushak (author) in reply to SkelpoluMar 30, 2012. 10:55 AM
Yep, a 12v switch with the LED will do just fine. The 12 supply can be the supply for the rails for the oscillator circuit as well, no problem.

Part of the problem with the schematic is that Instructables doesn't immediately show the image at full size. If you open the image, click on the little "I" in the top left corner of the image, and then click "view original file." This will let you see it in it's full size.

Past that, is the schematic unclear, or is it just an experience reading schematics issue? Let me know, I'd love to help!
Gray3287 in reply to dnhushakNov 3, 2012. 8:53 AM
Hi friend, could you tell me what voltage the capacitors are rated at?
dnhushak (author) in reply to dnhushakMar 30, 2012. 10:57 AM
Actually, sorry, the little i doesn't exist anymore for some reason.

http://www.instructables.com/files/orig/FG9/MG8C/GFRWMNFA/FG9MG8CGFRWMNFA.png

That'll get you where you want to go.
Skelpolu in reply to dnhushakMar 30, 2012. 11:04 AM
Well, I've saved the full-sized-schematic btw, but my problem is that I don't understand it. I don't quite understand how those pieces form a Square-Wave for example. Nor do I know how to sold them now, the schematic looks complex for me. And like I said, I have no experience beside soldering an LED, which is pretty much pathetically-easy, eh? Anyway, perhaps we should talk about that using the PM-function to not spam this post?
jgierczak says: May 6, 2012. 8:06 AM
Is there an option to connect this little synth to sequencer?
oweng4000 says: Feb 1, 2012. 4:14 PM
Where's part 2?
dnhushak (author) in reply to oweng4000Mar 30, 2012. 10:57 AM
Haha, I'm working on getting something else up. I'm a EE student, so busy all the time!
gavox says: Dec 11, 2011. 12:56 PM
Any chance of getting a clearer schematic? can't see a blind thing on this one...
dnhushak (author) in reply to gavoxDec 11, 2011. 1:10 PM
http://www.instructables.com/files/orig/FG9/MG8C/GFRWMNFA/FG9MG8CGFRWMNFA.png

That should work.
gavox says: Dec 1, 2011. 6:32 AM
http://www.banzaimusic.com/ICL7621.html would this op amp work? getting hold of the parts is quite difficult here in france, any way if this one doesn't work that you could find one that does on this website? thanks!
gavox in reply to gavoxDec 1, 2011. 7:43 AM
Also it's impossible as far as I can see to get perfboards in france, breadboards are usually to big, or too expensive to lock in an enclosure never to be seen again... so do you have any suggestions? I don't have the meansof etching anything myself.
dnhushak (author) in reply to gavoxDec 1, 2011. 8:27 AM
Something from this page should work:

http://www.banzaimusic.com/PC-Boards/
dnhushak (author) in reply to gavoxDec 1, 2011. 7:39 AM
That one should work; it's a dual op amp. The model I used is a 741, which I found on that website as well: http://www.banzaimusic.com/JRC741D.html

Both should work at pretty much the same conditions, but I'd go with the 741 just to be safe. Looks like it's about a third of the price

Merci pour examiner, et bon chance!
gavox in reply to dnhushakDec 1, 2011. 9:41 AM
Great! thank you very much! I hope to do this project real soon!
Merci beaucoup!

and good french by the way!
-T. says: Nov 6, 2011. 4:34 PM
Thanks for a great post! I notice your parts list calls for 5x 1k resistors, but on your schematic they are marked 10k. I'm going to trust the schem and build with 10k's. This will be my first project on a breadboard so it won't be hard to swap if I got it wrong.
amruth says: Oct 25, 2011. 9:26 AM
HI, i like ur circuit and i would like to know the minimum and maximum frequency it can create. Thx in advance
cbien-stephen says: Oct 20, 2011. 9:30 PM
@dnhushak, this cool and something i'm interested in building, have you built any more you could post (filters, other osc's, etc)? i'm putting together my own modular synth
dnhushak (author) in reply to cbien-stephenOct 22, 2011. 4:47 PM
That was the intent, to begin building more things, but I'm a EE student, so you know, time time time time time suck like nobody's business. If I do get around to more, I will definitely post it here.
elijah_rippington says: Oct 21, 2011. 4:39 PM
could you replaced the frequency pot with a resistance based keyboard to get a simple square wave keyboard? or is the frequency range too limited to get a decent two octave keyboard?
dnhushak (author) in reply to elijah_rippingtonOct 22, 2011. 4:46 PM
It definitely wouldn't work like you think it'd work; when no key is pressed the circuit would see infinite resistance (open circuit) in that area of the oscillator, and would oscillate at an asymptotically low (or high, been a while since I've looked at the schematic) frequency, until a key is pressed, when it would go to a different pitch. There'd be no gating/enveloping to "note on" or "note off," to use midi terms, so there would always be a constant tone.
kkraft2 says: Oct 15, 2011. 4:22 PM
Hey I have a bit of a different question. I'm trying to make a light pulse on and off slowly (like in an old horror film) if I connected the light terminals instead of the the 1/4 jack, would I achieve this? Thanks so much. Great DIY
dnhushak (author) in reply to kkraft2Oct 15, 2011. 6:02 PM
You'd have to mess with the component values a lot to get it down to where it's a visible flashing; the frequency that this outputs is around 100-500Hz, much too fast for the naked eye to catch flashing lights. Normal lights operate by flashing at 60Hz, yet it still appears to be always on. Again, messing with the component values could yield an incredibly low frequency that could work. I'd be interested to see if it does!
allnighterco. says: Aug 14, 2011. 6:10 PM
I'm confused; my friend and I went by the image not the schematic (as we are 13 and have no prior training in PCB), how do you connect the potentiometer/ LED/ 9v/ input? also we wanted to add an output, how would we do that?
allnighterco. in reply to allnighterco.Aug 14, 2011. 6:13 PM
I meant connect output; add input
dnhushak (author) in reply to allnighterco.Sep 18, 2011. 11:01 AM
Not really sure how to answer your question; do you want to add an input that goes straight to the output, or have it altered in some way? Also, to attach the Potentiometer/LED/9v, you just use longer leads to go from the component/jack to the right spot on the PCB.
A.Kahn says: Sep 17, 2011. 6:39 AM
Hi! I got a little newbie question. Im using a electrolytic capacitor, for the 100uF, and they need to be placed in the right way according to + and -. I confuse myself everytime i try to figure out which way it should be placed... So if you could tell me how the capacitor should be connected i would be very happy!
dnhushak (author) in reply to A.KahnSep 18, 2011. 11:00 AM
It shouldn't matter too much, but place the positive end (the longer lead) towards the 500Kohm potentiometer, and that should work.
Gizah says: Aug 1, 2011. 11:11 AM
Hey, sorry, complete electronics noob here, could I make a guitar pedal out of this with and added jack and dpdt switch, or is that idea just plain stupid?
dnhushak (author) in reply to GizahAug 1, 2011. 12:09 PM
Depends on what you'd want to do with it, would it just pass the guitar signal through and then add the square wave signal to it?

It's very possible to do anything with electronics, it's just a matter of what you want to do =D
Gizah in reply to dnhushakAug 2, 2011. 10:17 AM
yes, exactly that, can you give me some brief instructions in what would I have to do? I've never built a pedal before, I'm gonna make a distortion one and I'd like to do this after that
superrust says: Jul 19, 2011. 1:47 PM
This looks pretty cool I'm thinking about giving it a shot.
1-40 of 72Next »
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!