Designing a channel footswitch for the Mesa Boogie Mark V (logic switching)

Started by ianmgull, December 12, 2020, 03:23:54 PM

Previous topic - Next topic

omnia:arts

Elliot Sounds has some great logic switching circuits using CD4043 (and other chips) and/or 555's with relays. I breadboarded them for a 3 channel amp I built that I want to control via footpedal momentary switches.
Like someone else mentioned an Arduino Nano is also quite capable of performing the same thing but with a bit less wiring. Both included LED indication.

ianmgull

Quick update, it works!!!



I'm going to put together a PCB layout for anyone interested in downsizing the massive factory foot switch. One point to make: for reasons beyond me, pinouts for two of the three IC's are mirrored. Make sure to double check pinouts if you use the schematic from earlier in this thread.


ElectricDruid

Nice work, ianmgull. Isn't it great when it works?!?  :icon_biggrin:

Quote from: PRR on December 14, 2020, 05:11:56 PM
> what's going on inside the amp

Look what is there. A 10K and 1.5k/3.3k/5.6k. Just like that we have:
10K:1.5K  0.65V
10K:3.3K  1.240V
10K:5.6k  1.795V
Thresholds of 0.92V and 1.5V would sort the three values. A resistor-string, half a LM324, and a couple diodes.

Is it that simple, Paul? Won't the other two non-grounded resistors be connected to 5V, and therefore in parallel with the 10K? So the three cases would be:

(10K||5K6||3K3) : 1K5
(10K||5K6||1K5) : 3K3
(10K||3K3||1K5) : 5K6

(can't be bothered to work those out, sorry)
Still, it's the same idea - create some distinct voltages to tell the amp what to do. It's a resistor DAC, of sorts.

The circuit is interesting, and wastes at least half a chip in every IC they used! There's the dual 4-input NAND, only one of the two used. All that does is generate a clock pulse when any button is pressed, and not generate one if further buttons are pressed while one is held down.
Then there's the octal D flip flop, of which they've used only three. That stores the state, and it's inverting, so when a switch goes low, the flip-flop outputs a high. Those three flip-flop outputs switch on one of the LEDs, and also drive the hex inverter chip (only half used too) which flips high outputs into low outputs so only a single resistor is grounded at any one time. This is the 3-bit DAC which provides the final voltage output to the amp.



ianmgull

Quote from: ElectricDruid on December 16, 2020, 06:18:53 PM
Nice work, ianmgull. Isn't it great when it works?!?  :icon_biggrin:

It's so rare that things work on the first try that I just have to bask in this feeling.  :icon_smile:

Quote from: ElectricDruid on December 16, 2020, 06:18:53 PM
The circuit is interesting, and wastes at least half a chip in every IC they used!

I noticed the same thing. Since the goal here is making a compact foot switch, I'm tempted to see if I can find the same logic circuits in smaller dip packages. I think it's just one 4 input NAND, three G flip flops, and three inverting buffers.

I should probably decide what size enclosure I'm going to use first.

ianmgull

Quick question for anyone that might know:

Each of the three IC's has a .1uf cap between its +5v supply and Ground. What does that do, and why three identical caps instead of one larger cap?





MikeA

Quote from: ianmgull on December 16, 2020, 08:50:37 PM
Each of the three IC's has a .1uf cap between its +5v supply and Ground. What does that do, and why three identical caps instead of one larger cap?
The IC data sheets recommend this, a 100nF cap to ground as close as possible to the IC on the power rails, to reduce incoming noise from less-than-perfect power supplies.
  • SUPPORTER

PRR

> reduce incoming noise from less-than-perfect power supplies.

And also to locally source the transient switching current spikes. This was essential on TTL, and became general habit.
  • SUPPORTER

ElectricDruid

Quote from: PRR on December 16, 2020, 11:17:42 PM
> reduce incoming noise from less-than-perfect power supplies.

And also to locally source the transient switching current spikes. This was essential on TTL, and became general habit.

+1 what Paul said. You'll see 100nF caps like this next to every chip on old logic boards. They provide a little reservoir of power for the chip which stops it from hitting the power supply when it switches. They need to be as close as possible to the chip, which is why there can't be just one big cap doing the same job.

marcelomd

Not only digital, but analog chips benefit from having a nearby capacitor, usually 100nF, on the power supply pins.

Single supply opamps use one. With dual supplies I've seen one (between +v and -v), two (between each v and gnd) and recently a friend recommended three (which seemed too much, honestly)