madbeanpedals::forum

Projects => General Questions => Topic started by: DFX on June 08, 2019, 09:25:26 AM

Title: Soft Switching
Post by: DFX on June 08, 2019, 09:25:26 AM
I'm looking at adding soft switching with a relay bypass, i don't want to go down the micro controller route, I wanted to ask, has anyone used the NE555? i can see the advantages to this being low cost but are there any down sides i should be aware of?
Title: Re: Soft Switching
Post by: electrosonic on June 09, 2019, 12:43:20 AM
I have used uCs in the past (Attiny13A), they work well and it is only a few lines of code. I don't want a uC in every pedal, so I have laid out a relay switching board using a NE555 and a P-channel JFet for muting. I'm waiting for them to arrive from OSH Park to verify...

I have read that the 555 timers can create current surges when switching which can be pretty noisy, I was pretty careful with the ground currents in my layout. Hopefully it won't be an issue.

Andrew.
Title: Re: Soft Switching
Post by: 287m on June 10, 2019, 02:02:52 AM
i hate 555 because much current. I know isn't problem since always use PSU. But some friend here is battery die hard. So move on to cheap solution, like this. Easy to etch or perf. And NEC relay is cheap and available everywhere, compare to panasonic.

and thanks for remind me that layout, must try that. Hunt for fujitsu!
Title: Re: Soft Switching
Post by: mjg on June 10, 2019, 03:17:28 AM
What about using a CD4013 flip-flop? 

See the data sheet: http://www.ti.com/lit/ds/symlink/cd4013b.pdf    -  Section 8.2 I think shows the basic idea.  Connect D to !Q, and then each time you apply high voltage to the Clock pin, it changes the Q pin between high to low (or back again).  Use the Q pin to turn on your relay.  It would need to be a non-latching relay. 

Of course, this might be a terrible idea.  :)  I've not used it in exactly this way before, but I've used a 4013 for similar stuff. 
Title: Re: Soft Switching
Post by: electrosonic on June 10, 2019, 12:28:30 PM
I've considered using a CD4013 for a flip flop, but it would need an additional transistor to drive the relay and it is a larger IC -14pins vs the 555 timers 8 pins.  I don't use batteries for my pedal board so the quiescent current of the 555 is not an issue.

Andrew.
Title: Re: Soft Switching
Post by: aion on June 10, 2019, 04:06:45 PM
I've attempted several versions of non-microcontroller relay switching and they all have issues that made them unsuitable for use in my opinion.

The main issue is that the relay needs as short of a pulse as possible (usually 6-10ms) - enough to trigger the relay and no more. If the pulse is too long then the relay coils introduce switch pop on the contacts.

Only a microcontroller can give you an extremely short and predictable amount of pulse, so that's why all commercial implementations of relay bypass use one. It's of course much simpler to use a CMOS setup if you can (no programming needed, and it's cheaper, especially in manufacturing) but it just doesn't cut it.

Here are some of my adventures from a couple years ago:
https://www.diystompboxes.com/smfforum/index.php?topic=118109
Title: Re: Soft Switching
Post by: WormBoy on June 11, 2019, 12:34:24 PM
Quote from: aion on June 10, 2019, 04:06:45 PM
The main issue is that the relay needs as short of a pulse as possible (usually 6-10ms) - enough to trigger the relay and no more. If the pulse is too long then the relay coils introduce switch pop on the contacts.

However, at GeoFex, RG advices to slow down the voltage across the relay coil as it is the fast changes that lead to pops ... Wouldn't the short pulses of the micro-controller actually cause popping? Source: http://www.geofex.com/article_folders/rmtswtch/rmtsw.htm (http://www.geofex.com/article_folders/rmtswtch/rmtsw.htm).

I must admit that I have experimented only very little with relay switching. However, I built a switching system myself, based on the work at GeoFex, and it works beautifully and without popping. On the other hand, I have tried a few store-bought bypass PCBs with micro-controllers and they either popped or had an annoying mute (and in one case both  ???).
Title: Re: Soft Switching
Post by: aion on June 11, 2019, 02:30:56 PM
Quote from: DFX on June 10, 2019, 10:17:40 PM
You got anything exciting coming out this year dude?

Lots! New baby in a couple days (you didn't say effect-related :) ), new kits in a few weeks, new website in a few months, and at least 10 brand new circuits - original traces - before the end of the year along with a bunch more less-original releases.

My activity schedule goes in waves... there was a ton of stuff from January through March, then it's been quieter the past few months while preparing for a noisier back half of the year. But 2019 is just getting started!
Title: Re: Soft Switching
Post by: sarde on June 14, 2019, 06:18:13 PM
I've used the nope relay from TH Customs for a micro controller less relay. http://diy.thcustom.com/shop/nope-relay-true-bypass-kit/
It looks like it uses an CD40107 for its operation.

There is also a good article on TH Customs about micro controller less relay based switching worth reading. http://diy.thcustom.com/switching-relay-true-bypass-circuits-not-using-a-microcontroller/

Cheers,
Sarde
Title: Re: Soft Switching
Post by: gordo on June 15, 2019, 12:03:55 AM
Bugg steps it up a notch with a few cool twists.  I like the Coda and use it a LOT (especially with the cheap relay) but there's a few cool tricks to this one.

Sarde, that's a cool avatar.  Looks a bit like ES-125 with the butterbean tuners and no binding.  Sweet.