Sonoff SV as a relay (Gate motor)

Dairyfarmer

Expert Member
Joined
Apr 17, 2016
Messages
3,685
EDIT: I solved this problem and hence changed the thread name. Just go straight to post 3. I'll leave the rest for interest sake.


I have a Sonoff SV that I want to add to my gate motor and I need a relay to close the circuit between COM and Trigger. Anyone know where I can get relays in PMB?

My setup is that I am going to install the SV near the doorphone because the motor is too far from wifi. I can draw 12v from the doorphone and just need to close the circuit for the gate lock.
765116
 
Last edited:

SauRoNZA

Honorary Master
Joined
Jul 6, 2010
Messages
36,240
I’m confused, the SV is a relay so why can’t you use it to close the circuit at the Door Phone side?

Otherwise how do you plan to communicate with the relay you want to install at the gate?

Presumably the door phone can open the gate? So let the SV trigger it on that or the pair or wires that it’s using to talk to the gate.

Maybe a picture will explain it better.

The picture of the SV is rather pointless.
 

Dairyfarmer

Expert Member
Joined
Apr 17, 2016
Messages
3,685
The Trigger and COM need to be switched closed (bridged) to simulate a button press. This can be done at the gate or via the doorphone. The COM is negative. The Negative on the SV is not switched, i.e. it is always live.

So the relay is needed to bridge Trigger and COM.

I'll try the wiring in the above video. Looks fairly simple. I'll leave out the reed switch.

BTW anyone wanting to know the best definition of inching? Simulating pressing the button on your remote. Easy as that. If you need to press the button for 1 second to get the gate to open, this is what inching does.
 

T-Man

Senior Member
Joined
Sep 27, 2004
Messages
809
I have a Sonoff SV that I want to add to my gate motor and I need a relay to close the circuit between COM and Trigger. Anyone know where I can get relays in PMB?

My setup is that I am going to install the SV near the doorphone because the motor is too far from wifi. I can draw 12v from the doorphone and just need to close the circuit for the gate lock.
View attachment 765116
Midas or any car part place.
 

Dairyfarmer

Expert Member
Joined
Apr 17, 2016
Messages
3,685
@Steamy Tom

Thanks for the video link.

Here is what I did:
765154

1 = +In and + Out
These go to COM and TRIGGER. On my doorphone there are the top 2 poles and are Green and Black. The order doesn't matter.
2 = remove these 2 resistors with a small screwdriver. Not sure is this is necessary for just relaying.
3 = connect + and - wires. On my doorphone they are the bottom two poles and are Red and Grey. I did this to avoid using another power supply. 5 - 24V input required. Your SV will also work for as long as the gate battery has power.

You can do the same at the gate motor. The + and - from the battery to 3 and TRIGGER and COM to 1.

I tested it before installing by connecting 12v to 3. Then using my multitester I sent a 1 second inch (would that be the way to say it?) to the SV. I got a dead short across the + In and + Out. This simulates a button press of 1 second. Will install it in place this afternoon.

I have left off the reed sensor because the SV will be in the house not at the gate.

Now in hindsight I didn't need to solder those screw terminals on. Don't need both + and -. Oh well we learn.
 
Last edited:

Steamy Tom

Expert Member
Joined
Jan 23, 2019
Messages
4,532
@SauRoNZA

Thanks for the video link.

Here is what I did:
View attachment 765154

1 = +In and + Out
These go to COM and TRIGGER. On my doorphone there are the top 2 poles and are Green and Black. The order doesn't matter.
2 = remove these 2 resistors with a small screwdriver. Not sure is this is necessary for just relaying.
3 = connect + and - wires. On my doorphone they are the bottom two poles and are Red and Grey. I did this to avoid using another power supply. 5 - 24V input required.

You can do the same at the gate motor. The + and - from the battery to 3 and TRIGGER and COM to 1.

I tested it before installing by connecting 12v to 3. Then using my multitester I sent a 1 second inch (would that be the way to say it?) to the SV. I got a dead short across the + In and + Out. This simulates a button press of 1 second. Will install it in place this afternoon.

Now in hindsight I didn't need to solder those screw terminals on. Don't need both + and -. Oh well we learn.
glad i could help :p
 

SauRoNZA

Honorary Master
Joined
Jul 6, 2010
Messages
36,240
@Steamy Tom

Thanks for the video link.

Here is what I did:
View attachment 765154

1 = +In and + Out
These go to COM and TRIGGER. On my doorphone there are the top 2 poles and are Green and Black. The order doesn't matter.
2 = remove these 2 resistors with a small screwdriver. Not sure is this is necessary for just relaying.
3 = connect + and - wires. On my doorphone they are the bottom two poles and are Red and Grey. I did this to avoid using another power supply. 5 - 24V input required. Your SV will also work for as long as the gate battery has power.

You can do the same at the gate motor. The + and - from the battery to 3 and TRIGGER and COM to 1.

I tested it before installing by connecting 12v to 3. Then using my multitester I sent a 1 second inch (would that be the way to say it?) to the SV. I got a dead short across the + In and + Out. This simulates a button press of 1 second. Will install it in place this afternoon.

Now in hindsight I didn't need to solder those screw terminals on. Don't need both + and -. Oh well we learn.
Good stuff.

You original post was deeply confusing with a relay in hand and looking for another.

My garage, gate and alarm are all hooked up with SV’s like this.
 

Dairyfarmer

Expert Member
Joined
Apr 17, 2016
Messages
3,685
@SauRoNZA

I wasn't aware that you could use the SV as a relay. My understanding was it was a Basic but for 5-24V DC. Hence the need for a relay to bridge COM and TRIGGER. My that I have it all wired up correctly I now understand.
 

SauRoNZA

Honorary Master
Joined
Jul 6, 2010
Messages
36,240
@SauRoNZA

I wasn't aware that you could use the SV as a relay. My understanding was it was a Basic but for 5-24V DC. Hence the need for a relay to bridge COM and TRIGGER. My that I have it all wired up correctly I now understand.
It is always a relay even like that.

You mean that you weren’t aware you could make it a dry contact relay.
 

Dairyfarmer

Expert Member
Joined
Apr 17, 2016
Messages
3,685
It is always a relay even like that.

You mean that you weren’t aware you could make it a dry contact relay.
Ahh makes sense.

BTW I found the unit fits inside a Kocom D203 intercom. If my soldering skills were better I wouldn't have used strip connectors.

765232765234
 

Dairyfarmer

Expert Member
Joined
Apr 17, 2016
Messages
3,685
765280
@SauRoNZA
Just to confirm what I see here.

In Default Mode it works just like a Basic, except 5 to 24volts and 5v only with jumper. Wet Contactor.

In Isolated Mode (i.e. both resistors removed), the board is powered by 5-24v (could be a panel or battery or power converter,...). You can the either use upt o 30volts DC or 250volts AC. But unlike a Basic, the seperate power supply does the switching. Dry Contactor.
 

digitalp

Well-Known Member
Joined
Oct 21, 2007
Messages
495
For me, I didn't want to tinker with my gate motor. So I bought an extra remote, soldered the output from the SV to the button terminals of the remote, and voila! I can open and close my gate with the SV.
 

Dairyfarmer

Expert Member
Joined
Apr 17, 2016
Messages
3,685
For me, I didn't want to tinker with my gate motor. So I bought an extra remote, soldered the output from the SV to the button terminals of the remote, and voila! I can open and close my gate with the SV.
You don't have to tinker with the gate motor at all.

There is a pair of wires going to the intercom that carries 12V. There is your power.
There is a pair of wires going to the intercom that connect to Common and Trigger at the gate motor. You use this to simulate a button press.

You can hook into the wires anywhere along the wire. It doesn't need to be at the motor or at the intercom. just somewhere with good wifi signal. No need to worry about remote batteries going flat or buying a power supply to run the SV. It all runs off your gate motor battery.
 

Steamy Tom

Expert Member
Joined
Jan 23, 2019
Messages
4,532
For me, I didn't want to tinker with my gate motor. So I bought an extra remote, soldered the output from the SV to the button terminals of the remote, and voila! I can open and close my gate with the SV.
I mean if it works it works, but I feel like you just added extra steps, plus you have no way to know now if the gate is closed as I assume your son off and remote are inside.
 

digitalp

Well-Known Member
Joined
Oct 21, 2007
Messages
495
I mean if it works it works, but I feel like you just added extra steps, plus you have no way to know now if the gate is closed as I assume your son off and remote are inside.
There is a 2 code sensor at the gate that tells me when it is opened and closed.
 

eehellfire

Honorary Master
Joined
Sep 25, 2007
Messages
10,269
It is always a relay even like that.

You mean that you weren’t aware you could make it a dry contact relay.
I added an external relay since I just followed the wiring diagram on the SmartKit website :D
 
Top