Escape Room Game Master
Hardware Installation Magnetic Locks DIY

How to Wire Magnetic Door Locks for Escape Rooms: A Complete Guide

Step-by-step guide to wiring magnetic door locks for escape rooms. Fail-safe vs fail-secure, power supplies, wiring diagrams, and safety considerations.

By Escape Room Game Master Team ·

Magnetic door locks (maglocks) are the standard for escape room doors. They’re reliable, quiet, and integrate cleanly with control systems. But wiring them wrong can create safety hazards or game-breaking failures.

This guide covers everything you need to know about wiring maglocks for escape rooms — from choosing the right type to connecting them to your control system.

Fail-Safe vs Fail-Secure: Which One?

This is the most important decision. It determines what happens when power is lost.

Fail-Safe

Most escape rooms use fail-secure for game room doors and fail-safe for emergency exits. Check your local fire code — some jurisdictions require fail-safe on all doors.

What You Need

Components

ComponentPurposeTypical Spec
Magnetic lockHolds door closed300-600 lbs holding force
Power supplyPowers the lock12V DC, 3-5A
Relay moduleControl from software5V or 12V relay
Exit buttonManual overrideMomentary, NO contact
Emergency break glassFire code complianceBreak-glass, NC contact
Door sensorDetect open/closedMagnetic reed switch

Tools

Wiring Diagram

Basic Setup (One Door)

Power Supply (12V DC)
    |
    +---> Magnetic Lock (+)
    |
    +---> Relay Module (COM)
    |       |
    |       +-- NO ---> Magnetic Lock (-)
    |
    +---> Exit Button ---> Relay Module (trigger)
    |
    +---> Emergency Break Glass ---> Relay Module (trigger)

How It Works

  1. Normal state: Relay is open. Lock has no power. Door is unlocked (fail-safe) or locked via mechanical backup (fail-secure).
  2. Game active: Software energizes relay. Lock receives power. Door is held shut.
  3. Emergency: Break glass or exit button triggers relay. Lock loses power. Door opens.

Step-by-Step Installation

Step 1: Mount the Magnetic Lock

Step 2: Install the Exit Button

Step 3: Install Emergency Break Glass

Step 4: Wire the Relay Module

Connect to your control system (ESP32/ERGM controller):

Relay PinConnection
VCC5V from controller
GNDGround from controller
IN1GPIO pin (software control)
COMPower supply positive
NOLock positive

Step 5: Connect Door Sensor

Step 6: Test Everything

  1. Power on — lock should engage
  2. Press exit button — lock should release
  3. Break glass (test mode) — lock should release
  4. Open door — sensor should register
  5. Close door — lock should re-engage

Power Calculations

A typical 600-lb maglock draws:

For 5 rooms:

Tip: Use a single large power supply (12V, 10A) rather than multiple small ones. Easier wiring, fewer failure points.

Common Problems

Lock buzzes or gets hot

Lock doesn’t hold

Lock releases randomly during game

Door sensor false triggers

Safety Checklist

Integration with ERGM

ERGM controls maglocks through ESP32 relay modules:

  1. Connect relay module to ESP32 GPIO pins
  2. Define the device in ERGM settings
  3. Create rules: “When game starts → energize lock”
  4. Create rules: “When emergency stop → release all locks”
  5. Monitor lock status in real-time dashboard

The visual rule builder means you don’t need to write code — just drag, drop, and connect.

Ready to upgrade your escape rooms?

Try Escape Room Game Master on your hardware today. Free, self-hosted, no subscription.

Get started