For the past week or so I’ve been working on building a 4017 based matrix gate sequencer. I originally started thinking about this project after purchasing a set of Kawasaki electronic drum pads from a local thrift store. I wanted to create a tool I could use externally to trigger the drums in a continuous loop. As I began to design This build though i began to realize it’s full potential went well beyond that.
As this sequencer goes through each step it outputs a voltage (approximately 5V) at the top most pin on the matrix. By connecting this top pin to any of the 6 pins directly below it you can send this signal out through the associated output on the side of the gate sequencer. Because these signals are being sent at approximately 5V they are perfect for switching low voltage transistors such as the 2N3904 (essentially allowing it to turn on or off an electronic switch wherever you send it). By using these outputs to switch on or off transistors they could be used to trigger a sound from a toy, gate an oscillator, turn on or off a channel on a mixer, trigger an envelope or anything else you desire.
Click here for details on setting up triggers in a drum toy
I’ve also included some basic controls common to more traditional sequencers like the Baby 8. These include a rate control to adjust the clock speed, a hold switch which pauses the sequence, a step selector switch which allows you to select how many steps the sequencer goes through before restarting and a clock out for syncing other sequencers or circuits to the gate sequencer’s clock rate.
Parts List:
- 555 Timer IC
- 4017 Decade Counter IC
- 2 – 4.7 K ohm Resistor
- 1 – 100 ohm Resistor
- 200K ohm potentiometer
- 1 – 10 uf Electrolytic Capacitor
- 1 – 0.1 uf Ceramic Capacitor
- LEDs (one for power and one for each step)
- 1N914 Switching Diodes (One for each step)
- Rotary Switch (number of positions equal to number of steps plus 1)
- Toggle Switch – power
- Toggle Switch – hold
- Hook up wire (lots)
- Ribbon Cable (Strands equal to number of steps)
- Proto-Board
- Clock out jack (I used 3.5 mm headphone jack)
- Ground Connection Jack (I used banana)
- 6 – Output jacks (I used bolts but banana jacks are ideal)
- Matrix connections (I used pin headers but you can use whatever you have available, requires 1 out and 6 in per step)
- 9V battery clip
Schematic:
This is the schematic I drew up while building the gate sequencer. For simplicity sake I did not draw out all of the steps but they will each mimic the first two shown on this schematic. Bear in mind though that the 4017 output pins do not go in order, make sure to check the pin out diagram to make sure you are setting up the steps in the correct order. For 8 steps you should be pulling from pins 3, 2, 4, 7, 10, 1, 5 and 6 in order.
I wanted to mention as well as it is not clear on this schematic. If you are using fewer than all 10 steps from the 4017 counter you will need to wire the output of the next pin higher than the ones you have used to the final position of your rotary switch so that the counter resets after going through the steps you have used rather than the full 10. For example my gate sequencer uses 8 steps (outputs 0 to 7 on the 4017) so I wired output 8 (pin 9) to the final position of my rotary switch.
If you are using this device to trigger circuit bent toys you may also run into an issue where you are not able to trigger the same noise for two consecutive steps. This is because if you send the signal to the same output for multiple steps the output will remain high rather than sending a pulse for each step. I was able to find the fix above from Peter Edwards of Casper Electronics who used it in a similar project he built a few years ago. In order to correct this you can place an AND Gate on each output and send the clock pulse into the second input on each AND gate as shown above. This will cause the output to pulse in time with the clock when the signal from the matrix stays high for multiple steps.
The Build:
The first step of the build was to populate the circuit. Following the schematic I had created while testing and designing my gate sequencer I placed and soldered all of the on board components. I also used a number of short leads to put the steps in order on the board so that I could work with them easier going forward. One thing I want to mention is the row of diodes shown in the above picture were actually removed and placed on a secondary board (more details to follow) to simplify the finished product.
At this point I also mapped out the surface of my project box and populated the off board components (switches, knobs and LEDs). Due to the number of components on the box I used a piece of graph paper cut to the size of the surface to plan the device locations then used a pin to mark each one through the paper. From here I drilled the holes for the larger components and secured them in place.
Due to the sheer number of connectors required to build the matrix I was not able to use banana jacks (which would have been ideal). What I did have on hand though were a number of male to female jumper cables and a pile of pin headers. I cut 8 of the female heads for the top posts and used individual pin headers for the connections. To mount the individual pin headers i ran fairly high gauge solid core wire through the holes and soldered them to the short ends of each pin header. Next I pulled the wire back down the hole until the plastic guards on the pin headers sat securely against the top of the box. To secure them I poured a substantial amount of hot glue onto them from the underside of the box.
In order to limit the rats nest I foresaw forming between the top of the box and the main board I used a small scrap piece of proto-board as a junction. From here I ran all the connections needed for each step. The ribbon cable shown here is attached back to the main board (orange is step 1 through to black for step 8). From the board there is an orange cable for each step to go to the rotary switch (attached to the reset pin), a green wire to connect to the LED for each step and a red wire to go to the top pin of the matrix for each step. Note the red wire is after a diode on each step while the orange and green are before it.
Here is a picture after each wire has been soldered to its place on the back of the lid. I also used hot glue to attach the small proto-board to the lid of my gate sequencer. Make sure you test all of the connections thoroughly prior to gluing it down. Check for any bleed between steps and that all the solder connections are strong. Once you glue it down it will be very difficult to modify.
I connected all of the pins on the matrix (excluding the top row) in rows and connected each row to the corresponding output on the side of the box. One more coating of glue and I was ready to make the final connections. First I connected the ribbon cable to each of the 8 steps on the main board. Then I worked my way around the components which needed to be connected to the main board. Once everything was connected I wired up the battery, power switch and power indicator LED. I secured the battery with some Velcro and after some brief troubleshooting (There was a faulty switch I had to change) it was ready to go.
I am currently in the process of setting up trigger bends on my drum pad. Once they are completed and running smoothly I will have another article up describing how you can use your new gate sequencer to trigger noises from circuit bent toys and down the road you can expect to see me using gate and trigger voltages to control a variety of other devices. Within the next week or so I should also have a demo video of this device uploaded for you to check out.
Thanks for visiting and happy soldering!