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.
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-Secure (Recommended for Escape Rooms)
- Default state: Locked (magnet energized, holding the door)
- Power loss: Door remains locked
- Use case: Game rooms, prop cabinets, staff-only areas
- Why: Players can’t accidentally exit during a game
Fail-Safe
- Default state: Unlocked (no power to magnet)
- Power loss: Door unlocks automatically
- Use case: Emergency exits, fire doors
- Why: Required by fire codes for main egress paths
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
| Component | Purpose | Typical Spec |
|---|---|---|
| Magnetic lock | Holds door closed | 300-600 lbs holding force |
| Power supply | Powers the lock | 12V DC, 3-5A |
| Relay module | Control from software | 5V or 12V relay |
| Exit button | Manual override | Momentary, NO contact |
| Emergency break glass | Fire code compliance | Break-glass, NC contact |
| Door sensor | Detect open/closed | Magnetic reed switch |
Tools
- Wire strippers
- Screwdrivers (flat and Phillips)
- Multimeter
- Cable ties and cable management
- Low-voltage cable (18-22 AWG)
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
- Normal state: Relay is open. Lock has no power. Door is unlocked (fail-safe) or locked via mechanical backup (fail-secure).
- Game active: Software energizes relay. Lock receives power. Door is held shut.
- Emergency: Break glass or exit button triggers relay. Lock loses power. Door opens.
Step-by-Step Installation
Step 1: Mount the Magnetic Lock
- Door frame side: Mount the electromagnet (heavy side) on the door frame
- Door side: Mount the armature plate on the door
- Alignment: Must be perfectly aligned — even 2mm misalignment reduces holding force by 50%
- Spacing: Follow manufacturer specs (usually 0-3mm gap)
Step 2: Install the Exit Button
- Mount at 1.1m height (standard)
- Wire as normally open (NO) momentary contact
- Connect to relay input and power supply
Step 3: Install Emergency Break Glass
- Required by fire code in most jurisdictions
- Wire as normally closed (NC)
- When glass is broken, circuit opens, lock releases
- Test monthly
Step 4: Wire the Relay Module
Connect to your control system (ESP32/ERGM controller):
| Relay Pin | Connection |
|---|---|
| VCC | 5V from controller |
| GND | Ground from controller |
| IN1 | GPIO pin (software control) |
| COM | Power supply positive |
| NO | Lock positive |
Step 5: Connect Door Sensor
- Mount reed switch on frame, magnet on door
- Wire to controller digital input
- Software detects “door open” events
Step 6: Test Everything
- Power on — lock should engage
- Press exit button — lock should release
- Break glass (test mode) — lock should release
- Open door — sensor should register
- Close door — lock should re-engage
Power Calculations
A typical 600-lb maglock draws:
- 12V DC, 500mA (6 watts)
- Continuous duty — runs for entire game duration
For 5 rooms:
- 5 locks × 6W = 30W continuous
- Add 20% overhead = 36W
- Power supply needed: 12V DC, 5A minimum
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
- Cause: Undersized power supply
- Fix: Upgrade to higher amperage supply
Lock doesn’t hold
- Cause: Misalignment or wrong voltage
- Fix: Check alignment with feeler gauge. Verify 12V at lock terminals.
Lock releases randomly during game
- Cause: Loose wiring or relay chatter
- Fix: Check all connections. Add flyback diode across lock terminals.
Door sensor false triggers
- Cause: Magnet too far from reed switch
- Fix: Adjust mounting. Maximum gap is usually 10-15mm.
Safety Checklist
- Fire marshal approved the setup
- Emergency break glass installed and tested
- Exit button works from inside
- Lock releases when power is cut
- Door can be opened manually in emergency (mechanical override)
- Staff trained on manual override procedure
- Monthly testing scheduled
Integration with ERGM
ERGM controls maglocks through ESP32 relay modules:
- Connect relay module to ESP32 GPIO pins
- Define the device in ERGM settings
- Create rules: “When game starts → energize lock”
- Create rules: “When emergency stop → release all locks”
- Monitor lock status in real-time dashboard
The visual rule builder means you don’t need to write code — just drag, drop, and connect.
Related Guides
- DMX512 in Escape Rooms — Add theatrical lighting
- ESP32 vs Raspberry Pi — Choose your controller
- How to Choose Escape Room Software — Pick the right system
Ready to upgrade your escape rooms?
Try Escape Room Game Master on your hardware today. Free, self-hosted, no subscription.
Get started