Skip to the content
2 layers50 × 60 mmDocking Platine, the printed circuit board in 3D

A lightweight MicroPython sender for the D1 Mini (ESP8266) that turns a pager docking event into an MQTT alert.

Size
50 × 60 mm
Copper layers
2
Thickness
1.6 mm
Parts
10
Nets
23
Pads
38
Tracks, vias
25, 0
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
27 Aug 2026
Updated
13 Sep 2026

Overview

Docking Platine is an open-source printed circuit board by M3taKn1ght, from the M3taKn1ght/AirbusPager_Remoteadapter repository on GitHub, published under the MIT licence. It is a 2-layer board of 50 × 60 mm with 10 parts on 23 nets, routed with 25 tracks and 0 vias.

It is built around the WEMOS D1 MINI. Its parts include 5 diodes, 3 connectors, 1 resistor and 1 IC. It belongs with the ESP8266 boards of this library.

Main components

1

README

README.md

GitHub License Static Badge GitHub top language GitHub language count GitHub commit activity

AirbusPager_Remoteadapter

A lightweight MicroPython sender for the D1 Mini (ESP8266) that detects when a pager is inserted into a docking station and sends an MQTT alert.

Perfect for fire departments, emergency services, or any scenario where a physical pager docking event needs to trigger a remote alarm.


What It Does

The Pager_Dockingadapter monitors a GPIO pin connected to a custom docking station PCB. When a pager is inserted, the pin is pulled LOW and an MQTT message on is published to pageralarm/docking/alert. A matching receiver (not part of this sub-project) or any MQTT subscriber can pick up this message and trigger an alarm, notification, or logging action.

text
Pager plugged into dock
        |
        v
D1 Mini (Pager_Dockingadapter)  --MQTT-->  Broker  -->  Receiver / Alarm

Key features:

  • Pin interrupt detection with internal pull-up (FALLING edge = pager inserted)
  • 40-second cooldown after each send to suppress duplicate alerts
  • Optional mechanical debounce for switch contacts
  • Optional status LED with blink indication during cooldown
  • Automatic Wi-Fi and MQTT reconnect with configurable retry intervals
  • Hardware watchdog (~1.7 s) prevents hangs
  • IRQ-safe: the interrupt only sets a flag — MQTT publish never blocks inside the ISR

Hardware

Required Components

Main board
ComponentDetails
D1 MiniESP8266 board (e.g. WeMos D1 Mini)
PCBCustom docking station PCB (KiCad + Target3001 files included)
Housing3D-printed case (FreeCAD + .3mf files included)
PowerUSB 5 V or soldered 5 V rail
PCB soldering parts
ComponentValue / TypeNotes
D1 Mini + pin header—Solder the included pin header to the D1 Mini
Pin header2.54 mm pitchFor wiring PCB to docking station
USB socketType APower output for docking station
USB socketType BPower input for PCB and docking station
Resistor (optional)100 ΩCurrent limiter for the red status LED
LED (optional)RedStatus indicator — see LED Behaviour

💡 The LED and 100 Ω resistor are optional. If you don't need a visual status indicator, you can skip these two parts.

PCB & Housing

The docking station includes a custom PCB designed in two formats:

  • KiCad 7+: Docking_Platine.kicad_pro, .kicad_sch, .kicad_pcb
  • Target 3001!: Platine.T3001

And a matching 3D-printed housing (FreeCAD source + ready-to-print .3mf):

  • Housing/Top.FCStd + Top-Koerper.3mf
  • Housing/Buttom.FCStd + Buttom-Körper.3mf

You can use the PCB without the housing, or print the housing for a different board — both are independent.


Pin Mapping (D1 Mini)

Recommended Alert Input Pins

D-PinGPIOIRQ-capableBoot-safeNotes
D15✅✅Default ALERT_PIN
D24✅✅Good LED pin
D42✅⚠️Recommended LED pin (PCB default) — on-board boot LED
D514✅✅
D612✅✅
D713✅✅

⚠️ Avoid These Pins

D-PinGPIOWhy
D016No IRQ, no PWM
D30Boot mode select — pulled LOW at reset = flash mode
D42On-board LED; must be HIGH at boot
D815Must be LOW at boot; has a built-in pull-down

Getting Started

1. Flash MicroPython

Download the latest MicroPython for ESP8266 (1.19+ recommended):

Flash it with esptool:

bash
pip install esptool
esptool.py --port /dev/ttyUSB0 erase_flash
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect 0 esp8266-20220618-v1.19.1.bin

Replace /dev/ttyUSB0 with your actual port (Windows: COM3, macOS: /dev/cu.usbserial-*).

2. Install umqtt.simple

The MicroPython MQTT client is not installable via pip. Use one of these methods:

Option A: mip (recommended)

Connect the D1 Mini to your PC and run:

bash
mpremote connect /dev/ttyUSB0 mip install umqtt.simple
Option B: GitHub (manual)

Clone the official library and copy the file to the board:

bash
git clone https://github.com/micropython/micropython-lib.git
# Upload this file to the D1 Mini as /lib/umqtt/simple.py
Option C: Thonny IDE

Open Thonny, connect to the D1 Mini, and use Tools → Manage packages → Install from micropython-lib.

3. Configure

Copy config_dock.py and adjust the values:

python
# WiFi
WLAN_SSID = "YOUR_SSID"
WLAN_PASS = "YOUR_PASSWORD"

# MQTT
MQTT_BROKER = "192.168.178.XXX"
MQTT_PORT   = 1883
MQTT_USER   = ""                # empty = no authentication
MQTT_PASS   = ""
MQTT_TOPIC  = b"pageralarm/docking/alert"
CLIENT_ID   = b"d1mini_pager_dock"

# Pins
ALERT_PIN = 5        # D1, GPIO5 — adjust to your wiring
LED_PIN   = None     # None = LED disabled; PCB default is D4 (GPIO2)
                     # ⚠️ Do NOT use GPIO0 (D3) — forces flash mode on boot!

# Timing
COOLDOWN_MS  = 40000   # 40 s — no second alert inside this window
DEBOUNCE_MS  = 0       # 0 = disabled; e.g. 50 for mechanical switch
BLINK_MS     = 300     # LED blink interval during cooldown
KEEPALIVE_INTERVAL_MS = 7000   # MQTT ping interval
MAIN_LOOP_MS = 50
WIFI_RETRY_S = 5
MQTT_RETRY_S = 5

4. Upload Files

Upload these three files to the root of the D1 Mini filesystem:

text
D1_Mini_Software/
├── main.py          # firmware logic
├── config_dock.py   # your configuration
└── netconn.py       # shared WiFi + MQTT helper

Use Thonny, ampy, or mpremote:

bash
mpremote connect /dev/ttyUSB0 fs cp D1_Mini_Software/main.py :/
mpremote connect /dev/ttyUSB0 fs cp D1_Mini_Software/config_dock.py :/
mpremote connect /dev/ttyUSB0 fs cp D1_Mini_Software/netconn.py :/

After uploading, reset the D1 Mini. It will automatically run main.py.


LED Behaviour (Optional)

If a status LED is configured (LED_PIN is not None):

StateLED Behaviour
Idle, pin HIGH (pager out)LED ON
Pin LOW (pager docked)LED OFF
Cooldown active (40 s after send)LED blinks every 300 ms
WiFi / MQTT disconnectedLED OFF

💡 PCB default: The LED is wired to D4 (GPIO2). Do not use GPIO0 (D3) for the LED — it forces the D1 Mini into flash mode on every boot!


Resilience

The firmware includes several reliability mechanisms:

  • Auto-reconnect for WiFi and MQTT with configurable retry intervals
  • Hardware watchdog (~1.7 s) resets the D1 Mini on hard hangs
  • IRQ safety: the interrupt handler only sets a flag — the actual MQTT publish happens in the main loop, never inside the ISR
  • MQTT keepalive with active PINGREQ / PINGRESP checks
  • Cooldown + debounce to suppress mechanical bounce and duplicate alerts

MQTT Messages

EventTopicPayloadNotes
Pager docked (pin LOW)pageralarm/docking/alertonSent once per 40 s cooldown window

The reset to HIGH (pager removed) is handled by the external docking electronics. This script only reacts to the LOW edge (docking event).


Node-RED Integration (Optional)

A ready-made Node-RED flow is included in node_red/flows_anonymized.json. It listens to the same MQTT topic and forwards pager alerts to Telegram.

What the flow does

  1. Subscribes to pageralarm/docking/alert on your MQTT broker
  2. Triggers a 30-second timer after each on message
  3. Automatically publishes off back to the topic when the timer expires
  4. Sends a randomized alarm message with timestamp via Telegram

Required Node-RED module

Install the following palette:

bash
cd ~/.node-red
npm install node-red-contrib-telegrambot
# Then restart Node-RED

Or install via the Node-RED editor: Menu → Manage palette → Install → Search node-red-contrib-telegrambot.

Telegram Bot setup

You need a Telegram Bot before the flow can send messages:

  1. Open Telegram and message @BotFather
  2. Send /newbot and follow the prompts
  3. Copy the bot token you receive
  4. In Node-RED, open the Telegram Sender node configuration
  5. Paste your token and set the bot name
  6. Start a chat with your new bot and send /start
  7. Open the Change node labeled "Create Message" in the flow
  8. Replace YOUR_TELEGRAM_CHAT_ID with your actual numeric chat ID

💡 To find your chat ID, message @userinfobot in Telegram.

Before importing the flow

The JSON file is anonymized. Before importing it into Node-RED, replace these placeholders with your real values:

PlaceholderWhat to replace with
YOUR_MQTT_BROKER_IPIP address of your MQTT broker
YOUR_TELEGRAM_CHAT_IDYour personal Telegram chat ID
YOUR_BOT_NAMEThe name you gave your Telegram bot
YOUR_FIRE_DEPARTMENTYour fire department / organization name

Import the flow via Menu → Import → Clipboard in the Node-RED editor.


Project Structure

text
Pager_Dockingadapter/
├── D1_Mini_Software/
│   ├── main.py                        # firmware (v3+)
│   ├── config_dock.py                 # user configuration
│   └── netconn.py                     # shared WiFi + MQTT helper
├── Docking_Platine/
│   ├── Docking_Platine.kicad_pro  # KiCad project
│   ├── Docking_Platine.kicad_sch  # KiCad schematic
│   ├── Docking_Platine.kicad_pcb  # KiCad PCB layout
│   ├── Platine.T3001              # Target 3001! project
│   └── Platine.ngc                # G-code for CNC milling
├── Housing/
│   ├── Top.FCStd                  # FreeCAD top shell
│   ├── Top-Koerper.3mf            # printable top shell
│   ├── Buttom.FCStd              # FreeCAD bottom shell
│   └── Buttom-Körper.3mf         # printable bottom shell
└── node_red/
    └── flows_anonymized.json      # Node-RED flow for Telegram alerts

License

This project is released under the MIT License.

You are free to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software, provided that the above copyright notice and this permission notice are included in all copies or substantial portions.

See the full license text in the LICENSE file or at: https://opensource.org/licenses/MIT


Credits

Author: M3taKn1ght Version: 0.0.4 Hardware: KiCad 10+ & Target 3001! PCB, FreeCAD 3D-printed housing

Parts

10
QtyValueFootprintReferences
4MountingHole_3.2mm_M3MountingHole:MountingHole_3.2mm_M3D3, D3, D3, D3
1200 OhmResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1
1Conn_01x02_PinConnector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalJ1
1LEDLED_THT:LED_D5.0mmD1
1USB_AConnector_USB:USB_A_Molex_67643_HorizontalJ2
1USB_BConnector_USB:USB_B_Lumberg_2411_02_HorizontalJ3
1WEMOS_D1_miniRF_Module:WEMOS_D1_mini_lightU1

Similar boards

  • 2 layers70.1 × 43.2 mmIaq device, the printed circuit board in 3D

    Iaq device

    nkitanov/iaq_board

    IAQ Board is a DIY (Do-It-Yourself) device for measuring internal air quality

    19 parts396
  • 2 layers32.1 × 40.8 mmPower Monitor Version 1, the printed circuit board in 3D

    Power Monitor Version 1

    alcar21/WemosEM

    Cheap power monitor (STC013) with Home Assistant Discover and Wemos D1 Mini / PRO (esp8266)

    8 parts122
  • 2 layers91 × 49 mmWled, the printed circuit board in 3D

    Wled

    wladwnt/wled

    Simple WLED Board (SW: https://github.com/Aircoookie/WLED)

    9 parts102
  • 2 layers97.5 × 59.3 mmControl Board, the printed circuit board in 3D

    Control Board

    kholia/Easy-Digital-Beacons-v1

    A simple and easy Arduino / Pi Pico / ESP8266-powered WSPR, FT8, and FT4 beacon system which uses NTP + DS3231 RTC for timing. Super extensible! Now comes with optional GPS support.

    17 parts89
  • 2 layers64.6 × 36.9 mmNavien latest, the printed circuit board in 3D

    Navien latest

    htumanyan/navien

    Navien water heater wire protocol for communication with NaviLink and other attached devices

    30 parts65
  • 2 layers49.5 × 30 mmAirpcb smd old, the printed circuit board in 3D

    Airpcb smd old

    issalig/toshiba_air_cond

    AB protocol decoder for toshiba air conditioners

    30 parts65
  • 2 layersTcsmonitor pcb, the printed circuit board in 3D

    Tcsmonitor pcb

    Syralist/tcs-monitor

    ein Bus-Monitor für TCS Klingelanlagen

    14 parts37MIT

Questions

How big is the Docking Platine PCB?

It measures 50 × 60 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Docking Platine use?

10 parts, built around the WEMOS D1 MINI. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Docking Platine KiCad files?

From the M3taKn1ght/AirbusPager_Remoteadapter repository on GitHub, at the commit this page was made from: the board is Docking_Platine/Docking_Platine.kicad_pcb and its schematic Docking_Platine/Docking_Platine.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Docking Platine design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).