3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Nandhopper 1-Bit Noise Synth

Step 3Prototype: Make a Square Wave

Prototype: Make a Square Wave
«
  • square.gif
  • 3116549011_60fa6bc8ca.jpg
  • 3117376350_9e615bb011.jpg
NAND gates have two inputs and one output, and the 4093 has four NAND gates on it. Here's how they're connected. When both inputs are high, the output is low. In every other situation the output is high. The 4093 also has Schmitt triggers on its inputs, which helps make it resilient to noise and more likely to oscillate regularly.

There are a few ways to get a NAND gate to give you a square wave. We'll use a way that requires one gate, resistor, and capacitor per oscillator:

  • Wire one input to high (9 V)
  • Connect one input to ground via a capacitor
  • Connect the output to the grounded input via a resistor

If you watch the output of this gate on an oscilloscope/listen, and switch out capacitor and resistor values, you'll notice you can approximate the frequency of the square wave by f = (1 / (r x c)). For example, when c = 470 pf and r = 10 megaohms, f = 212 Hz (measured at 250 Hz). This is where those numbers maximum resistance numbers come in handy for getting an idea of what kind of capacitance value to choose.

In short, if you use this circuit and change the resistance you can change the frequency. Furthermore, you can turn it on and off by wiring input 1 to ground instead of high.
« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
111
Followers
6
Author:kylemcdonald