Relay Bypass With Microcontroller

Stompboxes circuits published in magazines, books or on DIY electronics websites.

Relay Bypass With Microcontroller

Postby POTL » 01 Jan 2018, 23:03

Hello
I again asked the bypass question on the relay, using a microcontroller.
I see several circuits that are similar, but the microcontrollers are different
Basically it's Attiny13 / Attiny85 / Pic12F675
I'm still far from digital technologies and I want to start studying these technologies, tell me about the difference between these microcontrollers in the operation of the bypass switch.
Will there be any difference in the work or for these purposes the microcontroller model does not play a significant role?
POTL
Solder Soldier
 
Posts: 244
Joined: 26 Sep 2016, 04:11
Has thanked: 53 times
Have thanks: 50 times

Re: Relay Bypass With Microcontroller

Postby kingmafw » 01 Jan 2018, 23:42

In my opinion the microcontroller is only the tool to get it done. Food for thought can be found here:

Microchip PIC:
http://www.coda-effects.com/2017/02/relay-bypass-final-code.html

ATtiny:
http://freestompboxes.org/viewtopic.php?f=13&t=24589&hilit=pruttelherrie
it is mei sizzen net to dwaen

Johannes Harald Kingma - FWS Pedals - Germany

For this message the author kingmafw has received thanks:
POTL (02 Jan 2018, 02:00)
User avatar
kingmafw
 
Posts: 32
Joined: 19 Oct 2011, 08:03
Location: Rees - Germany
Has thanked: 11 times
Have thanks: 18 times

Re: Relay Bypass With Microcontroller

Postby POTL » 02 Jan 2018, 02:02

Thanks, I read, I'm wondering if there is a difference in the performance of these microcontrollers, I'm interested in making 2 modes of operation:
1) Turning on and off
2) Switching on by holding the button and turning off by releasing the button
Can both of these types of microcontrollers work equally well?
Is there a difference?
POTL
Solder Soldier
 
Posts: 244
Joined: 26 Sep 2016, 04:11
Has thanked: 53 times
Have thanks: 50 times

Re: Relay Bypass With Microcontroller

Postby marshmellow » 02 Jan 2018, 12:36

Any controller can do that. It's just a matter of preference for the designer.

For this message the author marshmellow has received thanks:
POTL (03 Jan 2018, 04:06)
marshmellow
Resistor Ronker
 
Posts: 417
Joined: 16 Aug 2007, 08:31
Location: Germany
Has thanked: 11 times
Have thanks: 105 times

Re: Relay Bypass With Microcontroller

Postby J0K3RX » 02 Jan 2018, 16:03

User avatar
J0K3RX
Degoop Doctor
 
Posts: 990
Joined: 29 Jun 2011, 02:25
Location: US Florida
Has thanked: 308 times
Have thanks: 471 times

Re: Relay Bypass With Microcontroller

Postby POTL » 03 Jan 2018, 04:10

marshmellow wrote:Any controller can do that. It's just a matter of preference for the designer.

thanks
POTL
Solder Soldier
 
Posts: 244
Joined: 26 Sep 2016, 04:11
Has thanked: 53 times
Have thanks: 50 times

Re: Relay Bypass With Microcontroller

Postby POTL » 03 Jan 2018, 04:12

J0K3RX wrote:or, you can try these..
https://guyatoneus.com/shop/3pdt-smooth ... ro-series/


thanks, but I do not see the point of paying $ 15 per switch, it's 10 times more expensive than the usual 3pdt in china
POTL
Solder Soldier
 
Posts: 244
Joined: 26 Sep 2016, 04:11
Has thanked: 53 times
Have thanks: 50 times

Re: Relay Bypass With Microcontroller

Postby POTL » 03 Jan 2018, 04:26

for this bypass, an anti-click resistor of 1 mega-ohm between the ground and the input is not needed
POTL
Solder Soldier
 
Posts: 244
Joined: 26 Sep 2016, 04:11
Has thanked: 53 times
Have thanks: 50 times

Re: Relay Bypass With Microcontroller

Postby plush » 03 Jan 2018, 10:58

POTL wrote:for this bypass, an anti-click resistor of 1 mega-ohm between the ground and the input is not needed


1-10Mohm pull down resistor is used to drain signal caps and mitigate the potential differences once the pedal is turned on.

It has nothing to do with the relay/3pdt click noise which both do have.
I guess you should leave your pull down resistor in it's place.

To mitigate relay click noise (debouncing), 5-10ms of soft or hard muting (via optofet) is normally applied. Muting means that you cut your signal to ground for a period of time untill your relay contacts stop bouncing. Contact bouncing could be very noticeable in high gain circuits or delay/reverb lines. ...small signal relays are more prone to bouncing, since their contacts groups are thinner and more springy than your typical 3pdt's.

For this message the author plush has received thanks:
POTL (03 Jan 2018, 11:36)
User avatar
plush
Breadboard Brother
 
Posts: 80
Joined: 08 Dec 2015, 10:29
Has thanked: 20 times
Have thanks: 19 times

Re: Relay Bypass With Microcontroller

Postby black03 » 28 Feb 2018, 03:50

plush wrote:
POTL wrote:for this bypass, an anti-click resistor of 1 mega-ohm between the ground and the input is not needed


1-10Mohm pull down resistor is used to drain signal caps and mitigate the potential differences once the pedal is turned on.

It has nothing to do with the relay/3pdt click noise which both do have.
I guess you should leave your pull down resistor in it's place.

To mitigate relay click noise (debouncing), 5-10ms of soft or hard muting (via optofet) is normally applied. Muting means that you cut your signal to ground for a period of time untill your relay contacts stop bouncing. Contact bouncing could be very noticeable in high gain circuits or delay/reverb lines. ...small signal relays are more prone to bouncing, since their contacts groups are thinner and more springy than your typical 3pdt's.


Even with an optofet, pop or click noise is still heard in a speaker, if you are at a high volume. After a lot of research I think there is no solution to completely eliminate the noise.
black03
 
Posts: 15
Joined: 06 Nov 2016, 15:23
Has thanked: 0 time
Have thanks: 0 time

Re: Relay Bypass With Microcontroller

Postby plush » 28 Feb 2018, 09:38

black03 wrote:
plush wrote:
POTL wrote:for this bypass, an anti-click resistor of 1 mega-ohm between the ground and the input is not needed


1-10Mohm pull down resistor is used to drain signal caps and mitigate the potential differences once the pedal is turned on.

It has nothing to do with the relay/3pdt click noise which both do have.
I guess you should leave your pull down resistor in it's place.

To mitigate relay click noise (debouncing), 5-10ms of soft or hard muting (via optofet) is normally applied. Muting means that you cut your signal to ground for a period of time untill your relay contacts stop bouncing. Contact bouncing could be very noticeable in high gain circuits or delay/reverb lines. ...small signal relays are more prone to bouncing, since their contacts groups are thinner and more springy than your typical 3pdt's.


Even with an optofet, pop or click noise is still heard in a speaker, if you are at a high volume. After a lot of research I think there is no solution to completely eliminate the noise.


If so, there is an issue with your optofet or your code.
I have no click noise in mine. I've measured it with my scope, there is a slight bump (due to fet's resistance turning on/off very fast), but it's not audible at all.
User avatar
plush
Breadboard Brother
 
Posts: 80
Joined: 08 Dec 2015, 10:29
Has thanked: 20 times
Have thanks: 19 times

Re: Relay Bypass With Microcontroller

Postby black03 » 01 Mar 2018, 22:42

plush wrote:
black03 wrote:
plush wrote:
POTL wrote:for this bypass, an anti-click resistor of 1 mega-ohm between the ground and the input is not needed


1-10Mohm pull down resistor is used to drain signal caps and mitigate the potential differences once the pedal is turned on.

It has nothing to do with the relay/3pdt click noise which both do have.
I guess you should leave your pull down resistor in it's place.

To mitigate relay click noise (debouncing), 5-10ms of soft or hard muting (via optofet) is normally applied. Muting means that you cut your signal to ground for a period of time untill your relay contacts stop bouncing. Contact bouncing could be very noticeable in high gain circuits or delay/reverb lines. ...small signal relays are more prone to bouncing, since their contacts groups are thinner and more springy than your typical 3pdt's.


Even with an optofet, pop or click noise is still heard in a speaker, if you are at a high volume. After a lot of research I think there is no solution to completely eliminate the noise.


If so, there is an issue with your optofet or your code.
I have no click noise in mine. I've measured it with my scope, there is a slight bump (due to fet's resistance turning on/off very fast), but it's not audible at all.


There is no code problem, I have consulted a lot and everyone determines that it is almost impossible to eliminate the noise completely. When there is loud volume, the noise will appear, I do not know how to show you an audio so you can check
black03
 
Posts: 15
Joined: 06 Nov 2016, 15:23
Has thanked: 0 time
Have thanks: 0 time

Re: Relay Bypass With Microcontroller

Postby Optical » 02 Mar 2018, 02:14

You can control ramping of the optofet to some extent using variable current control from the processor
How is the overall impression of the optofet causing a momentary muting?
Optical
 
Posts: 47
Joined: 28 Jul 2016, 23:44
Location: Auckland
Has thanked: 6 times
Have thanks: 4 times

Re: Relay Bypass With Microcontroller

Postby black03 » 02 Mar 2018, 14:37

Optical wrote:You can control ramping of the optofet to some extent using variable current control from the processor
How is the overall impression of the optofet causing a momentary muting?


I understand that and it is ok, the problem is to energize the circuit the pop is still, of course much more light than a 3pdt, but all the brands of pedals have the noise, there is none that has managed to eliminate it completely. In fact, suhr uses a slightly louder switch and I understand that it makes pop lessen.
but wampler, strymon, bogner, lovepedal, catalinbread, digitech, etc etc all have noise unfortunately.

If you have the solution, please help me! I am using the coda circuit
black03
 
Posts: 15
Joined: 06 Nov 2016, 15:23
Has thanked: 0 time
Have thanks: 0 time

Re: Relay Bypass With Microcontroller

Postby Optical » 03 Mar 2018, 01:38

Are you using an optofet?
It seems to me that the pop could be reduced or eliminated by ramping the fet conductance rather than switching it from high to low a fast as it can
Optical
 
Posts: 47
Joined: 28 Jul 2016, 23:44
Location: Auckland
Has thanked: 6 times
Have thanks: 4 times

Re: Relay Bypass With Microcontroller

Postby black03 » 03 Mar 2018, 20:50

Optical wrote:Are you using an optofet?
It seems to me that the pop could be reduced or eliminated by ramping the fet conductance rather than switching it from high to low a fast as it can



Yes, I use the p222A
black03
 
Posts: 15
Joined: 06 Nov 2016, 15:23
Has thanked: 0 time
Have thanks: 0 time


Return to DIY Stompbox designs

Who is online

Users browsing this forum: gitaar0 and 3 guests