Hi,
I have a problem connecting a remote garage door to my arduino and i need your help please.
So, when I press the button must send the signal, for just one second (not to stay live and on second press to go off).
I have try to use a relay to do the job but sometime works and sometime not. (relay give the impulse correctly - the led of the relay turn on for one sec).
when I measure the contact from the remote I have a 3 volts and when I press the button will go to 0 Volts.
Because arduino is connected to live power I don't really want to use a battery for remote, so I connected from the same power supply to 3 v.
Now how can I make this working all the time?
Should I use a transistor? it's safe for arduino and for remote? do you guys can help me with a schematic please?
Thank you so much!
To be honest, I have no clue what you want to do. You talk about one second push, but sometimes it works and sometimes it doesn't. How are you timing this? You really need to give us more information, like a circuit, diagram, or something we can work with.
Sincerely yours,
Mike
Well,
from the button inside remote I connected 2 wires to a relay.
in arduino I use:
digitalWrite(22, LOW);
delay(100);
digitalWrite(22, HIGH);
because I need a push button not On/Off switch.
First time when I start arduino it's working (send signal) and maybe 3,4 times, and after that it's stop sending the signal, but relay still working as is should.
When I measure with multi-meter the button inside remote I have 3 volts and when I press it I have 0 volts.

Hi,
I noticed in your sketch your are leaving the relay energized. You need to turn it off.
digitalWrite(22, LOW);
delay(100);
digitalWrite(22, HIGH);
digitalWrite(22, LOW); <<<<<<<<<<<<<<<<< turn off the relay after a momentary close.
Also the relay following your schematic the contact it is wrong wired. You need to wire it with the positive side to the common of the relay and the other side to the normally open side of the relay.
thank you very much tauro0221
I will try that!
tauro0221:
Also the relay following your schematic the contact it is wrong wired. You need to wire it with the positive side to the common of the relay and the other side to the normally open side of the relay.
do you mean to inverse + and - signs in my schematics?
Thank you!
Hi,
Attached it is a drawing showing you how to wire it.
remote-switch.pdf (14 KB)
Hi,
Also change the delay as shown. It is possible that you not need the delay.
digitalWrite(22, LOW);
digitalWrite(22, HIGH);
delay(100);
digitalWrite(22, LOW); <<<<<<<<<<<<<<<<< turn off the relay after a momentary close.