4093 Weird Noise Generator

5.8K4010

Intro: 4093 Weird Noise Generator

This project was spawned from reading Nic Collins excellent "Handmade Electronic Music". I've been an avid circuit bender and electronics enthusiast for years, and had these parts laying around for nearly a decade. Finally, last Christmas eve, I got to work, and after a few calculations and some tinkering, built this thing in a dorm room. Literally, with a soldering iron and finger nail clipper to cut wires. The idea came from a friend who writes code for video games, and wanted something that sounded like "weird, electronic UFO noises". This circuit sounds reminiscent of a theremin.

I built mine with 2 sets of gated oscillators. The chips can be configured in many ways--4 oscillators in a row, 4 single oscillators.... The trick is that the final outputs cannot just be tied together or the device will not function. The outputs need to be decoupled either with resistors or diodes (which have pronounced differences in sound).

It would be a good idea to breadboard and tweak the circuit before soldering it up.

I selected the values so that the the two halves oscillated with overlapping frequencies. With careful tuning, the gating can create interesting rhythms with the tone being modified by shading the photoresistors or shining a light on them. It's great fun (and super annoying!) fun!

STEP 1: An Oscillator Circuit Based on the NAND Logic Function

One of the original home-built
synthesizer projects, and perhaps still the best known, is the so called “Atari Punk Console”. This device was the brain child of Forest Mims III, and got its name from the lo-fidelity, cheesy video game sound that it produced. (see this excellent Instructable https://www.instructables.com/id/How-to-make-the-A... ). The device is based on a pair of 555 timer IC chips, or a 556 dual timer chip. It's a so called “gated oscillator” where the output of timer circuit turns on and off the output of the other. It gives rise to a strange “stepped tone” that is a great deal of fun to play with.

Presented here is a weird electronic noise generating device that is actually somewhat musical. It is based on the 4093 Quad NAND gate devices presented in Nic Collins' excellent “Homemade Electronic Music”. Unlike a basic “oscillator” circuit, where the frequency is controlled by the time constant of a RC circuit (a resistor/capacitor circuit), a NAND gate actually has 2 inputs. The oscillators can be wired to run independently, or more interestingly, they can be wired such that the output of one gates the output of the next.

As stated, the frequency (ie, the tone) produced is a function of a resistance and a capacitance. An RC- circuit charges and discharges based on an exponential function. Small resistors and capacitors can charge and discharge quickly (ie, they allow the chip to change state rapidly and produce high pitches), while large capacitors and resistors produce low frequencies. Large enough values actually produce a kind of metronome “tock tock tock” sound.

The easiest and cheapest way to control the tone of such a device is by picking a capacitor value, and then installing a variable resistance of some kind to adjust the tone. The cheapest, although musically most difficult to play, is a cheap photo resistor. When light is shining on them, the resistance goes down. In the shade, the resistance goes up. Another easy to implement strategy is a potentiometer.

It would be a good idea to breadboard the device—the sonic response can be varied by easily plugging in different capacitors and resistors, and then transferred to perf-board.

The device presented here is actually a pair of gated oscillators, with the outputs tied together through resistors of diodes (switchable). The diode coupling produces an interesting “ring modulator” kind of sound. I designed this one so that the first stage would act to set up a kind of stable “beat”. By using a 10uF capacitor, and a 1Meg potentiometer, frequencies are quite low. This turns on and off the second stage which uses a 0.1uF capacitor, and a photoresistor. There is no reason that all 4 cannot be wired together, or that pots or photo resistors cannot be used for each stage. (this is why bread boarding is a good idea—TONS of design freedom with easily switchable parts).

The device outputs about ½ Watt. It can power a small speaker (an old radio speaker should work). It can also power an amplifier, mixer, or other audio inputs. It would be a good idea to install a volume pot after the coupling diodes or resistors.

Construction should follow good practices. Keep leads short, make nice clean solder joints.... (there are great Instructables regarding perf-board construction)

STEP 2: Parts

It is doubtful that the 4093 IC chip will be available at a local electronics store. At this writing, Jameco sells them for ~$0.45 a piece. Get a tube of 10 while you're at it. The other parts should be commonly available. Photoresistors are normally available at Radio Shack, or cheap from Jameco or other suppliers. Assorted parts such as 9V battery connectors, switches, etc, are easily sourced locally, or purchased online (which, in my experience, is vastly cheaper). Locally they are typically sold as a "grab bag", but when purchased through a supplier, they come in several values. I prefer the 16k variety. Something close to that will work.

I built this one on perf-board, using some wire-wrap and jumping other connectors with bits of insulated wire. It's a small circuit, so feel free to lay it out with room to work and solder. This attempt (the prototype) is quite sloppy. It was fabricated from scraps and recycled parts, and built in about 3 hours in a dorm room! I did not follow my own advice, and neglected to bread board it. This meant soldering and de-soldering parts in. Do yourself a favor, and test the stages on a bread board.

This version does not have a volume control, on/off switch, volume control, etc. For an actual "instrument", it would be advisable to install these things, as well as an output jack. Start at maybe 50k for the volume pot. This will compensate for the diode coupled circuit being significantly louder than the resistor coupled circuit.

STEP 3: Construction Tips

Solder the 14 pin IC socket to the perf board. Note that the socket has a notch in it, which denotes where the #1 pin starts. IC chips are numbered from upper left, counter clockwise. I like to start with the power to the chip. Note here that the entire IC chip requires 9V (to pin 14) and ground (pin 7).

Also, as in the drawing, the first oscillator is set at 9V. Then the feedback resistors and capacitors can be soldered into place. For this, it is a good idea to start with the final package, to make sure the leads to the pots and photoresistors are long enough to allow mounting.

It is a good idea to test each oscillator as it is completed. If you power up a full circuit and it "doesn't work", that is a lot of wire to chase down a problem in. Testing after each step will allow tweaking and repairs as needed. Do a good job on the solder. Nice clean, hot joints. Clip off excess wire and keep things neat and direct.

All 4 of the NAND gates are equivalent. I laid mine out with the "right 2" and "left 2", and the mounted the coupling diodes and resistors underneath

Addendum: It dawned on me this morning, a word should be said about trouble shooting. If the device "doesn't work", check the obvious first. Is +9V supplied to pin 14? Is pin 7 grounded? Is the chip installed right side up? If this checks out, check the capacitors. Electrolytics are polarized. Make sure the (-) side is towards ground. Another perf-board problem is solder-bridges. If too much solder, or tiny strand of wire bridges 2 pads, the circuit can be shorted. Check the gaps between all the pads. An X-acto knife is good for cleaning up small bridges, or they can be de-soldered with a braid. As far as "tweaking" the components, adjust the values as follows. If you turn on the device, but notice that the frequency is so high that only bats can hear it (you might hear a very high pitch whining), increase the capacitor value or the resistor (this was why a series resistor was placed with the photoresistor. Their value was too low to work properly, and would go into ultra-sonic mode in bright light. The series resistor limits the high end). The capacitor can also be increased in value. For ceramic disks, remember that capacitance ADDS in PARALLEL. If a 0.1uF is producing too high of a frequency, try adding an additional 0.1uF in parallel with it.

Again--do yourself a favor and bread board the circuit. This allows for changing the response with easily plugging in new or additional parts. Take careful notes, draw up the diagram, and if possible, keep the bread board version intact. Then build an exact copy on the perf board. Having a working device to examine makes building the hard-wired version much easier.

Finally--to mount the photo resistors, I have had luck with drilling a hole in a plastic project box just a hair bigger. I install the photoresistor from the inside of the box, and then apply a tiny drop of super glue which locks it in place. You will have to remove it with a drill should it require repairs, but it works great.

STEP 4: Finished Circuit

While not actually "finished" (the circuit is a mess of wires, alligator clips....), the circuit is up and running. Here are 2 sound files with the outputs set to diode and resistor coupled. They were recorded to laptop, using a pillow over the output speaker to reduce the volume.

It really should be mounted in a cool project box, or something more secure. This one is asking to get broken!

Enjoy--it's a fun and weird sounding circuit. Using a free program such as Audacity allows for modifying the sound with echo, delay, flanging, stereo....

10 Comments

Ah--dummy me.

That is a double pole double throw switch. The two "halves" of the circuit connect through the middle 2 lugs on the switch. Then the diodes connect to the top 2, and the resistors connect to the bottom 2. It's supposed to resemble looking at the bottom of a DPDT swtich,

Good catch!

Hello. I will ask you a question. When attaching a volume after dpdt sw, should I connect diode out and resistor out together? (To No. 3) Then output 2 No. 1 ground
Is it OK?

Hi Honio. You can indeed just tie the diode and resistor outputs together. When you select, for example, the resistor output on the switch, the diodes (which are before the switch) are no longer in the circuit. Then, wire it something like this: I'm not sure what would be a good value for the potentiometer? The output voltage is fairly hot (a little over a volt) so probably a 500K pot would be a good starting place? Let me know if it works. Did you build the circuit yet? It's a lot of fun to mess with. http://guitarwiring.blogspot.com/2011/02/simple-guitar-wiring-for-volume-pedal.html

Not a problem--if I get a moment I'll update the drawing. Any assembly or design problems, don't hesitate to ask! These CD4093 circuits are a lot of fun to mess with and can really produce some funny and strange noises

Yes, shown is the "hot" output lead. If you just tie the outputs from the 2 oscillators together directly (without a diode or resistor), the oscillators stop functioning. I tested both ways, and both sounded cool--and different. So I decided, let's keep them both and put them on a switch.

I am using mine by alligator clipping the hot to the central wire of a sheilded cable, and the circuit ground to the shield. It would be a much neater and smarter idea to solder the diode or resistor outputs to a 1/4" jack HOT, and ground to the circuit ground. I got mine to the prototype stage, and it never quite made it into a project box!

The noise you get is awesome! I used the cd4093 circuit for years, for a lot of projects. It remains one of my favorite circuit! (I never had to use a 555 and am pretty happy about that)

Ha! I love comments like that! Only an electronic noise nerd would understand the beauty of such a thing! The 555 circuits (the APC) has a cool "stepped" response, but I think this CD4093 is more "organic" sounding? I like how the diode coupling seems to impart some frequency mixing--like it's allowing cross talk between the two halves? I don't entirely understand how that works. That's the fun part of being an electronics hack--you don't have to understand how it works!

Do you have any cool 4093 noise circuits? I'm also a big fan of the chip.

Unfortunately I don't have any noise circuit... I built once an electronic mosquito (You know that annoying device hidden in a room that beeps high frequency 30 minutes after the last light goes off, and stops right away when light is back on) out of one single cd4093, a couple resistors, capacitors, a LDR and a 9V battery. But I lost it a couple years ago with it's schematic. It would not be so hard to design it again actually. But most of the circuits I built with 4093 where actually more about timing (oscillators, mono-stables, delays,...) and high impedance state detection. Why I prefer 4093 vs 555 is its low power consumption (nearly 0 when not switching) and its wide power supply capability (3-18V)

Thanks! These oscillator circuits are great fun--you can tweak them so easily with basic resistor and capacitor changes, and cover the entire range of frequencies. With a little freeware signal processing (delay or reverb) you can get some truly "other worldly" noise out of them! Nic Collins' book is a must read