Blog

Two-Channel Guitar Stomp Box Makes Momentary Switches Latching | Hackaday

When we first saw [Maarten Tromp]’s article about a “momentary latching switch” for guitar effects pedals, we have to admit to being a bit confused. When it comes to push-button switches, “momentary” and “latching” seem to be at odds with each other, with different mechanisms inside the switch to turn one into the other. What gives?

As it turns out, [Maarten]’s build makes perfect sense when you consider the demands of a musical performance. Guitar effects pedals, or “stomp boxes,” are often added to the output of electric guitars and other instruments to change the signals in some musically interesting way. The trouble is, sometimes you only need an effect for a few bars, and the push-on, push-off switches on many effects pedals make that awkward. Earth Leakage Circuit Breaker

Two-Channel Guitar Stomp Box Makes Momentary Switches Latching | Hackaday

[Maarten]’s idea was to build a stomp box with momentary switches that act as inputs to an ATtiny2313 microcontroller rather than directly controlling the effect. That way, a bit of code can determine how long the switch is tapped, and activate a relay to do the actual switching accordingly. A short tap of the button tells the microcontroller to latch the relay closed until another tap comes along; a long press means that the relay is held open only as long as the button is held down.

Yes, he could have used a 555, a fact which [Maarten] readily acknowledges, but with some loss of flexibility; he currently has the threshold set at 250 milliseconds, which works for his performance style. Changing it would be a snap in code, as would toggling the latching logic. A microcontroller also makes expansion from the two-channel setup shown here easier.

Looking for more effects pedal action? We’ve got a bunch — a tube-amp tremolo, an Arduino Mega multipedal, a digital delay line. Take your pick!

He really needs to name it “The Tromp Stomp”!

I did something similar in a DIY MIDI remote, check what happens at 0:21 https://www.youtube.com/watch?v=XVLjw3Aq6cc

When any switch is pressed (held) for more than ~300ms it will switch back once you release. Great for short licks.

Also, TC Electronic’s Spark Booster had their ‘PrimeTime’ functionality which was basically the same: https://www.tcelectronic.com/product.html?modelCode=P0DDA

Neat idea anyway, we should see it more often in guitar/bass pedals!

I found the microcontroller vs timer discussion interesting. While a micro allows nearly infinite flexibility, it requires programming which is a drawback for those who want to build similar. You need a dev environment and programmer. The timer approach negates that problem at cost of inflexibility.

Perhaps an RP2040 would be a better choice than an AT Tiny. Costs a bit more than a Tiny but allows a USB connection for programming (which could also be used to allow simple settings to me made).

There’s not that much variation you can have from one button and a time delay, unless you start stomping morse code into it. Eventually you will reduce the number of actually useful features to something which can be managed via a DIP switch and a potentiometer you can turn with a small screwdriver.

Little microcontrollers are great! They can be tiny and inexpensive (eg an 8-pin DIP, or smaller package), and you don’t need capacitors and resistors to implement timers or oscillators. You just keep a cheap USB programmer in a desk drawer for developing, and making copies. I like little AVR or PIC micros for making little functional blocks like this. Eg nice little PWM dimmers for 12v LED strip lighting that also use short/long control; short button pushes will toggle through 3 presets, and a long push changes the dimming smoothly for as long as the button is held.

About the AMT rectifier pedal (r2) . How does it sound front of amp as a dirt pedal vs. running through the effects return as a solid state preamp? Been using an mxr pedal to get that Mesa low-mid growl along with Jrc(TS) type circuit. And it’s close into a pair of V30’s. I just can’t imagine spending 3g on a head at the moment….

Check this out: https://www.youtube.com/watch?v=ZLa8fbf251I

Also, AMT has the ‘brick’ pedals: https://amt-sales.com/preamps/bricks-preamps/rs-lead/ I have two of these (the P and the B) which are awesome for the package. They are getting expensive but Amazon (in Europe at least) has been dumping them for almost half price.

Pedals get constantly nailed with ESD and this project has no ESD protection, uA switch currents- I’ll pass on this design.

It seems reasonably protected; the only ‘direct’ connection to the microcontroller from the outside world is through the power in jack, which has protection from the 7805 regulator circuit. The audio path is well-isolated from the microcontroller by the relay (1000v isolation). The I/O pins have internal protection diodes. I couldn’t quickly find the value of the programmable pullups on the inputs, but one can add pullup resistors and some small capacitors to the footswitch inputs if desired.

Little microcontrollers like these are meant for real-world interface, so they can be pretty tough.

Running the relay coil directly off the pins is a recipe for disaster though. Every time it switches the current off, the self-induction of the coil punches the guts out of the internal protection diodes until they can take no more.

Possibly. The construction article refers to this discussion, which offers a few suggestions (eg added clamp diodes): https://electronics.stackexchange.com/questions/164607/avr-single-coil-latching-relay

If those output pins are never set back to input, then maybe the power handling of the output drivers is sufficient to dump transients back to the rails. And if the output transition is sufficiently ‘slow’ in comparison to a switch, the generated transient is much smaller. Speculating.

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Two-Channel Guitar Stomp Box Makes Momentary Switches Latching | Hackaday

Common-Anode Dual New Energy Diode Module By using our website and services, you expressly agree to the placement of our performance, functionality and advertising cookies. Learn more