DIYstompboxes.com

DIY Stompboxes => Building your own stompbox => Topic started by: POTL on January 01, 2018, 05:03:24 PM

Title: Relay Bypass With Microcontroller
Post by: POTL on January 01, 2018, 05:03:24 PM

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?
Title: Re: Relay Bypass With Microcontroller
Post by: Ice-9 on January 01, 2018, 06:00:18 PM
Just different micro manufacturer both types will do the same job, you take your pic (pun  intended). If you program in assembly language then you will find you have to learn a specific language to suit whichever one you work with, alternatively you could use C or C+ and use a suitable compiler which would make porting form one type to the other simpler.

My personal preference is the PIC, but that is just because I am more familiar with them.
Title: Re: Relay Bypass With Microcontroller
Post by: arkatom on January 01, 2018, 07:42:07 PM
Yeah not too much difference really. Just go with either or what is readily available. You'll program it in C and once you learn to program one those skills are transferable to the other.


Sent from my iPhone using Tapatalk
Title: Re: Relay Bypass With Microcontroller
Post by: POTL on January 01, 2018, 08:04:43 PM
Thanks, I'm interested in doing 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?
Both microcontrollers are capable of this?
It turns out in the work there is no difference between them (I'm not talking about programming, but about switching effect / bypass)
Title: Re: Relay Bypass With Microcontroller
Post by: ElectricDruid on January 02, 2018, 03:31:52 PM
Definitely no practical difference between the two types for a job like this. Ultimately, you're only using them for a digital output, and 0V->5V out of a pin is the same on one chip as another.
Even the 12F675 is overkill, since it includes an ADC you won't need. 12F508 is slightly cheaper. For one-offs, you probably don't care. Build a thousand and you might.

HTH,
Tom
Title: Re: Relay Bypass With Microcontroller
Post by: POTL on January 02, 2018, 10:10:33 PM

all thanks In addition one more question
anti-click Resistor 1 megohm between the input and ground I no longer need?
or does it need to be protected from a relay click?
Title: Re: Relay Bypass With Microcontroller
Post by: highwater on January 03, 2018, 03:02:47 AM
Keep the resistor.

The biggest difference between a relay and a switch is that the relay contacts are switched by an electromagnet instead of your finger. Anything you need for a switch, you still need for the relay.