How to set up a gate or barrier control using Ajax. Wiring diagrams

Updated

Along with protection against robbery, fire, and flood, the Ajax system allows you to control electrical appliances by automating the security and eliminating routine. We have already written about the features of connecting an electric lock and a security smoke machine to the system. This article will focus on the control of an electrically driven barrier or gate (automatic gate).

Ajax allows opening and closing, as well as control of the gate/barrier power supply:

  1. via the Ajax app – from anywhere in the world;
  2. via Button – at a distance of up to 1300 meters from the hub or radio signal range extender;
  3. by scenario – when changing the arming mode, when an alarm occurs, according to a schedule.

In addition, the app will display the history of opening and closing the gate/barrier: relay name, location, time, and date.

What Ajax devices you need to control a gate/barrier

What gates/barriers can be controlled with Ajax

Modern electrically driven gates and barriers are equipped with a remote control unit. It consists of a controller and control devices such as a remote control. The controller accepts commands from control devices and activates the gate or barrier opening/closing mechanism.

To integrate with Ajax, the controller must have a control input for connecting wired buttons and relays. The absence of such input does not prevent connection, but it greatly complicates the process – you will need to connect the relay directly to the drive or controller board. Also, the controller can have a non-standard control input or special control and operation modes, which should also be taken into account when integrating.

Sending information about the gate/barrier state (“closed” and “opened”) to the Ajax app is possible if the controller has a status output.

Before starting the equipment connection, study the technical documentation of the gate/barrier.

Security requirements

When installing and operating electrical appliances, follow the general electrical safety rules, as well as the requirements of electrical safety regulations.

It is strictly forbidden to disassemble the device that is under voltage. Do not use the device with a damaged power cable.

Relay and WallSwitch must be installed and connected by a qualified technician. Do not connect the Relay to a power supply with a voltage of more than 36 V or to AC circuits. Also, do not connect the WallSwitch to a voltage beyond 184-253 V. This is a fire hazard and will damage the device.

During installation, do not allow moisture to penetrate the Relay or WallSwitch, or the cable connections. Consider the operating temperature range and operating humidity of the relay — do not keep the devices outdoors.

When connecting, be sure to refer to the user manual of the barrier/gate. Incorrect connection or setting can lead to inadvertent opening or closing of the gate.

Only close the gate/barrier when nothing prevents it from closing. We recommend supplementing the system with presence IR detectors. The connected presence IR detectors will not allow closing the gate or barrier if a person, car, or another obstacle is in the way of closing.

What to consider before you start connecting a barrier or gate to Ajax

When connected, the Ajax relays will be used: Relay to control the opening/closing of the gate/barrier; WallSwitch to de-energize the gate/barrier manually or automatically.

The gate/barrier controller can have one or more control inputs. The wiring diagram of the gate/barrier controller depends on this. If the input is combined and is responsible for both opening and closing the gate/barrier, one Relay will be enough. Separate inputs (one input responsible for the opening and the other one for the closing) will require two Relays.

Relay requires a 12/24 V power supply, and WallSwitch requires a 110/230 V supply. We also recommend providing all relays with back-up power in case of power outages. Please note that the barrier or gate can operate from a different voltage. In this case, you will have to connect Relay to an independent power supply.

If you want the Ajax app to display the gate/barrier status (opened or closed), connect the Transmitter integration module to the gate/barrier status output on the controller.

How to use Ajax to control the opening and closing of a gate/barrier with a combined control input

Connect the low-current Relay to the controller according to the diagram below and set up the system.

Relay wiring diagram

ajax gate barrier relay
  1. Connect the power supply source to the power terminals of the relay.
  2. Connect the relay contact terminals to the control input.

If the Relay is connected to a controller that opens the gate on contacts opening, provide the relay with backup power. In the event of a power loss, the Relay contacts change to an open state, which will open the gate.

Relay setup

In the Ajax app:

  1. Go to the Devices tab .
  2. Select Relay and go to its Settings .
  3. Set the required parameters.

    The settings depend on your gate/barrier model. See wiring recommendations in the technical documentation of the device.

    • Relay operating mode: pulse or bistable.
    • Pulse duration (if pulse mode is selected): in the range from 0.5 to 255 seconds. The duration must be greater than or equal to the closing/opening time of the barrier or gate.

      An incorrectly selected pulse duration can cause the gate or barrier to close immediately after opening, or open/close incompletely.

    • Contact state: normally closed or normally opened.
  4. Click Back to save the settings.

For more informative notifications, rename Relay. For example, name the device “Entrance Gate”.

How to use Ajax to control the opening and closing of a gate/barrier with separate control inputs

Connect the low-current Relays to the controller according to the diagram below and set up the system. With this wiring diagram, one Relay controls the opening, and the other the closing.

Relay wiring diagram

ajax gate barrier relay
  1. Connect the power supply source to the power terminals of the relay.
  2. Connect the contact terminals of the first relay to the first control input.
  3. Connect the contact terminals of the second relay to the second control input.

Relay setup

In the Ajax app:

  1. Go to the Devices tab .
  2. Select the first Relay and go to its Settings .
  3. Set the required parameters.

    The settings depend on your gate/barrier model. See wiring recommendations in the technical documentation of the device.

    • Relay operating mode: pulse or bistable.
    • Pulse duration (if pulse mode is selected): in the range from 0.5 to 255 seconds. The duration must be greater than or equal to the closing/opening time of the barrier or gate.
    • Contact state: normally closed or normally opened.
  4. Click Back to save the settings.
  5. Repeat steps 1-4 for the second Relay.

For more informative notifications, rename Relay. For example, name the device connected to the first control input “Open gate”, and the device connected to the second one “Close gate”.

How to control gate/barrier power supply using Ajax

The power control will work in parallel with the gate/barrier opening/closing control. Connect the WallSwitch power relay to the controller power circuit according to the diagram below and configure the system.

WallSwitch wiring diagram

ajax gate barrier wallSwitch
  1. Connect the power supply source to the power terminals of WallSwitch.
  2. Connect the relay contact terminals to the gate/barrier power inputs.

WallSwitch setup

In the Ajax app:

  1. Go to the Devices tab .
  2. Select WallSwitch and go to its Settings .
  3. Set the required parameters.

    The settings depend on your gate/barrier model. See wiring recommendations in the technical documentation of the device.

    • Relay operating mode: bistable.
    • Contact state: normally closed or normally opened.
  4. Click Back to save the settings.

Rename WallSwitch for more informative notifications. For example, name the device “Gate power”.

How to control the closing/opening of a gate/barrier

To display the gate/barrier status (opened or closed) in the Ajax app, connect the Transmitter integration module to the gate/barrier controller status output.

Transmitter wiring diagram

Connect the status output of the gate/barrier controller to the tamper or alarm terminals of Transmitter. The algorithm of work depends on this.

When connected via Transmitter tamper terminals, the security system notifies about opening and closing regardless of the security mode. The gate/barrier state is displayed in real-time in the Lid field in the Transmitter states (Ajax app → Devices → Transmitter).

ajax gate barrier transmitter
ajax gate barrier transmitter

When connected via Transmitter alarm terminals, the system notifies about opening and closing only when it is armed. Exception — Transmitter operates in the Always Active mode. The gate/barrier status is displayed in real-time in the Detector status field, in the Transmitter states (Ajax app → Devices → Transmitter).

ajax gate barrier transmitter
ajax gate barrier transmitter

Transmitter setup

In the Ajax app:

  1. Go to the Devices tab .
  2. Select Transmitter and go to its Settings .
  3. Set the required parameters.

    The settings depend on your gate/barrier model. See wiring recommendations in the technical documentation of the device.

    • External detector contact status (if using alarm terminals): normally closed or normally opened.
    • External detector type (if alarm terminals are used): pulse or bistable.
    • Tamper status (if tamper terminals are used): normally closed or normally opened.
  4. Activate Alert if Moved if you want to receive an alarm event when trying to move Transmitter (using the built-in accelerometer).
  5. Specify the activation settings for the sirens connected to the hub: enable or disable.
  6. Click Back to save the settings.

For more informative notifications, rename WallSwitch. For example, name the device “Gate state”.

How to control a gate or barrier via the Ajax app

Opening/closing when connected to a controller with combined control input

ajax gate barrier

Press the switch in the low-current relay field — the state of the contacts will change to the opposite, and the gate/barrier will open or close.

If a Transmitter is connected to the gate/barrier status output, its status menu will show the opened or closed status.

Opening-closing when connected to a controller with separate control inputs

ajax gate barrier

To open the gate/barrier, press the toggle switch in the corresponding low-current relay field. For closing, use a similar toggle switch in the second low-current relay field.

Power control

ajax gate barrier

Press the toggle switch in the power relay field, and the state of the contacts will change to the opposite. When the contacts are closed, power is supplied to the device and the gate/barrier can be controlled. When the contacts are open, the power supply to the device is cut off and the gate/barrier is locked.

How to control a gate or barrier using Button

The hub with OS Malevich version 2.10 and later allows you to configure different actions for short and long pressing of Button. For example, a short press to open/close a gate/barrier, and a long press to de-energize the device.

To control the gate/barrier using Button, configure the appropriate scenarios in the menu: Ajax AppDevices ButtonSettings Scenarios.

How to control a gate or barrier automatically according to scenarios

Ajax scenarios allow you to open and close, as well as supply power and de-energize the gate/barrier when changing the security mode, enabling and disabling the Night mode, by alarm and on schedule.

To create scenarios for gate/barrier control, go to the menu: Ajax AppDevices Relay or WallSwitchSettings Scenarios.

Spelling error report

The following text will be sent to our editors: