Gate Opener Power Outage: How to Make the Gate Open by Itself When Mains Fails
A power cut does not switch off the lights first where it matters. It switches off the way out. A sliding gate with a dead motor stays shut, a car park barrier stays down, and someone goes looking for the manual release key while a queue of cars builds up behind them.
You don’t need a generator or an expensive inverter to fix this. The gate has to open once, in the first minute after the mains goes, and stay open until power comes back. For a single opening cycle an old computer UPS with a tired battery is enough. For 24 V gate motors two small lead-acid batteries will do, with no inverter at all. This guide covers the logic, the power side, the wiring and the mistakes that make these setups fail on the one day they are needed.
Why the controller, not the UPS, has to notice the outage
The key detail is that the access controller runs from the backup and so never feels the outage itself. If your gate controller sits behind a UPS, nothing has happened as far as it is concerned: its terminals still have voltage. The fact that the mains has gone has to reach the controller as a separate signal.
That signal comes from a mains presence sensor: a small module with an optocoupler that watches the supply line feeding the UPS and changes its output state the moment mains disappears. It connects to a digital input on the controller. The rule in the controller is then simple: input changed → open the gate and hold it open until the input returns to normal. When mains comes back, the controller releases the hold and the gate goes back to normal operation, closing on its timer or on the next command.
A controller that “opens on power loss” without any backup is solving a different problem. If the controller loses power, so does the gate motor, and there is nothing left to drive the gate. A working setup therefore needs both parts: a backup supply, and a sensor on an input.

What the backup actually has to do
- Survive until the command. The sensor reacts in a fraction of a second, the controller in a second or two. Set a delay of 3–5 seconds so that short flickers of the mains don’t open the gate.
- Run one opening cycle. A barrier arm rises in 3–8 seconds; a 4–5 m sliding gate opens in 15–25 seconds. That is the whole load.
- Hold the open state. This needs almost no energy: the motor is idle and the controller draws a few watts. If the UPS shuts down five minutes later, it doesn’t matter. The gate is already open, and without power the motor cannot close it.
The conclusion: you need power for a few seconds, not capacity for hours. That is why a UPS that can no longer keep a computer alive for five minutes is still good enough for a gate.
Option 1: 230 V gate motor and an old computer UPS
Most barrier and gate motors in Europe run on 230 V AC. For these the backup is an ordinary line-interactive UPS of 600–1000 VA, the kind that used to sit under a desk. The gate control board and the access controller plug into its outlet; the mains sensor watches the line before the UPS.
What to check:
- Headroom of 2–3×. A barrier motor draws 100–300 W, but the starting current is several times higher. A 600 VA UPS rated at 360 W is usually enough for a barrier arm; for a heavy sliding gate use 1000–1500 VA.
- Waveform. Cheap UPS units output a stepped approximation of a sine wave. Most gate motors tolerate it, but some control boards with a capacitor-start motor hum or refuse to start. The test is simple: switch off the breaker and watch whether the gate opens.
- Battery condition. Even a battery at 20–30 % of its capacity delivers enough current for one cycle. But if the UPS beeps and shuts down the instant mains disappears, replace the battery. It is the cheapest part of the whole setup.
Option 2: 24 V gate motor and two batteries, no inverter
Many modern gate motors, including those from CAME, Nice and similar brands, have a 24 V DC motor, and the control board often has a connector for backup batteries. In that case you don’t need a UPS at all: two 12 V lead-acid batteries of 7–9 Ah in series give 24 V and feed the motor directly. SnapSwitch runs on 12–24 V, so the controller can sit on the same battery.
This is simpler and more reliable than any inverter: no 12 → 230 → 24 V conversion, no fan, no beeping. Charging is handled by the motor’s own charger module if it has one, or by a small 24 V charger. Two inexpensive batteries are good for dozens of cycles, not just one.
The mains sensor still sits on the 230 V line, not on the 24 V side. What you want to detect is the loss of mains, not the backup voltage sagging.
Option 3: a barrier that keeps working for hours, then opens when the batteries run low
Options 1 and 2 solve one job: let people out in the first minute. For a residential compound or a paid car park, a 4–8 hour outage then means the entrance stands open the whole time. If that is not acceptable, the 24 V battery setup can be taken further into a full backup: larger batteries, the motor’s charger module, and battery monitoring in the controller.
The barrier then keeps working normally without mains for up to 12 hours, depending on how busy the entrance is, because every cycle takes its share of the battery. When the battery voltage drops to a threshold, the controller does the same as in options 1 and 2: it opens the gate and holds it open until mains returns and the batteries recharge. In the worst case the system fails in the safe direction: open, not shut.
Battery capacity is chosen from the number of passes per hour and the typical length of outages where you are. It is a modest battery kit, not a generator.
Sliding gates, swing gates, pedestrian gates and garages
The logic is the same for every type; only the load and the risk change:
- Sliding gates. The heaviest motor and the longest cycle. For 230 V, a UPS from 1000 VA; for 24 V, 9 Ah batteries. Always check that the gate opens fully in one cycle on backup.
- Swing gates. Two motors, but lighter ones. On 24 V this is the typical configuration with a built-in battery slot.
- Pedestrian gate with a magnetic lock. The opposite case: a maglock releases on its own without power. No hold is needed, but the gate won’t stay locked either. That is a security decision, not a technical one.
- Pedestrian gate with an electric strike. Depends on the type: a fail-secure strike stays locked without power and can’t be opened without a backup. It needs the backup and the controller command just like a gate.
- Sectional garage doors. 24 V motors and a 15–20 second cycle. Same setup as for swing gates.
The safety rule for every option: the safe direction is open. The system never closes anything on backup, it only opens. Photocells and obstacle detection work as normal when the gate closes after mains returns.
What you need
- A controller with a free input for the sensor. SnapSwitch connects to the gate motor’s wired control input, the same one a remote or keypad uses, so the motor itself is not modified. See how to make an existing gate smart.
- A mains presence sensor with a dry-contact or optocoupler output, wired to the controller input.
- Backup power: an old 600–1000 VA UPS for 230 V motors, or two 12 V 7–9 Ah batteries for 24 V motors.
- Connectivity that also survives the outage, if you want to open or check the gate remotely during the blackout. A Wi-Fi router without backup goes down with the mains; a small router on the same UPS, or a 4G router at the gate, keeps the app working.
Common mistakes
- Sensor after the UPS. It watches the backed-up line and never sees the outage. The sensor has to be on the UPS input.
- No delay. The mains flickers for half a second and the gate opens and stays open until somebody notices. A 3–5 second delay prevents it.
- A pulse instead of a hold. If the rule sends a short “open” pulse, a motor with auto-close lowers the arm 30 seconds later, and there may not be enough backup left for a second cycle. You need a hold until mains returns.
- Nobody tests the UPS. Batteries fade quietly over 3–4 years. Once a month, switch off the breaker and check that the gate opens.
- Backup on the motor only. The controller is left without power and nothing sends the command. Both must share the same backup.
FAQ
Is a UPS that runs a computer for only a minute good enough?
Yes. A barrier needs 3–8 seconds of motor time, a gate up to 25 seconds. After it opens there is almost no load. Just check that the UPS actually switches to battery instead of shutting down straight away.
Can I skip the sensor if the controller already opens the gate on power loss?
Without backup, a power cut takes out both the controller and the motor, so nothing is left to drive the gate. Once you add backup, the controller no longer sees the outage, and that is why the sensor on an input is needed.
How many hours can a full backup last?
At 10–20 passes per hour, two mid-size batteries keep a barrier working normally for up to 12 hours. With more traffic it lasts less; then you either add capacity or accept that after a few hours the entrance simply opens.
What happens when power comes back?
The controller releases the hold and the gate returns to normal operation: it closes on the auto-close timer or waits for a command, depending on the control board settings.
Is it safe to leave the entrance open during an outage?
It is a deliberate choice: during a blackout it matters more that ambulances, fire crews and residents can get in and out. Where security matters more, the rule can be limited by schedule, for example daytime only.
Need a backup plan for a specific motor, or want to check whether your gate has a usable control input? Send us your setup and we will tell you what fits.