Introduction background

The sound of a square-wave sequencer instantly brings to mind the sounds of some of the earliest video games, as well as—for some—the earliest computer music. A square wave is the simplest waveform to produce digitally, for it can be generated from a single digital line, without needing an analog-to-digital converter. You may be familiar with 8-bit music from video games or the chiptunes scene; we’re going to make something even more primitive: it’s 1-bit music. It’s possible to get it to sound a bit like Space Invaders or Pong, but more sophisticated tunes—or even playing more than one note at a time—are beyond its capabilities. Don’t expect it to hold a reliable pitch for anything really musical that you could sing along to. However, it’s still a lot of fun to play with. It looks and sounds a bit like the old analog sequencers seen on modular synthesizers.
 

Be aware that this is a fairly involved circuit. If you haven’t built anything electronic before, start with something else small, like the oscillator in MW108 Build Your Own Tone Generator. The eight oscillators in our circuit are each a version of that circuit. The circuit may seem a bit overwhelming for such a simple thing, and it’s fair to ask, why not do it with a microcontroller, such as,  an Arduino instead of building it all in hardware? Well, because building this circuit, you’ll have a chance to understand completely how it works, from beginning to end; it’s a really good introduction to digital electronics; and you’ll gain valuable experience in circuit layout and construction techniques. And because it’s fun. Building a circuit can be relaxing in a way that programming seldom is. 
 

Set Up materials and tools

a. 1 case: we built the prototype in a cigar box. Your local      cigar shop will often have empty boxes available for only a few dollars, or you could buy a full one and throw away the cigars. Whatever you use, make sure it is big enough for the circuit, batteries, and all 10 potentiometers (a.k.a. pots).

b. Insulated hookup wire: 24 gauge solid-core, 2 metres; 24 gauge stranded core in two colours, 2 metres.
 
 
c. 1 piece of circuit board: 10 cm X 15 cm or bigger.
 
 
d. Rosin-core electronics solder Consider using the lead-free variety, (not pictured).
 
 
e. Capacitors
C1: 10µF electrolytic capacitor.
C2, C7, C12, C17, C22: 100µF electrolytic capacitor (5 required).
C3, C4, C5, C9, C11, C14, C16, C19, C21, C24, C26: 0.1µF monolithic ceramic capacitor (11 required).
C6, C8, C10, C13, C15, C18, C20, C23 C25: 1µF electrolytic capacitor (9 required).
 
Note: Any voltage rating  for the electrolytic capacitor in this circuit is suitable, because any that you buy will be rated higher than the 6 volts used in the circuit. Capacitors rated for higher voltages will be physically bigger than those rated for lower voltages, but are functionally identical. 
 
f. Integrated Circuits
IC1: LM555CN timer.
IC2: 74HC161 counter. Make sure to use the HC (high-speed CMOS) version of this part.
IC3: 74HC151 data selector. Make sure to use the HC (high-speed CMOS) version of this part.
IC4, IC5, IC6, IC7: LM556CN dual timer (4 required).
 
g. Resistors
R2, R5, R8, R11, R14, R17, R20, R23, R26: 1k-ohm 1/4-watt resistor (9 required).
R3: 100k-ohm 1/4-watt resistor.
R6, R9, R12, R15, R18, R21, R24, R27: 220-ohm 1/4-watt resistor (8 required).
 
h. Variable Resistors—Potentiometers
R1: 100k-ohm linear taper potentiometer.
R4: 100k-ohm logarithmic (audio) taper potentiometer.
R7, R10, R13, R16, R19, R22, R25, R28: 50k-ohm linear taper potentiometer. (8 required).
Note: Potentiometers with a reverse logarithmic taper will work better for these and for R1, but are more difficult to find than linear taper parts.
 
i. 1 four-slot, AA battery holder.
 
j. 4 AA alkaline batteries (not pictured).
 
k. 10 potentiometer knobs (not pictured).
 
Note: Make sure the knobs you buy fit the shafts of the potentiometers you use. There are a surprising number of combinations of the locations of knob pointers, setscrews, and the flat parts on pot shafts. Make sure you try out the knobs on the pot shafts before assembling, to make sure the maximum and minimum points are indicated correctly when everything is assembled.
 
l. 4 6-32 or M3.5 machine screws and nuts (not pictured).
 
m. 1 output jack: 1/4” guitar-style jack (not pictured).
 

n. Multimeter.
o. Logic probe or oscilloscope (optional, but highly recommended).
p. Wire strippers suitable for 24-gauge wire.
q. Small wire cutters.
r. Needle-nose pliers (not pictured).
s. Soldering iron with small tip, 40 watts or less. A temperature-controlled soldering station is highly recommended (not pictured).
t. Safety glasses or goggles (not pictured).
Indelible-ink marker and pencil (not pictured).
u. Masking tape (not pictured).
v. Double-sided tape (not pictured).
w. Ruler marked in inches and millimetres (not pictured).
x. Drill, with a series of drill bits 1/16 to 1/4 inch (not pictured).
y. Small screwdriver (not pictured).
 

Make It project specs

Time Required: A couple of weekends (30 hours).
Complexity: Advanced.
Cost: 40 dollars.
 

What you need to know before beginning:
 
1. How to solder
a. There is a good collection of soldering resources on the website of Limor Fried, an engineer and artist.
b. You may also watch this video tutorial.
 
2. How to work with a circuit board
a. You may refer to  this website specifically about circuit-board techniques, as used in this project.
b. An excellent book for electronics beginners is Make: Electronics, from O’Reilly media.
 
3. How to read and follow a schematic
 
4. You should understand Integrated circuits‚ ICs, or chips
Look up the data sheets for the individual chips used in the project. The best resource for this is the website Octopart. The data sheets for the ICs are available as multi-page PDFs. 
 
 

1 prep the circuit

Note: Due to the complexity of the circuit, wire-by-wire instructions are not detailed. Ensure that you have read and understand all the instructions before you begin. A good way to proceed is to make a copy of the schematic, and, as you install each part, and make each connection, mark it with a highlighter on the schematic. That way you can see at a glance if you’ve forgotten something, and it makes it easy to keep track of where you are, if you are building the project over several days.
 

  • a.

    Fit the circuit board into the case you’ve chosen. If it does not fit, cut the board to size, leaving room for battery the holder to be placed into the box beside the circuit. Make sure there is clearance for the wiring and the potentiometers.

 

  • b.

    Dry fit the circuit. Place all the ICs onto the circuit board making sure there is room for the wiring.

  • c.

    Establish power buses on the circuit board. Use solid, uninsulated hookup wire or bus wire to make positive and negative connections on the underside of the board.

Note: The power buses will be used to connect the positive and negative of the battery via the power switch S1, and to provide points for each chip’s power and ground connections. 
 

2 build the clock

  • a.

    Mount the 555CN chip (IC1) on the circuit board. Make sure that pin 1 is at the lower left when looking at the board right-side up. 

 

 
  • b.

    Mount R2 and C1, C2, and C3 nearby.

Note: Make sure you identify pin 1 of the chip. It’s a good idea to mark pin 1 on the underside of the board, using an indelible marker.
 

  • c.

    Make all connections to IC1 as shown in the schematic. Don’t forget the connections to the power and ground buses.

 

  • d.

    Connect to pins 6 and 7 of 555CN chip (IC1) two pieces of stranded wire long enough to reach the potentiometer R1 when the board is installed in the case. It’s better to make these slightly long, then trim them in final assembly rather than have them too short.

 

  • e.

    Twist these wires together and label the wires with masking tape marked tempo.

 

3 build the counter

  • a.

    Mount the 74HC161 counter chip (IC2) near IC1. Make sure that pin 1 is at the lower left when looking at the board right-side up. 

 

  • b.

    Mount C4 as near to IC2 as possible.

 

  • c.

    Connect one lead of C4 to pin 14 of IC2 and the other to pin 7 of IC2. 

 

  • d.

    Connect pin 14 of IC2 to the positive supply, and pin 7 of IC2 to ground.

Note: C4 does not have polarity—it can be wired either way. 
 

  • e.

    Make all connections to IC2 as shown in the schematic, taking careful note of which pins are tied high (connected to the positive supply), and which are tied low (connected to ground).

 

  • f.

    Connect pin 3 of IC1 (clock output) to the pin 2 of IC2 (clock input).

 

4 build the data selector

 
  • a.

    Mount 74HC151 data selector chip (IC3), beside IC2. Make sure that pin 1 is at the lower left when looking at the board right-side up.

Note: Make sure in the following steps that you leave lots of room on the circuit board for the eight signal lines that will come from the oscillator section.
 

  • b.

    Mount C5 as near to IC3 as possible.

 

  • c.

    Connect one lead of C5 to pin 14 of IC3 and the other to pin 7 of IC3. 

  • d.

    Connect pin 14 of IC3 to the positive supply, and pin 7 of IC3 to ground. 

 

  • e.

    Connect pin 6 of IC3 to pin 7 of IC3. 

 

  • f.

    Connect the outputs QA, QB, and QC of IC2, to the inputs A, B, and C of IC3 as shown on the schematic.

 

  • g.

    Mount R3 and C6 near IC3, and wire them as shown on the schematic:

i.      Connect pin 5 of IC3 to one lead of R3.
ii.     Connect a length of stranded wire to the    other lead of R3.
iii.   Connect a second length of stranded wire to ground.
iv.   Connect a third length of stranded wire to the + side of C6.
v.     Twist these wires together and label the wires with masking tape marked volume. These wires will go to the volume pot.
vi.   Connect a length of stranded wire to the – side of C6.
vii.  Connect a second length of stranded wire to ground.
      viii.  Twist these wires together and label the           wires with masking tape marked output. These will go to the output jack.
 

6 build the oscillator

Note: This is most of the work in building the project. There are a lot of parts and a lot of connections, but it’s really the same circuit, built four times. You can also think of it as the same circuit built eight times, with each 556 chip being shared between two oscillators.
 
There are two ways to approach this stage:
  1.  Build each circuit completely, then go on to the next,      or
  2. Build it in assembly-line style, installing the corresponding part in each of the eight circuits at the same time, building all four at once.
 
Make sure you leave enough room for all the parts, as well as the wiring. It’s easy to paint yourself into a corner trying to make things too tight. A little bit of preplanning and dry-fitting the layouts goes a long way. You can make many of the connections on the underside of the board. 
 

Build the first oscillator
  • a.

    Mount the 556C dual-timer chip (IC4) on the circuit board. Make sure that pin 1 is at the lower left when looking at the board right-side up. 

 

  • b.

    Mount R5, R6, C8, and C9 near the pins 1 through 7 on the one side of IC4.

 

  • c.

    Mount R8, R9, C10, and C11 near pins 8 though 14 on the other side of IC4. 

 

  • d.

    Install C7 near pin 14 of IC4.

 

  • e.

    Make the pin-to-pin connections on IC4.

i.      Connect pin 4 to pin 10 and then make a connection from this pair to the + supply rail.
ii.     Connect pin 6 to pin 2, and pin 8 to pin 12.
iii.   Connect pin 14 to the positive power supply, and the + side of C7.
iv.   Connect pin 7 to ground.
v.     Connect the – side of C7 to ground.
 

  • f.

    Connect the various resistors and capacitors to their associated pins, and also to + or ground, as applicable.

Note: If you have laid the circuit out well, you should be able to do much of this by simply using the component leads, and connecting them directly to the pins. Make sure to use insulated hookup wire if there is any chance of a connection touching a point to which it should not connect, or if the connection has to span a long distance. 
 

Note: The connections in the following steps are separated on the schematic, and indicated by the circled letters A (for first circuit) through H (for eighth circuit), indicating which outputs of ICs 4, 5, 6, and 7 should connect to which inputs of IC3. Take careful note of the pin numbers on IC3.
 
  • g.

    Connect pin 5 of IC4 to pin 4 of IC3 (the first data input: D0).

 

  • h.

    Connect pin 9 of IC4 to pin 3 of IC3 (the second data input: D1).

Note: When you wire the remaining oscillators, they will connect, in order, to inputs D2 though D7. 
 

  • i.

    Connect a long pair of leads from one side of R6 and pin 2 of IC4 as was done for the clock circuit.

 

  • j.

    Twist these two wires together and label with masking tape marked R7

  • k.

    Connect a long pair of leads from one side of R9 and pin 12 of IC4.

  • l.

    Twist these two wires together and label with masking tape marked R10.

Note: You will want to arrange the potentiometers in order on the case, so when doing this step, so make sure leads from all oscillators are long enough to reach their associated potentiometer. 
 
 

  • m.

    Repeat steps 5a to 5l to connect ICs 5, 6, and 7.

 

 
 

6 final assembly

  • a.

    Connect the black negative wire of the battery pack to the ground rail(s) of your circuit. 

 

  • b.

    Connect the red positive wire to one side of switch S1, and the other side of S1 to the positive supply rail(s) of your circuit. If you have used multiple supply rails, make sure they are all properly connected. 

 

  • c.

    Mount the potentiometers in the case. You will need room for the eight frequency pots, plus the tempo pot and volume pot. 

 

Note: It’s a good idea to label them, since you will be working on the backside of the panel, and it’s easy to get the order mixed up. 
 

  • d.

    Mount S1 and the output jack. 

 

  • e.

    Mount the circuit board in the case. You can simply use machine screws from the hardware store or special standoffs from an electronics shop. 

 

  • f.

    Connect the pair of wires from IC1 to lugs 1 and 2 of the tempo potentiometer (R1).

  • g.

    Connect a short piece of wire between lugs 2 and 3 of the tempo potentiometer.

 

  • h.

    Connect the eight pairs of wires from the oscillator section to the frequency potentiometers: R7, R10, R13, R16, R19, R22, R25, and R28, ensuring that the wires from the oscillators connect to the correct lugs on the potentiometers, 1 and 2 as in the oscillator schematic.

Note: To view the oscillator shematic in detail, please download the PDF above.
 

  • i.

    Connect a short piece of wire between lugs 2 and 3 on each potentiometer.

Note: The polarity of the wires themselves does not matter.
 

  • j.

    Connect the volume potentiometer leads from 4g–v to the volume pot, ensuring the wire from R3 goes to lug 1, the wire from the – side of C6 goes to lug 2, and the wire from ground to lug 3. 

 

  • k.

    Connect the pair of wires from step 4g–viii to the output jack, ensuring that the ground wire is on the ground lead, and the wire from the – side of C6 goes to the tip, or hot lead. 

 

7 test your circuit

  • a.

    Connect the unit to an amplifier, and turn it on. Turn up the volume potentiometer, until you hear sound. If you hear nothing, immediately turn the circuit off, and proceed to the troubleshooting section. 

  • b.

    Adjust R1 to near the lowest level, you should be able to hear the sequencer stepping through tones. Make sure there are no gaps you should be able to hear each oscillator in turn. Check that the tempo potentiometer controls the rate, and that each frequency potentiometer increases the frequency when turned clockwise. 

 

  • c.

    If anything seems amiss, turn the circuit off, and proceed to the troubleshooting section. 

How It Works three basic building blocks of digital circuits

1. Clock
 
The term clock has a specific meaning in digital electronics—it is a repetitive signal that controls when actions take place in a circuit. When you buy a computer, the speed of its clock, measured in megahertz, or gigahertz, is often a selling feature. In this project, the 555 chip controls the rate of the sequencer and therefore is the clock for this circuit. The eight oscillators built with the 556 chips are also technically, clock circuits. The eight oscillators in this project are all built using a circuit configuration called an astable multivibrator. The timing of the circuit is based on the values of the timing resistor—in our case, a potentiometer—and a timing capacitor.
 

2. Binary Counter
 
The 555 clock feeds into a 74HC161 binary counter chip. This chip takes a clock as input, and outputs a binary counting sequence on its four outputs. The binary number system only uses two symbols: 0 and 1. In digital electronics, a 1 is represented by a voltage on an output or input, and a 0 by the absence of a voltage. The output bits (bit is an abbreviation of binary digit) are labelled A, B, C, and D. The “A” bit is the Least Significant Bit (LSB) and is written furthest to the right. The count sequence goes like this:
 
DCBA
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
and then back to
0000

and so on.

 

3. Data Selector
 
From our counter, we send the three bits to the 74HC151 data selector chip. This chip selects one of its eight data inputs and sends it to its output based on the binary number sent to its select inputs, which are labelled, A, B, and C. And you will probably not be surprised that each of the eight data inputs is fed by the output of one of the oscillators. So, if we feed “000” to the select inputs, it selects the first oscillator—digital circuits like to count starting with 0. If we give it 001, it selects the second, and so on. 
 
Note: To view the data selector diagram in detail, please download the PDF above.
 

Help! troubleshooting

It is best to have a logic probe or oscilloscope to troubleshoot the circuit. A multimeter, while good for checking voltages, cannot respond to the rapidly changing digital signals in this circuit. A logic probe is a reasonably inexpensive tool that is handy to own if you are interested in working with digital electronics. An oscilloscope is a major investment, but you may be able to get access to one at a hacker space or a school electronics lab. 
 

Check each chip to see if it is hot:
 
  • a.

    Touch each chip as if you were touching a hot iron.

  • b.

    If you find a hot chip, turn the power off and solve the problem before turning it back on.

  • c.

    A hot chip is usually caused by a backward connection or an output shorted to one of the power rails. 

 

If there is no sound at all:
 
  • d.

    Check the power and ground connections to each chip with a voltmeter. Or, using a logic probe, verify that the power pins are at a “high” level (usually indicated by a red light) and ground is at a “low” level (green). An indication of neither high nor low indicated by a “floating” pin, which could be a problem.

  • e.

    Check that the audio output is connected properly and is not shorted out. A logic probe on pin 5 of IC4 should show both high and low lights on. 

 

If only one tone is heard—no sequencing
 
  • f.

    Check pin 3 of IC1 with a logic probe to verify that it the signal is changing from high to low at a rate that you can easily see with the logic probe. Verify that this same signal appears at pin 2 of IC2 and on pin 14 of IC2. A signal with half the rate should appear on pin 13 of IC2. And a signal with half that rate (one-quarter of the rate at pin 2) should appear on pin 12.

  • g.

    If these signals are not present, check that all the pins of the IC2 that should be tied high or low are at the correct levels. If these signals are correct, verify that they are reaching pins 11, 10 and 9 of IC3, and that all of IC3s pins are at the correct levels. 

 

If one or more tones missing:

  • h.

    Check the outputs (pins 5 and 9) of the 556 chips in the oscillator section of the circuit with the logic probe. You should see both the “high” and “low” lights on simultaneously. This shows you that the circuit is oscillating (at a rate too fast for your eyes to see). If you are checking the outputs with an oscilloscope, you should see a square wave. If either the “high” light or “low” light is on, or if neither light is lit, then there is a problem.

  • i.

    Check that the output signals above show up on the appropriate input pins of the IC3. If an oscillator is lacking an output, or the output is there but not showing up on the input of IC3, check the connections and the part values associated with that oscillator and the connections to IC3

 

Reference oscillator schematic

Note: To view the oscillator schematic in detail, please download the PDF above.

Reference clock, counter, and data selector schematic

Note: To view the clock, counter, and data selector shematic in detail, please download the PDF above.
 

Reference glossary

Ω The Greek letter omega, used as a symbol for ohms.
Binary. A number system using only two symbols: 0 and 1.
Bit. Short for binary digit.
Capacitor. A device that can store an electric charge.
Chip. The informal name for an integrated circuit.
Circuit Board. A board, usually fiberglass, perforated with holes to mount components in.
Digital. A circuit that only has two voltage levels: high and low, represent the binary digits 0 and 1.
Farad. A measure of capacitance, designated after Michael Faraday.
Ground. The common point in a circuit, where all signals return.
Integrated Circuit (IC or chip). A component containing an entire electronic circuit fabricated on a tiny piece of silicon.
Kilo. A prefix meaning 1000. One kilo ohm, usually written 1kohm, or 1 kΩ, is 1000 ohms.
Leads. Pronounced leeds. The wires protruding from an electronic component such as a resistor.
Logic Circuit. A digital circuit.
Logic Probe. A device that can show levels in a digital circuit.
µ. The Greek letter mu, used to denote micro or 1 millionth. 1µF is read as one microfarad and is equal to one millionth of a farad.
µF. Microfarad. See above.
Ohm. A unit of electrical resistance, designated after Georg Ohm.
Oscilloscope. A device that can show a real-time graph of voltage over time.
Pins. The connection points of a chip, also known as legs.
Potentiometer: A variable resistor, often called a “pot” for short. The name is derived from an early use in circuits to measure electrical potential, also known as voltage.
RCA Connector. A small connector, also known as a phono connector, invented by the Radio Corporation of America, and often used in home audio.
Resistor. A device that limits electrical current.
Shield. The outer wires in an audio cable, which surround the centre conductor, and are connected to signal ground.
 
 


Images by: Adam Coish. Schematics and diagrams by: Rob Cruickshank.