Author Topic: Relay Bypass With Microcontroller  (Read 454 times)

POTL

Relay Bypass With Microcontroller
« 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?

Ice-9

Re: Relay Bypass With Microcontroller
« Reply #1 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.
It's fairly straight forward, if you want to start it , press start. You can work out the rest of the controls for yourself !
Do me a lemon, that a poor IQ for a glass of water.

arkatom

Re: Relay Bypass With Microcontroller
« Reply #2 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

POTL

Re: Relay Bypass With Microcontroller
« Reply #3 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)

ElectricDruid

Re: Relay Bypass With Microcontroller
« Reply #4 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

POTL

Re: Relay Bypass With Microcontroller
« Reply #5 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?

highwater

Re: Relay Bypass With Microcontroller
« Reply #6 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.
« Last Edit: January 03, 2018, 03:07:01 AM by highwater »