• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Contact | Calculators-online
You are here: Home / Motor Controller / Simple Gate Open/Close Controller Circuit

DIY Circuits | Learn Basics | Arduino Coding




Simple Gate Open/Close Controller Circuit

Last Updated on August 6, 2024 by Swagatam 84 Comments

The simple gate open and close controller circuit is designed to operate the gate through a couple of push buttons manually, it can be also modified for implementing the activation through a remote control.

How it Works

Referring to the shown, simple gate open, close controller circuit below, we can witness a rather straightforward configuration, essentially comprising of a transistor latch stage, a DPDT relay stage and a few push to ON/OFF switches.

The push switches S3/S4 play an important role in the circuit and ensure that the motor never gets overloaded when it reaches its end limits.

The images of the switches which are ideally suited to this application is shown just below the circuit diagram. These are quite popular and can be easily procured from any relevant electronic retailer.

Circuit Diagram

Simple Gate Open/Close set reset Controller Circuit

Parts List

  • Resistors are all 1/4 watt 5%
  • R1, R4 = 100k
  • R2, R3 = 4.7k or 10k both
  • Relay diode = 1N4007
  • T1 = Transistor BC547
  • T2 = Transistor BC557
  • Relay = 12V DPDT
  • S1, S2 = Push button switches
  • S3, S4 = push to OFF as shown below

Set Reset Push Switches

Set Reset Push Switches

The above Switch is to be used for S3, S4

Transistor T1, T2 along with the associated parts form a reliable latch circuit, S1 and S2 are ordinary push-to-ON switches, where S1 is rigged as the "set" button, and S2 as the reset button, which work for opening and closing the connected respectively.

S3 and S4 are fixed across the end travel points of the gate mechanism, such that the gate pushes these OFF each time it reaches the end destinations, and releases while it moves away from the destination or while the gate is in the course of its travel.

Assuming the gate to be in the closed position initially, we can expect the following scenario:

Operational Steps

S3 in depressed position by the gate and therefore in the cut-off mode.

S4 in released position and therefore contacts closed and switched ON.

The latch circuit switched OFF, and so is the DPDT relay.

The DPDT relay contacts are at the N/C points.

With the above situation, pressing S1 initiates the following course of actions:

T1 and T2 instantly latches, actuating the DPDT relay in the N/O positions.

The motor now begins running through the supply via the S4 and the DPDT relay N/O contact supply in the set direction, enabling the gate to operate with an opening action. This also releases S3 in the process.

As soon as the gate reaches the end limit or the end destination, and opening up fully, it presses S4 cutting off the supply to the motor. The gate now halts and comes to a stand still.

How Motor Rotation is Flipped

This position can be maintained infinitely, until S2 is pressed, which breaks the T1/T2 latch, and deactivates the DPDT relay forcing its contacts to move across the N/C points.

This immediately flips the motor polarity causing the motor to rotate in the opposite direction and enables the gate to reverse back to its closing position. While in this mode the motor gets its power from S3, but only until it reaches its earlier destination, ie. in the closed position, when it presses S3, cutting off power to the motor and yet again disabling the motor.

The gate maintains this position until S1 is pressed yet again for initiating the opening action of the gate...thus the open/close operation of the gate is simply implemented by actuating S1 and S2 switches manually.

In order to execute a remote controlled open, close action of the gate, S1 and S2 could be replaced with momentary relay contacts, and the relays operated through the receiver unit of the remote control.

Any standard 400 MHz RF, 2-relay type remote control modules could be used for the stated remote open, close control of the gate.

You'll also like:

  • Nema 17 Stepper Motor 2How Stepper Motors Work
  • refrigerator soft start circuitRefrigerator Motor Soft Start Circuit
  • pircontrolledfanandlightcircuitPIR Ceiling Fan Controller Circuit
  • ceiling fan regulator circuitSimple Ceiling Fan Regulator Circuit

Filed Under: Motor Controller Tagged With: Close, Controller, Gate, Open, Simple

About Swagatam

I am an electronics engineer and doing practical hands-on work from more than 15 years now. Building real circuits, testing them and also making PCB layouts by myself. I really love doing all these things like inventing something new, designing electronics and also helping other people like hobby guys who want to make their own cool circuits at home.

And that is the main reason why I started this website homemade-circuits.com, to share different types of circuit ideas..

If you are having any kind of doubt or question related to circuits then just write down your question in the comment box below, I am like always checking, so I guarantee I will reply you for sure!

Previous Post: « Generate Electricity from Regenerative Braking System for Vehicles
Next Post: LED Meteor Shower, Rain Tube Circuit »

Reader Interactions

Comments

Sotiris says:
June 17, 2025 at 12:21 pm

Hello Friend
My name is Sotris from Athens Greee, with more than 40 years on the telecommunication field, please if you know suggest to me a company who
produce electronic boards for sliding gates with very low price, 220Vac, slow stop,
terminal sw. normal close, photo, start input,on 433.92 MHZ -110 dbm or better. I want to suggest this company for orders. Thank you

Reply
Swagatam says:
June 17, 2025 at 2:05 pm

Hello Sotiris, sorry, I have no idea which company specializes in this field, and might help you get the job done.
Did you Google it? I think you can find some good options if you search it thoroughly on Google or maybe use an AI to do the searching for you…

Reply
Sanya says:
April 10, 2025 at 12:17 pm

Hi how do you modify the above circuit to be controlled by a remote, kindly avail me with circuit

Reply
Swagatam says:
April 10, 2025 at 5:42 pm

Hi, I have already answered this same question in the comment to one of the commenters Mr. Ghulam, you can check it.

Reply
Timothy Borbas says:
March 19, 2025 at 5:46 am

Good day,
I want to control a swing gate with a motor.
I need to figure out what type of motor and size.
Then I need the control unit with a (car) remote and proximity sensor.
Could you please direct me to the right reading materials?
Thank you much,
Tim

Reply
Swagatam says:
March 19, 2025 at 7:57 am

Hi,
Please provide the complete details regarding the mechanical operation specifications of the gate, I will design the required circuit for you.
Regarding the size of the motor, that will depend on the size and weight of the gate.
Please let me know…

Reply
Hada says:
September 27, 2024 at 6:19 pm

Hi Mr. Swagatam, i had question, how if in the middle of moving gate, accidentally one of the other Switch (S1 or S2) pressed, so the S3 & S4 is in the same state (float or N.C Switch), what we must to do?

Reply
Swagatam says:
September 27, 2024 at 10:07 pm

Hi Hada,
When the gate is in the middle of its travel, both S3 and S4 are in the closed state, that means, if any of the opposite switch is pressed (S1 or S2) the gate will start moving in the corresponding opposite direction….

Reply
Ghulam Mohio Din says:
August 6, 2024 at 1:45 am

hello sir, sir can you provide me this same circut with rf module like remote control plz

Reply
Swagatam says:
August 6, 2024 at 8:54 am

Hi Ghulam, you just have to buy the following remote control, and replace the S1, S2 switches with the relay contacts of the remote receiver.
https://www.homemade-circuits.com/wp-content/uploads/2016/06/22Bchannel.jpg

Reply
Ghulam Mohio Din says:
August 6, 2024 at 10:43 am

ok sir i will purchase by online, and update you, sir how to work this limit switch, and how its connected with the circut or moter? plz guide

Reply
Swagatam says:
August 6, 2024 at 3:38 pm

Sure, no problem, please buy it and let me know.
The limit switches are push-to-off type, that means in normal condition the switches are ON and will pass current through it, but when pushed, they will turn OFF.
They are supposed to be wired in series with DPT relay contacts as shown in the diagram.
They must be positioned at the end of the curtain travel, so that when the curtain is fully open or fully closed, the relevant S3, or S4 are depressed.

Reply
Ghulam Mohio Din says:
August 6, 2024 at 4:28 pm

i got it about limit switch thanks, sir i checked price of this 2 chanel module price, its costly in my area, ii have rf module and ht12d and e ics, is it possible can we make ourself? if possible then plz provide me diagram

Reply
Swagatam says:
August 6, 2024 at 4:42 pm

Ghulam, I would recommend buying the unit from any online store, because making it yourself can be difficult.
However, if you still want to make it, you can try the following article:
https://www.homemade-circuits.com/simple-100-meter-rf-module-remote/

Reply
Andries says:
June 29, 2023 at 12:34 pm

Do anyone have a gerber file for this circuit

Reply
Ralf Dieckmann says:
March 14, 2023 at 12:24 pm

Should the green bar in switch S3 be above the contacts?

Thanks, Ralf

Reply
Swagatam says:
March 14, 2023 at 2:00 pm

No, it is correctly shown below the contacts which indicates that the switch is a Push-to-OFF type switch and not a Push-to-On type like the others.

Reply
Pranab Kumar Guha says:
November 18, 2022 at 12:51 am

I purchased one Mighty Mule MM560 automatic gate opener on 06/2017. The board circuit is not working now. So, I purchased one ” 12V DC Wireless Motor Control Switch with 433MHz Keychain Remote with Forward, Reverse and Stop button”. But when the gate comes to the closed position the motor is not stopping. The same is happening at the time of opening. when the gate is fully open, the motor is running. Resulting burned motor. So, what can I add to the circuit so that at the dead end of the gate the motor will stop automatically?

Reply
Pranab Kumar Guha says:
November 18, 2022 at 11:54 am

Thank you for your kind reply.

Reply
Swagatam says:
November 18, 2022 at 9:58 am

You will need to add set/reset switches S3, S4 exactly as explained in the above article. This is perhaps the easiest way to add the limit switches to the gate open/close actions.

Reply
Tol says:
August 17, 2022 at 1:09 am

Hello Swagatam,
Currently we have a two wing gate where one wing (left) can be remotely opened (button A) and closed (button B) or both wings operated with button B. I’m trying to make the second wing (right) close (without having to close both wings). The controller is from the Italian company Nice. Installers have now idea how to establish this. Do you?

Reply
Swagatam says:
August 17, 2022 at 9:17 am

Hello Tol,
Without seeing the existing circuit/switch configuration it can be very difficult to understand and modify the design.

Reply
Gary Charlton says:
August 7, 2022 at 10:36 am

I have a few questions about gate openers. I have 4 different gates that I have been given the task to take care of. The first is a dual swing gate that does not use limit switches on the motors. It uses resistance to stop the motors at a preset position. The problem with this set up is in heavy winds the gates will start to open then they stop and close because of the resistance. I call the manufacturer and asked if there was anything I could do to keep this from happening and they said no.

Reply
Swagatam says:
August 7, 2022 at 11:28 am

How are the resistances used to stop the motors? Is it through the voltage developed across the resistors due to high current on the motor at the preset points?
I can’t figure out how the heavy winds can affect the resistances and disturb the motor operations?

Reply
Gary Charlton says:
August 8, 2022 at 2:57 am

I am not sure exactly how this system works. The other gates I maintain here all have switches on the motor unit that are adjusted to set the open and closed positions.
This system I had to mount a block in the driveway to stop the gate in it’s closed position. When the gates hit this block it stops the gates and the circuit board senses the extra load and shuts off power to the motor. It does the same when the gates are at their open position. There is a stop for each gate in that position.
I am a motorcycle technician by trade and have a broad knowledge and understanding of DC electrical systems. But I lack knowledge when it vome to electronics.

Reply
Swagatam says:
August 8, 2022 at 9:15 am

OK, so the sensors are sensing the overload or high current on the motors and shutting off power to the motors. Since there’s no locking arrangement on the gate, it can be difficult to prevent them from opening and closing due to heavy winds.

Reply
AlexandruBC says:
April 22, 2022 at 9:22 pm

Hey, i just saw this great article, but I have a question, i have 2 motors but they work at 220v, how can i make this circuit to work with it?
I understand that i can put another DPDT relay in parallel to make both of them working, but this circuit is for 220v, i need DPDT relays that are working at 220v or ?
Thank you!

Reply
Swagatam says:
April 23, 2022 at 11:30 am

Hi, you are right, you just have to use another DPDT switch in parallel. For 220V operation, you can simply disconnect the DC connections of the relay contacts and hook them up with your 220V source. Any 10 amp DPDT switch should work for your specific need.

Reply
Gary Houston says:
November 9, 2021 at 8:17 am

you push to open the contacts thanks
Iam tired of replacing gate openers 400 a shot

Reply
Swagatam says:
November 9, 2021 at 9:31 am

yes, push to OFF or break the circuit. Pushing is done by the gate when the end limits are reached.

Reply
Gary Houston says:
November 9, 2021 at 7:15 am

Hi is S3 and S4 normally closed or normally open
thanks Gary

Reply
Swagatam says:
November 9, 2021 at 7:38 am

They are normally closed (push to OFF)

Reply
Ramani says:
October 6, 2021 at 7:02 pm

Dear Shri Swagatham
Wil you please send me a circuit for the dor open and close automatically on fixed time schedule by incorporating digital timer in the circuit please send me logic and cetailed electrical circuit to install
Regards
Ramani

Reply
Swagatam says:
October 6, 2021 at 8:03 pm

Hello Ramani, is it a single door or double door? I can design for a single door only.

Reply
SELVARAJ says:
September 22, 2021 at 11:18 am

Hi Swagath, thanks for the simple super idea. The circuit description is easy to all ages

Reply
Swagatam says:
September 22, 2021 at 1:24 pm

Thank you Selvaraj, glad you liked the post!

Reply
Ian says:
September 14, 2021 at 2:53 pm

Nice Circuit design swagatam;
i have a gate that has 2 motors, would there be another easy way to add dual logic to this latch circuit?
other than that , i can build two of these and use a remote with 4 buttons for operating ?
just weighing my options to avoid purchasing another gate control since lightning destroyed my circuit board the other day.
thanks for any info you may have ..

Reply
Swagatam says:
September 14, 2021 at 5:49 pm

Thank you Ian, If you want to control two separate motors using separate switches, then you may have to employ two such identical modules.

On the other hand if you want to control two motors with the same pair of switches then you can use the same circuit, and simply connect another DPDT relay in parallel to the existing relay, and use separate limit switches replicating S3, and S4.

Reply
ian says:
September 14, 2021 at 10:07 pm

thank you for your time & this is a wonderful resource.. Keep up the good knowledge..

Reply
Swagatam says:
September 15, 2021 at 8:17 am

My pleasure!

Reply
Swagatam says:
April 30, 2025 at 2:00 pm

Dear Suren,
Here’s the image you wanted to see, as also sent to Mr. Tim Perkins:
https://www.homemade-circuits.com/wp-content/uploads/2021/02/gate-open-close-compressed.jpg

Reply
Suren Wijesekera says:
April 30, 2025 at 10:11 am

Dear Sir,
Thank you for your prompt reply.
I would like to build the circuit that you sent Tim Perkins on Feb 11 2021. It uses mainly relays. However the circuit diagram does not open anymore and I only see:
? ” alt=”two relay gate open close automatic circuit” />
Appreciate if you would be kind enough to share the circuit diagram.
Best regards
Suren

Reply
Swagatam says:
April 29, 2025 at 8:45 am

Dear Suren,
Using two relays will make the design unnecessary complicated, that is why I have used a DPDT relay which makes the unit very very compact and easy to configure.
If you have any specific doubts regarding the above design please let me know…I will try to solve it for you…

Reply
Suren Wijesekera says:
April 28, 2025 at 5:53 pm

Dear Swagatham,
Could you please show the circuit using two relays. It does not seem to come up.
Thank you.
Suren W

Reply
Swagatam says:
April 21, 2022 at 8:26 pm

The S3, S4 are the limit switches which stop the gate at the end limits.

Reply
Nageshwar Rao Jampa says:
April 21, 2022 at 7:43 pm

This the two step open & close ,using final limit switch, but how to stop in three steps

Reply
Mart says:
December 25, 2021 at 4:19 am

I realize this is an old post but was Freddie meaning manual as in hold button down to operate, release button to stop as in the hand position of an HOA circuit?

Reply
Swagatam says:
September 18, 2021 at 1:32 pm

that’s great Ian, glad it worked exactly as required, thanks for the feedback, and hope it works for the two systems also

Reply
ian moree says:
September 17, 2021 at 10:08 pm

Good day Swagatam;
i was able to just use the remote gate and wire as a DPDT relay switch with 5A fuses and it works . now all i need to do is put in 2 limit switches and im done. NEver would have thought about this unless you had this resource.
thanks again!!
ian

Reply
Swagatam says:
June 16, 2021 at 8:51 am

I will have to see the complete working of the system only then I can comment.

Reply
View Older Comments

Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

circuit simulator image



Subscribe to get New Circuits in your Email



Categories

  • Arduino Projects (93)
  • Audio and Amplifier Projects (133)
  • Automation Projects (17)
  • Automobile Electronics (101)
  • Battery Charger Circuits (85)
  • Datasheets and Components (109)
  • Electronics Theory (149)
  • Energy from Magnets (27)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (20)
  • Health related Projects (27)
  • Home Electrical Circuits (13)
  • Indicator Circuits (16)
  • Inverter Circuits (95)
  • Lamps and Lights (159)
  • Meters and Testers (71)
  • Mini Projects (28)
  • Motor Controller (68)
  • Oscillator Circuits (28)
  • Pets and Pests (15)
  • Power Supply Circuits (91)
  • Remote Control Circuits (50)
  • Renewable Energy (12)
  • Security and Alarm (64)
  • Sensors and Detectors (106)
  • SMPS and Converters (34)
  • Solar Controller Circuits (60)
  • Temperature Controllers (43)
  • Timer and Delay Relay (49)
  • Voltage Control and Protection (42)
  • Water Controller (36)
  • Wireless Circuits (30)





Other Links

  • Privacy Policy
  • Cookie Policy
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap



People also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Stack Exchange
  • Linkedin



Recent Comments

  • Swagatam on IC IR2111 H-Bridge MOSFET, IGBT Driver IC: Full Datasheet, Circuit Diagram
  • Swagatam on Electronic Circuit Projects, Tutorials, and Practical Engineering Solutions
  • arj on IC IR2111 H-Bridge MOSFET, IGBT Driver IC: Full Datasheet, Circuit Diagram
  • Moldyhvac on Electronic Circuit Projects, Tutorials, and Practical Engineering Solutions
  • Swagatam on IC IR2111 H-Bridge MOSFET, IGBT Driver IC: Full Datasheet, Circuit Diagram

© 2026 · Swagatam Innovations