A Switching Scheme  [documentation]

Original effects with schematics, layouts and instructions, freely contributed by members or found in publications. Cannot be used for commercial purposes without the consent of the owners of the copyright.
User avatar
mictester
Old Solderhand
Information
Posts: 2915
Joined: 11 Sep 2008, 20:29
my favorite amplifier: Mesa Boogie, Roost Sessionmaster, AC30
Completed builds: Hundreds! Mostly originals, a few clones and lots of modifications.
Location: Somewhat closer to Amsterdam than before!
Has thanked: 32 times
Been thanked: 825 times
Contact:

Post by mictester »

Groovenut wrote:
dukie wrote:
Groovenut wrote:on-latching version of this relay. That is your issue. I have successfully tested this circuit with AL5W-K and 2N3904/2N3906 and it only draws ~60uA current when on. Try switching to the latching version. That should cure your problem.
Btw, If I'm using the latching relay then should I use momentary switch or just ordinary SPST switch?

Cheers! :)
With the posted circuit you need to use a latching switch. If you want to use a momentary switch, you have to use an electronic latch of some sort.
Exactly right. I have built them using 4013 or 4027 (or even 4093) flip-flops to replace the series switch. The CMOS draws minute current itself, and you know how little current is pulled by the relay circuit... The effect circuit pulls almost all of the current drawn from the battery!
"Why is it humming?" "Because it doesn't know the words!"

User avatar
mictester
Old Solderhand
Information
Posts: 2915
Joined: 11 Sep 2008, 20:29
my favorite amplifier: Mesa Boogie, Roost Sessionmaster, AC30
Completed builds: Hundreds! Mostly originals, a few clones and lots of modifications.
Location: Somewhat closer to Amsterdam than before!
Has thanked: 32 times
Been thanked: 825 times
Contact:

Post by mictester »

OK.

A quick play with DIYLC came up with this layout. I built two like this tonight, so it works fine! The boards were fixed to the back of the footswitches.
Quite small!
Quite small!
Low_Current_Relay.gif (14.04 KiB) Viewed 3873 times
There were mounting holes either side of the relay, so the board was left a bit bigger than it needed to be.
"Why is it humming?" "Because it doesn't know the words!"

User avatar
soggybag
Resistor Ronker
Information
Posts: 279
Joined: 07 Aug 2007, 23:29
Completed builds: Fuzz Face, Tone Bender, Big Muff, ICBM, Ugly Face, Green Ringer, Super Fuzz, Multiplex Echo, Multiplex Jr, Rebote, Echo Base, SHO, Fuzz Factory, Titan Boost/Octave, Easy Face, Tone Bender MkII, Trem Shifter, Zero Point Mini...
Location: San Francisco
Has thanked: 28 times
Been thanked: 27 times
Contact:

Post by soggybag »

mictester wrote:You'll all know my hatred of the crappy TPDT and similar footswitches.

I still have customers who insist on "true bypass" and a "solid copper path bypass". Buffered bypass is almost always better, but just to satisfy these (very wealthy / influential) musicians, I frequently use bistable relays. Many players are deeply distrustful of mains powered effects, and (perversely) demand batteries that last for many hours. I also have a large supply of really sturdy SPDT footswitches (like the old "Carling" ones). To overcome the deficiencies of the switches (they crackle and can't do proper bypass), I've been using the following circuit. The relay is easily available from all the major suppliers (including many Ebay ones) and if used in this circuit, draws micro-amps!
Ultra-low_current_relay.png
The relay is slightly unusual - it has two stable positions, and is set and reset by small current pulses sent in one direction then the other through the coil. The transistors I used in the originals were BC183L for the NPN and BC213L for the PNP. You can also use 2SC1815 and 2SA733 or BC550 and BC560. The last batch of them had blue LEDs wired across the anode of the diode to ground through a 8k2 resistor, and used 2N3703 (PNP) and 2N3706 (NPN), and were made to fit on to the back of the footswitch.

The circuit gives six big advantages:

1. Hermetically sealed gold contacts - clean and quiet switching.
2. Additional relays can be put in parallel with the first one. You might have to increase the 100µF to 220 µF, but the switching will be entirely reliable.
3. Draws minute current - the whole of the battery power will be used to power your effect and the indicator LED!
4. Passes the "disconnected battery" "True Bypass" test.
5. Costs less than a good quality DPDT footswitch.
6. Allows simple connection of an indicator LED.

Great idea, I'm curious about the type of foot switch you are using with this and what is the part number for the relay?

User avatar
Brink
Degoop Doctor
Information
Posts: 302
Joined: 11 Jul 2009, 20:22
Location: NY
Has thanked: 3 times
Been thanked: 18 times

Post by Brink »

mictester wrote:The only addition I sometimes make to this circuit is to use a CMOS bistable to feed the anode of the diode - the "+" point. I use a 4013 configured with one side as a bistable (pin 1 or 13 feeds the switching circuit directly), and the other side as a power-on reset and debounce circuit, or I use a 4093 quad schmitt NAND with two gates for the bistable, one for debounce and one for switch-on reset. Either circuit then allows the use of a momentary switch.
Do you have a schematic or two floating around?

User avatar
DeanM
Resistor Ronker
Information
Posts: 441
Joined: 05 Jan 2010, 20:42
my favorite amplifier: Marshall VM 2466
Location: Ireland
Has thanked: 21 times
Been thanked: 5 times

Post by DeanM »

Recently i was looking at PIC microcontroller driven relay circuits. But with the low current and the fewer parts count that this circuit has its probably better than using a PIC and a momentary switch to do the switching? or is there any advantages to PIC/Momentary?

Also I found this circuit online too.
http://circuitschematicelectronics.blog ... relay.html

User avatar
LaceSensor
Cap Cooler
Information
Posts: 584
Joined: 02 Jan 2011, 12:01
Has thanked: 57 times
Been thanked: 277 times

Post by LaceSensor »

mictester wrote:OK.

A quick play with DIYLC came up with this layout. I built two like this tonight, so it works fine! The boards were fixed to the back of the footswitches.
Low_Current_Relay.gif
There were mounting holes either side of the relay, so the board was left a bit bigger than it needed to be.
Dumb question where would you wire the LED for the status?

Thanks

User avatar
YuGi
Degoop Doctor
Information
Posts: 164
Joined: 01 Nov 2009, 19:22
Has thanked: 1 time
Been thanked: 25 times

Post by YuGi »

LaceSensor wrote: Dumb question where would you wire the LED for the status?
mictester wrote: The last batch of them had blue LEDs wired across the anode of the diode to ground through a 8k2 resistor
Last edited by YuGi on 21 Jul 2011, 16:28, edited 1 time in total.

User avatar
DeanM
Resistor Ronker
Information
Posts: 441
Joined: 05 Jan 2010, 20:42
my favorite amplifier: Marshall VM 2466
Location: Ireland
Has thanked: 21 times
Been thanked: 5 times

Post by DeanM »

LaceSensor wrote:Dumb question where would you wire the LED for the status?
Thanks
From diode anode to ground through a resistor to limit current.

See mictesters previous comment>
mictester wrote:The last batch of them had blue LEDs wired across the anode of the diode to ground through a 8k2 resistor

User avatar
mictester
Old Solderhand
Information
Posts: 2915
Joined: 11 Sep 2008, 20:29
my favorite amplifier: Mesa Boogie, Roost Sessionmaster, AC30
Completed builds: Hundreds! Mostly originals, a few clones and lots of modifications.
Location: Somewhat closer to Amsterdam than before!
Has thanked: 32 times
Been thanked: 825 times
Contact:

Post by mictester »

soggybag wrote:Great idea, I'm curious about the type of foot switch you are using with this and what is the part number for the relay?
The relay part number is TAKAMISAWA AL5WN-K.

The switch I use is (usually) an old "Carling" SPDT type - just like the ones in original Cry Baby Pedals. I have a large number of them that were removed a long time ago when converting Cry Babys to "true bypass". They've been in the "odd switches" drawer for years, and I thought I should use them up!

If you want to use a momentary switch, you have to use a logic bistable circuit. I frequently use a 4093 (I've got loads of them), which is a quad, Schmitt NAND gate. I use two of the gates as a bistable, another one for de-bounce, and the last for power-on reset. If you really want, I'll put the circuit up here with a suggested Vero layout.

The momentary switch I use is a stainless steel "vandal proof", domed button type that's available from CPC and Farnell.
"Why is it humming?" "Because it doesn't know the words!"

User avatar
decora
Breadboard Brother
Information
Posts: 62
Joined: 08 Oct 2009, 07:24
Location: KL, Malaysia
Has thanked: 10 times
Been thanked: 4 times

Post by decora »

i would really like to try this out.
is there an alternative relay? can't find it on farnell's site.

User avatar
Brink
Degoop Doctor
Information
Posts: 302
Joined: 11 Jul 2009, 20:22
Location: NY
Has thanked: 3 times
Been thanked: 18 times

Post by Brink »

mictester wrote:If you want to use a momentary switch, you have to use a logic bistable circuit. I frequently use a 4093 (I've got loads of them), which is a quad, Schmitt NAND gate. I use two of the gates as a bistable, another one for de-bounce, and the last for power-on reset. If you really want, I'll put the circuit up here with a suggested Vero layout.
Yes, please.

User avatar
DrNomis
Old Solderhand
Information
Posts: 6801
Joined: 16 Jul 2009, 04:56
my favorite amplifier: Self-Built Valve Amp Head :)
Completed builds: Dallas Arbiter Fuzz Face,Tone Bender Professional Mk 3,Tone Bender 3-Knob,Baja BK Butler Tube Driver,Baja Real Tube Overdrive,Roger Mayer Octavia,EH Soul Preacher,Tech 21 XXL Distortion,MFOS Weird Sound Generator.
Location: Darwin,Northern Territory Australia
Has thanked: 98 times
Been thanked: 274 times

Post by DrNomis »

I was just doing some rumaging around in one of my bags of electronic bits and pieces, and came across a little relay, here's a pic of what it has written on it:
Attachments
Small Relay
Small Relay
Genius is not all about 99% perspiration, and 1% inspiration - sometimes the solution is staring you right in the face.-Frequencycentral.

User avatar
mictester
Old Solderhand
Information
Posts: 2915
Joined: 11 Sep 2008, 20:29
my favorite amplifier: Mesa Boogie, Roost Sessionmaster, AC30
Completed builds: Hundreds! Mostly originals, a few clones and lots of modifications.
Location: Somewhat closer to Amsterdam than before!
Has thanked: 32 times
Been thanked: 825 times
Contact:

Post by mictester »

decora wrote:i would really like to try this out.
is there an alternative relay? can't find it on farnell's site.
I get the relays from a Panasonic component dealer (I buy them in 50s). You'll see them advertised on Ebay for about $20 for 10 of them or $11 for 5.

Remember - they MUST be the single coil bistable type.
"Why is it humming?" "Because it doesn't know the words!"

User avatar
decora
Breadboard Brother
Information
Posts: 62
Joined: 08 Oct 2009, 07:24
Location: KL, Malaysia
Has thanked: 10 times
Been thanked: 4 times

Post by decora »

Right, thanks. Farnell returns HF3 93S by axicom, doubt i'll get it because the price is just too silly for me. have to wait for the next trip to the big store then. cheers!

User avatar
DeanM
Resistor Ronker
Information
Posts: 441
Joined: 05 Jan 2010, 20:42
my favorite amplifier: Marshall VM 2466
Location: Ireland
Has thanked: 21 times
Been thanked: 5 times

Post by DeanM »

Brink wrote:
mictester wrote:If you want to use a momentary switch, you have to use a logic bistable circuit. I frequently use a 4093 (I've got loads of them), which is a quad, Schmitt NAND gate. I use two of the gates as a bistable, another one for de-bounce, and the last for power-on reset. If you really want, I'll put the circuit up here with a suggested Vero layout.
Yes, please.
Another yes please! That would be great. The marshall vintage modern uses 4093 in its dynamic range switching and it also uses d type flip flops. So that would be very interesting!

User avatar
earthtonesaudio
Transistor Tuner
Information
Posts: 1244
Joined: 28 Jan 2008, 04:00
Completed builds: Metal Simplex, Fuzz Factory, two Fab Echos-modded, Noisy Cricket, Earth & Space Wah, TS-7-modded, passive xover/splitter box, opamp fuzz
Location: Bloomington, Indiana
Has thanked: 11 times
Been thanked: 75 times

Post by earthtonesaudio »

Here's a debounced bistable flip flop that always powers up with its output low. Uses one Schmitt trigger inverter, which can be one gate from a 4093 (shown), or one gate from a 40106, or a single 555 wired as an inverter.
Attachments
bistable.PNG
bistable.PNG (833 Bytes) Viewed 3591 times
rocklander wrote:hairsplitting and semantics aren't exactly the same thing though.. we may need two contests for that.

User avatar
mictester
Old Solderhand
Information
Posts: 2915
Joined: 11 Sep 2008, 20:29
my favorite amplifier: Mesa Boogie, Roost Sessionmaster, AC30
Completed builds: Hundreds! Mostly originals, a few clones and lots of modifications.
Location: Somewhat closer to Amsterdam than before!
Has thanked: 32 times
Been thanked: 825 times
Contact:

Post by mictester »

Here's the bistable I use. The gates can be any CMOS Schmitt inverter (40106, 4584, 4093 with the inputs of each gate connected together). The switch is a momentary push-to-make type. The 6k8 resistor is about right for the LEDs I use, but you might have to increase or reduce for other types. Try to use a high efficiency (ie: low current) LED type, so that you can make that resistor as big as possible and reduce your current consumption as far as you can and still see the LED!
Copyright Freestompboxes.org 2011
Copyright Freestompboxes.org 2011
Bistable Switch.png (1.47 KiB) Viewed 3576 times
"Why is it humming?" "Because it doesn't know the words!"

User avatar
coldcraft
Diode Debunker
Information
Posts: 725
Joined: 11 Jul 2009, 01:00
Has thanked: 38 times
Been thanked: 84 times

Post by coldcraft »

nice copyright there. :thumbsup
Black Dynamite wrote:you need to shut the fuck up when grown folks is talkin.

User avatar
YuGi
Degoop Doctor
Information
Posts: 164
Joined: 01 Nov 2009, 19:22
Has thanked: 1 time
Been thanked: 25 times

Post by YuGi »

mictester wrote:Here's the bistable I use. The gates can be any CMOS Schmitt inverter (40106, 4584, 4093 with the inputs of each gate connected together). The switch is a momentary push-to-make type. The 6k8 resistor is about right for the LEDs I use, but you might have to increase or reduce for other types. Try to use a high efficiency (ie: low current) LED type, so that you can make that resistor as big as possible and reduce your current consumption as far as you can and still see the LED!
Bistable Switch.png
Can you explain how it work? Sorry I don't know yet this kind of electronics. :slap:

User avatar
mictester
Old Solderhand
Information
Posts: 2915
Joined: 11 Sep 2008, 20:29
my favorite amplifier: Mesa Boogie, Roost Sessionmaster, AC30
Completed builds: Hundreds! Mostly originals, a few clones and lots of modifications.
Location: Somewhat closer to Amsterdam than before!
Has thanked: 32 times
Been thanked: 825 times
Contact:

Post by mictester »

Each of the gates is an inverter. These are also called NOT gates - when the input is at logic 1, the output is at logic 0, and when the input is logic 0 the output is logic 1. We're connecting the IC across a 9V battery, so logic 0 is 0V and logic 1 is +9V. There's also one extra, important property about these devices - they are "Schmitt" gates. Schmitt-input gates have the advantage that they have accurately defined switching levels, and an amount of "hysteresis". I really suggest you read the "Art of Electronics" by Horowitz and Hill, because it gives some excellent explanations of the basic stuff.

Anyway, back to the circuit - if the first gate has the capacitor connected between its input and ground in a discharged state, the output of that gate will be at logic 1, causing the 220n capacitor to be charged through the 1M resistor. The second gate will be seeing a high at its input, so its output will be low, holding the 100n capacitor discharged through the 100k resistor. This condition will be stable, the LED will be on, and the final gate will have a logic 1 at its output.

Now, push and release the button....

The 220n capacitor's logic 1 was put on to the input of the first gate. The 100n capacitor charged up, the output of the first gate went to logic 0 which discharged the 220n through the 1M resistor, the output of the second gate goes high, the LED extinguishes, and the 100k resistor puts that logic 1 on to the input of the first inverter and keeps the 100n capacitor charged. The output of the third inverter is logic 0, and this condition will remain stable, until...

You push and release the button again. The charge on the 100n capacitor is drained away into the 220n and the input of the first inverter falls, returning the circuit to the first state...

The "Schmitt" action of the gates guarantees clean switching, and the relative sizes of the capacitors and resistors are just right for reliable operation.
"Why is it humming?" "Because it doesn't know the words!"

Post Reply