Dual swing gate controller
motivemachine·dual_swing_gate_controller·hardware/DrivewayGateControl.kicad_pcb
About the Dual swing gate controller PCB
Dual swing gate controller is an open source AVR/Arduino PCB design by motivemachine, published on GitHub under the MIT license. It is a 2-layer board measuring 99.7 × 99.1 mm, with 50 components from 29 distinct parts.
Its main chip is the ArduinoProMini_a, from the AVR/Arduino family. Other key parts include the AMS1117-3.3, LoRa_Ra-02 and INA219BIDCNR. By type, the board carries 10 resistors, 8 diodes, 8 capacitors, 6 connectors, 5 ICs and 4 transistors.
It belongs with the rf & radio, robotics & motion and power & battery designs in this gallery.
From the project
A relay-driven dual DC motor controller for a double-swing gate opener. Uses Arduino and LoRa. This repo is a mirror for:
Having built a custom driveway gate and hinge setup I found myself shocked at what a quality dual-swing gate opener costs these days. More importantly, they have rather a lack of customization available in how you control or communicate with them, so I've set out to build my own with a pair of 12v linear actuators and a Semtech SX1287 LORA radio module. This is a work in progress.

Main components on the Dual swing gate controller
Dual swing gate controller bill of materials (BOM)
50 components, 29 distinct parts.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | AMS1117-3.3 | SOT-223-3_TabPin2 | U1 |
| 1 | ArduinoProMini_a | ArduinoProMini_a | U2 |
| 1 | LoRa_Ra-02 | LORA_SX1278_Module | U3 |
| 2 | INA219BIDCNR | SOT-23-8 | U4, U5 |
| 4 | 2N3904 | TO-92_Inline_Wide | Q1, Q2, Q3, Q4 |
| 1 | serial_header | PinHeader_1x02_P2.54mm_Vertical | J1 |
| 1 | magnetometer | TerminalBlock_bornier-4_P5.08mm | J2 |
| 1 | power | TerminalBlock_bornier-2_P5.08mm | J3 |
| 1 | Motor_Connects | TerminalBlock_bornier-4_P5.08mm | J4 |
| 1 | gpio1 | PinHeader_1x04_P2.54mm_Vertical | J5 |
| 1 | gpio2 | PinHeader_1x04_P2.54mm_Vertical | J6 |
| 1 | D | D_A-405_P7.62mm_Horizontal | 1n4001 |
| 2 | Fuse | Fuse_Blade_Mini_directSolder | F1, F2 |
| 1 | relay1 | Relay_SPDT_SANYOU_SRD_Series_Form_C | K1 |
| 1 | relay2 | Relay_SPDT_SANYOU_SRD_Series_Form_C | K2 |
| 1 | relay3 | Relay_SPDT_SANYOU_SRD_Series_Form_C | K3 |
| 1 | relay4 | Relay_SPDT_SANYOU_SRD_Series_Form_C | K4 |
| 1 | close | SW_PUSH_6mm_H8.5mm | SW1 |
| 1 | open | SW_PUSH_6mm_H8.5mm | SW2 |
| 2 | LED | LED_D5.0mm | D1, D2 |
Show 9 more
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 6 | 1n4001 | D_A-405_P7.62mm_Horizontal | D3, D4, D5, D6, D7, D9 |
| 1 | 22uf | CP_Radial_D5.0mm_P2.50mm | C1 |
| 4 | 0.1uf | C_Disc_D4.7mm_W2.5mm_P5.00mm | C3, C4, C6, C8 |
| 2 | 470uf | CP_Radial_D12.5mm_P5.00mm | C5, C7 |
| 1 | 100uf | CP_Radial_D7.5mm_P2.50mm | C9 |
| 2 | R | R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R1, R2 |
| 2 | 3k3 | R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R3, R4 |
| 4 | 1k | R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R5, R6, R8, R9 |
| 2 | 0.1 | R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R7, R10 |
Dual swing gate controller design files
The KiCad project lives in the motivemachine/dual_swing_gate_controller repository on GitHub; these links point at the commit this page was built from.
Dual swing gate controller: common questions
What microcontroller does the Dual swing gate controller use?
The Dual swing gate controller is built around the ArduinoProMini_a, from the AVR/Arduino family.
How big is the Dual swing gate controller PCB?
The Dual swing gate controller measures 99.7 × 99.1 mm, has 2 copper layers and is 1.6 mm thick.
How many components are on the Dual swing gate controller?
50 components, from 29 distinct parts. The full bill of materials is listed on this page.
Where can I download the Dual swing gate controller design files?
From the motivemachine/dual_swing_gate_controller repository on GitHub, which has the KiCad layout; the links under Design files point to each one.
Can I use the Dual swing gate controller design in my own project?
Yes, under the terms of its MIT license, which motivemachine chose for the repository.
Can I test firmware for the Dual swing gate controller without the hardware?
Yes. HardLabs builds a simulation of the board from its netlist and BOM, so you can run and debug AVR/Arduino firmware against it before you order a PCB.
Similar boards
AVR/Arduino
Redox keyboard
mattdibi
162.2 × 126.5 mm77 parts2LMIT2.0kAVR/Arduino
ModuleV450
stuartpittaway
30 × 61.4 mm39 parts2LCC-BY-NC-4.01.1kAVR/Arduino
V4
stuartpittaway
30 × 50 mm38 parts2LCC-BY-NC-4.01.1kAVR/Arduino
Discipline
coseyfannitutti
304.9 × 122.8 mm170 parts2LCC-BY-NC-4.01.0kAVR/Arduino
Megadesk
gcormier
41.7 × 32.2 mm23 parts2LGPL-3.0818AVR/Arduino
Easyduino Atmega Nano
Hanqaqa
43.4 × 18 mm30 parts4LCERN-OHL-P-2.0746