← All install guides

PI ZERO + STANDARD 40-PIN BOARDS

Know your pins.
Connect with confidence.

Find a button input, spot the ground pins, and keep power rails out of your signal wiring. One clear reference for your room’s physical connections.

40-pin header · physical + BCM numberingREFERENCE ONLY / NOT A LIVE PIN SCAN

SAME SIGNALS. DIFFERENT BOARD SIZES.

Zero or full-size Pi?
The header matches.

THE COMPACT ONE

Pi Zero family

Pi Zero, Zero W, Zero WH and Zero 2 W use the same standard 40-pin signal layout. Many Zero boards arrive with bare holes: use a properly soldered 2 × 20, 2.54 mm header or a pre-soldered version.

THE STANDARD BOARDS

Pi 3, Pi 4 & Pi 5

These full-size boards use the same 40-pin layout shown below. Pi 400 also uses that signal layout, but its connector faces differently — check the model’s pin-1 marking before attaching a cable.

Header compatibility isn’t kiosk compatibility.

The original Pi Zero and Zero W have this pinout but do not support the current Chromium kiosk setup. Use a Pi Zero 2 W or newer for ORBPuzzles’ Pi kiosk. This map does not cover early 26-pin Model A/B boards, Raspberry Pi Pico, or bare Compute Modules.

Pin functions and enabled peripherals vary by model and configuration. A green pin here is a candidate, not proof it is free on your Pi. HATs, overlays and another application can claim any GPIO.

01

Two numbers. One actual pin.

Physical pin is the connector position, from 1 to 40. BCM / GPIO number identifies the signal used by ORBPuzzles and GPIO Zero.

THE WIRE GOES HEREPhysical pin 11
ENTER THIS IN THE APPBCM 17

Enter 17, not 11, in Admin > GPIO for this example. Power and ground positions do not have BCM input numbers.

03

Start with these inputs.

For simple normally-open buttons or isolated dry-contact puzzle switches, these are good starting candidates. They can also be outputs — the role comes from your app configuration, not a separate input-only connector.

INPUT CANDIDATEBCM 17Physical pin 11
INPUT CANDIDATEBCM 27Physical pin 13
INPUT CANDIDATEBCM 22Physical pin 15
INPUT CANDIDATEBCM 23Physical pin 16
INPUT CANDIDATEBCM 24Physical pin 18
INPUT CANDIDATEBCM 25Physical pin 22

Other general candidates are BCM 5, 6, 16 and 26. Shared-function GPIO can also be inputs when their peripheral function is disabled and no driver claims them. Do not use one GPIO for both an input and output, or assign two separate events to the same pin.

For a first test: BCM 17 + ground.

A button between physical pin 11 (BCM 17) and physical pin 6 (GND) is a simple starting point. If BCM 17 is already mapped or claimed, choose another free candidate.

04

Power isn’t a signal.

3.3 V power

Physical pins 1 & 17

A regulated supply rail for suitable low-current 3.3 V circuitry. These are not GPIO inputs or software-switchable outputs. Check the board’s power budget.

5 V power

Physical pins 2 & 4

The 5 V supply rail. Never connect it to a GPIO signal pin. Do not power the Pi by connecting a spare supply here; use its intended power connector.

Ground / GND

Physical pins 6, 9, 14, 20,
25, 30, 34 & 39

These ground pins are electrically common. Use a ground return for a dry-contact button, or the reference connection required by a suitable interface.

All GPIO signals use 3.3 V logic — never 5 V.

GPIO inputs are digital, not analogue. Never attach a 5 V, 12 V or 24 V sensor output directly. Use an appropriately rated level shifter or isolated interface. Do not short a power rail to ground, connect a load directly to GPIO, or join multiple power supplies through the header.

05

Amber means check first.

These are real GPIO signals, but beginner projects should leave them alone until the enabled peripherals and wiring are understood. Alternate functions do not permanently prevent GPIO use.

Common peripheral conflicts — not an exhaustive list of every alternate function
BCM pinsShared useWhat to check
2, 3I²C SDA / SCLFixed board pull-ups and I²C devices; prefer another button pin.
41-Wire / clock1-Wire overlays and clock-output configuration.
14, 15UART / serialSerial console and attached serial devices.
7, 8, 9, 10, 11SPI0SPI enabled in the OS, HATs and other SPI devices.
12, 13, 18PWM / audioActive PWM or audio overlays; BCM 18 also supports PCM clock.
19, 20, 21PCM / SPI1Digital-audio and SPI1 peripherals or overlays.
0, 1HAT EEPROM / IDPhysical pins 27 and 28: leave reserved for board identification, rather than room inputs.

Other overlays, such as display interfaces, can claim additional pins — even the green candidates. If the app reports GPIO busy, don’t force the pin: remove the conflicting mapping and pick an unused one. See Pi troubleshooting.

06

Your first puzzle button.

Power down the Pi. Connect a normally-open button or isolated dry contact between BCM 17 / physical pin 11 and GND / physical pin 6. Do not add a connection to either power rail. ORBPuzzles uses GPIO Zero’s default button pull-up: pressing the button pulls the input low to ground.

A normally-open button connects BCM 17 at physical pin 11 to GND at physical pin 6. A separate optional output example routes BCM 27 through a suitable 3.3-volt-compatible interface, never directly into a load.
The input example needs only a button and ground. The separate output example requires suitable interface hardware.

Power up, open Admin > GPIO, and assign BCM 17 to Complete room. Test without a team in the room. Alternatively, before creating saved mappings, add:

environment
GPIO_INPUTS={"complete-room":17}

To add a separate monitor-toggle button, use a different free pin, for example BCM 22 / physical pin 15, with its own button to GND:

environment
GPIO_INPUTS={"complete-room":17,"display-toggle":22}

Use the second line instead of the first, not as a duplicate environment entry. Saved Admin > GPIO mappings take precedence. Restart after editing /etc/escape-room-screen/environment:

bash
sudo systemctl restart escape-room-screen.service

Monitor toggle requires supported Pi monitor-control tooling. For reed switches and other puzzle sensors, use only verified dry contacts or a suitable 3.3 V interface — do not assume every sensor is voltage-free.

BEFORE THE FIRST PRESS

A careful final check.

  • Match physical pin 1 to your board marking; don’t mirror the map from the underside.
  • Use BCM numbers in the app and physical numbers to find the connector positions.
  • Check your GPIO mappings, HATs and overlays before selecting an input.
  • Power down before connecting wires; use a properly soldered header and secure connectors.
  • Keep the 3.3 V and 5 V rails out of dry-contact button wiring.
  • Use rated interface hardware and separate load power for outputs. This guide is not a mains, lock or safety-critical wiring design.

Pin assignments cross-checked against Pinout.xyz; button wiring and BCM numbering follow GPIO Zero documentation. Check your exact board’s Raspberry Pi documentation before wiring.

Ready to connect the room?

Keep the map nearby and start with one tested input. Follow the Pi install guide for the application, kiosk display and GPIO configuration.

Configure input events & output triggers in the app ↗

Return to the Pi GPIO setup ↗