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

A lightweight MicroPython sender for the D1 Mini (ESP8266) that turns a pager docking event into an MQTT alert.
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.
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.
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.
Pager plugged into dock
|
v
D1 Mini (Pager_Dockingadapter) --MQTT--> Broker --> Receiver / Alarm
Key features:
| Component | Details |
|---|---|
| D1 Mini | ESP8266 board (e.g. WeMos D1 Mini) |
| PCB | Custom docking station PCB (KiCad + Target3001 files included) |
| Housing | 3D-printed case (FreeCAD + .3mf files included) |
| Power | USB 5 V or soldered 5 V rail |
| Component | Value / Type | Notes |
|---|---|---|
| D1 Mini + pin header | — | Solder the included pin header to the D1 Mini |
| Pin header | 2.54 mm pitch | For wiring PCB to docking station |
| USB socket | Type A | Power output for docking station |
| USB socket | Type B | Power input for PCB and docking station |
| Resistor (optional) | 100 Ω | Current limiter for the red status LED |
| LED (optional) | Red | Status 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.
The docking station includes a custom PCB designed in two formats:
Docking_Platine.kicad_pro, .kicad_sch, .kicad_pcbPlatine.T3001And a matching 3D-printed housing (FreeCAD source + ready-to-print .3mf):
Housing/Top.FCStd + Top-Koerper.3mfHousing/Buttom.FCStd + Buttom-Körper.3mfYou can use the PCB without the housing, or print the housing for a different board — both are independent.
| D-Pin | GPIO | IRQ-capable | Boot-safe | Notes |
|---|---|---|---|---|
| D1 | 5 | ✅ | ✅ | Default ALERT_PIN |
| D2 | 4 | ✅ | ✅ | Good LED pin |
| D4 | 2 | ✅ | ⚠️ | Recommended LED pin (PCB default) — on-board boot LED |
| D5 | 14 | ✅ | ✅ | |
| D6 | 12 | ✅ | ✅ | |
| D7 | 13 | ✅ | ✅ |
| D-Pin | GPIO | Why |
|---|---|---|
| D0 | 16 | No IRQ, no PWM |
| D3 | 0 | Boot mode select — pulled LOW at reset = flash mode |
| D4 | 2 | On-board LED; must be HIGH at boot |
| D8 | 15 | Must be LOW at boot; has a built-in pull-down |
Download the latest MicroPython for ESP8266 (1.19+ recommended):
Flash it with esptool:
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.binReplace
/dev/ttyUSB0with your actual port (Windows:COM3, macOS:/dev/cu.usbserial-*).
The MicroPython MQTT client is not installable via pip. Use one of these methods:
Connect the D1 Mini to your PC and run:
mpremote connect /dev/ttyUSB0 mip install umqtt.simpleClone the official library and copy the file to the board:
git clone https://github.com/micropython/micropython-lib.git
# Upload this file to the D1 Mini as /lib/umqtt/simple.pyOpen Thonny, connect to the D1 Mini, and use Tools → Manage packages → Install from micropython-lib.
Copy config_dock.py and adjust the values:
# 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 = 5Upload these three files to the root of the D1 Mini filesystem:
D1_Mini_Software/
├── main.py # firmware logic
├── config_dock.py # your configuration
└── netconn.py # shared WiFi + MQTT helperUse Thonny, ampy, or mpremote:
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.
If a status LED is configured (LED_PIN is not None):
| State | LED 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 disconnected | LED 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!
The firmware includes several reliability mechanisms:
| Event | Topic | Payload | Notes |
|---|---|---|---|
| Pager docked (pin LOW) | pageralarm/docking/alert | on | Sent 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).
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.
pageralarm/docking/alert on your MQTT brokeron messageoff back to the topic when the timer expiresInstall the following palette:
cd ~/.node-red
npm install node-red-contrib-telegrambot
# Then restart Node-REDOr install via the Node-RED editor: Menu → Manage palette → Install → Search node-red-contrib-telegrambot.
You need a Telegram Bot before the flow can send messages:
/newbot and follow the prompts/startYOUR_TELEGRAM_CHAT_ID with your actual numeric chat ID💡 To find your chat ID, message @userinfobot in Telegram.
The JSON file is anonymized. Before importing it into Node-RED, replace these placeholders with your real values:
| Placeholder | What to replace with |
|---|---|
YOUR_MQTT_BROKER_IP | IP address of your MQTT broker |
YOUR_TELEGRAM_CHAT_ID | Your personal Telegram chat ID |
YOUR_BOT_NAME | The name you gave your Telegram bot |
YOUR_FIRE_DEPARTMENT | Your fire department / organization name |
Import the flow via Menu → Import → Clipboard in the Node-RED editor.
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 alertsThis 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
Author: M3taKn1ght Version: 0.0.4 Hardware: KiCad 10+ & Target 3001! PCB, FreeCAD 3D-printed housing
| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | MountingHole_3.2mm_M3 | MountingHole:MountingHole_3.2mm_M3 | D3, D3, D3, D3 |
| 1 | 200 Ohm | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R1 |
| 1 | Conn_01x02_Pin | Connector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_Vertical | J1 |
| 1 | LED | LED_THT:LED_D5.0mm | D1 |
| 1 | USB_A | Connector_USB:USB_A_Molex_67643_Horizontal | J2 |
| 1 | USB_B | Connector_USB:USB_B_Lumberg_2411_02_Horizontal | J3 |
| 1 | WEMOS_D1_mini | RF_Module:WEMOS_D1_mini_light | U1 |

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

bitfixer/bf-romulator
Romulator - RAM/ROM replacement and debug for 6502 CPU systems

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

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.

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


It measures 50 × 60 mm and has 2 copper layers, 1.6 mm thick.
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.
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.
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).