Skip to the content
PCBKitNew board
4 layers130 × 77 mmCentral gateway, the printed circuit board in 3D

KiCad 10 carrier board for the AMR central gateway firmware. The board accepts an ESP32-S3-DevKitC-1-N8R8, adds a soldered RFM95W 868 MHz radio, protected sensor interfaces, regulated 7-18 V input, an enclosure-button…

Size
130 × 77 mm
Copper layers
4
Thickness
1.6 mm
Parts
58
Nets
34
Pads
188
Tracks, vias
206, 97
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
2 Jul 2026
Updated
26 Sep 2026

Overview

Central gateway is an open-source printed circuit board by mohamed1920said, from the mohamed1920said/STARTUP repository on GitHub. It is a 4-layer board of 130 × 77 mm with 58 parts on 34 nets, routed with 206 tracks and 97 vias.

It is built around the ESP32-S3-DEVKITC-1-N8R8, R-78E5.0-1.0 and DHT11, with the AP2112K-3.3, RFM95W-868S2 and BZT52C6V2 among its other parts. Its parts include 17 resistors, 11 diodes, 10 connectors, 7 capacitors and 4 ICs. It belongs with the ESP32 boards of this library.

Main components

8

README

hardware/central_gateway/README.md

AMR Central Gateway PCB

KiCad 10 carrier board for the AMR central gateway firmware. The board accepts an ESP32-S3-DevKitC-1-N8R8, adds a soldered RFM95W 868 MHz radio, protected sensor interfaces, regulated 7-18 V input, an enclosure-button connector, service UART, and test points.

Status

  • Board revision: v1.1-prototype
  • Board size: 130 mm x 77 mm, including the ESP32 antenna clearance notch
  • Copper layers: 4
  • Modular jack footprint: Wuerth Elektronik 615006138421, manufacturer geometry
  • Manufacturing outputs: manufacturing/central_gateway-fabrication.zip

The saved DRC result and manufacturing files must be regenerated after every generator change. This remains a prototype, not a certified production product. Before sale or outdoor deployment, complete an independent electrical review, RF tuning, EMC/pre-compliance, surge/EFT/ESD, temperature, and enclosure-ingress tests.

Physical connector architecture

  • J2 is a six-position RJ11-compatible modular jack for the tipping-bucket rain gauge.
  • J3 is one six-position RJ11-compatible modular jack for the combined wind cable: wind vane plus cup-anemometer reed switch.
  • J4 is a three-pin screw terminal for the DHT sensor.
  • J5 is a four-pin screw terminal for the BMP280/I2C sensor.
  • J6 is a two-pin screw terminal for a passive LDR.
  • U2, the RFM95W LoRa module, is soldered directly to the PCB. Its SPI signals are intentionally not routed through a screw terminal. J9 is its SMA antenna port.
  • The setup/reset button is mounted in the enclosure and wired to J10. There is no pushbutton mounted on the PCB.

Main design choices

  • Replaceable ESP32-S3 DevKitC-1 for prototype programming and repair.
  • RFM95W-868S2 with a short SMA feed for Tunisia's 868 MHz LoRa deployment.
  • 7-18 V input with resettable fuse, SMBJ18A surge clamp, SS34 reverse-polarity protection, and R-78E5.0-1.0 5 V regulator.
  • AP2112K 3.3 V rail for radio and sensors.
  • ESD protection and series resistance on all external sensor signals.
  • 100 kOhm / 100 kOhm battery divider matching WeatherStation.cpp.
  • Dedicated inner ground plane plus bottom ground pour.
  • No carrier PCB beneath the ESP32-S3 module antenna.

Layer stack

LayerUse
F.CuComponents, local signals, RF feed
In1.CuContinuous GND plane
In2.CuDevKit fan-out and crossing signals
B.CuPower/signal routing with GND pour

Order a 1.6 mm, four-layer FR-4 board with at least 1 oz external copper. The 0.45 mm antenna trace is only a prototype starting width. Recalculate the 50 ohm RF geometry using the fabricator's actual stack-up before production.

Connector pinout

Pin 1 is the square pad. Modular-jack pin numbers below are PCB contact numbers, not cable colors; verify the purchased cable continuity before connecting it.

ConnectorPCB pin orderPurpose
J11 VIN_RAW, 2 GND7-18 V DC input
J21 NC, 2 NC, 3 GND, 4 RAIN_RAW, 5 NC, 6 NCRain gauge; center pair only
J31 NC, 2 VANE_RAW, 3 GND, 4 WIND_RAW, 5 GND, 6 NCCombined vane + anemometer 6P4C cable
J41 3V3, 2 DHT_RAW, 3 GNDDHT11/DHT22
J51 3V3, 2 SDA, 3 SCL, 4 GNDBMP280 / I2C sensor
J61 LDR_RAW, 2 GNDPassive LDR; PCB provides 10 kOhm pull-up
J71 BAT+, 2 GND0-6.0 V measurement input only
J81 3V3, 2 GND, 3 UART_TX, 4 UART_RX3.3 V service UART
J9center RF, shell GNDSMA for tuned 868 MHz antenna
J101 SETUP_RESET, 2 GNDEnclosure-mounted normally-open button

Do not power the system through J7 and never apply more than 6.0 V to it. J8 is 3.3 V logic and is not 5 V tolerant. Never apply external voltage to J10: the panel button must only short pins 1 and 2.

Weather-kit electrical behavior

  • Rain: each bucket tip closes the reed switch and represents 0.2794 mm.
  • Wind speed: one closure per second represents approximately 2.4 km/h, or 0.667 m/s.
  • Wind direction: the vane exposes a 16-position resistor network. The firmware lookup is calculated for the PCB's 3.3 V, 10 kOhm pull-up; verify and calibrate the ADC centers on assembled production hardware.

Firmware-to-board map

FunctionESP32-S3 GPIOPCB net
LoRa NSS18LORA_NSS
LoRa DIO02LORA_DIO0
LoRa reset14LORA_RST
LoRa SCK / MOSI / MISO12 / 11 / 13LORA_SCK / LORA_MOSI / LORA_MISO
Rain6RAIN_GPIO
Wind pulse3WIND_GPIO
Wind vane ADC10VANE_ADC
DHT data7DHT_GPIO
LDR ADC9LDR_ADC
Battery ADC8BATT_ADC
I2C SDA / SCL4 / 5I2C_SDA_GPIO / I2C_SCL_GPIO
Wi-Fi setup reset0SETUP_RESET

Hold the enclosure button for five seconds to request the Wi-Fi setup reset. GPIO0 is also a boot-strapping pin, so do not hold the button while applying power or resetting the DevKit unless firmware-download mode is intended.

Assembly and verification

  • TP1: +5 V
  • TP2: +3.3 V peripheral rail
  • TP3: GND
  • TP4: LoRa DIO1

Before fitting U1 or U2, power the carrier from a current-limited bench supply and verify TP1 and TP2. Fit the ESP32 module, then fit the RFM95W and connect its antenna before transmitting. Continuity-test both weather cables to confirm their contact order before plugging them into J2/J3.

Observe diode polarity. D1 cathode connects to VIN_FUSED; D2 anode connects to VIN_FUSED and cathode to VIN_PROTECTED. For D3-D10, confirm the purchased part's polarity and marking against the schematic and datasheet.

Regeneration and verification

From the repository root:

powershell
python hardware\central_gateway\generate_kicad.py
& 'C:\Program Files\KiCad\10.0\bin\kicad-cli.exe' pcb upgrade hardware\central_gateway\central_gateway.kicad_pcb
& 'C:\Program Files\KiCad\10.0\bin\kicad-cli.exe' pcb drc --refill-zones --save-board --severity-all --format report --output hardware\central_gateway\central_gateway-drc.rpt hardware\central_gateway\central_gateway.kicad_pcb

The routed PCB and deterministic generator are authoritative. The legacy schematic is a compact circuit-review reference and is converted by KiCad on first open.

Production checklist

  1. Verify the exact DevKit, Wuerth jacks, screw terminals, JST header, and panel button against purchased samples and the final enclosure.
  2. Confirm cable pinout and add keying/labels so rain and wind plugs cannot be exchanged in the field.
  3. Tune RF geometry for the chosen stack-up and test the installed antenna/VNA performance inside the final enclosure.
  4. Validate regulator temperature and brownout margin at maximum Wi-Fi/LoRa load.
  5. Test all external ports for the required IEC ESD, EFT, and surge environment.
  6. Use a UV-resistant IP65/IP67 enclosure, strain relief, suitable glands or sealed panel couplers, conformal coating where appropriate, and fused power.
  7. Run a pilot build and production functional-test fixture before volume manufacture.

Parts

58
QtyValueFootprintReferences
7PESD3V3AMR_Central_D_SOD323D3, D4, D5, D6, D7, D8, D9
51kAMR_Central_R_0805R1, R2, R4, R12, R14
410kAMR_Central_R_0805R3, R5, R13, R15
4M3AMR_Central_MountingHole_3.2mmH1, H2, H3, H4
34.7kAMR_Central_R_0805R7, R10, R11
2100RAMR_Central_R_0805R8, R9
2100k 1%AMR_Central_R_0805R16, R17
2100nFAMR_Central_C_0805C6, C11
21uFAMR_Central_C_0805C3, C4
1+3V3AMR_Central_TestPoint_THTTP2
1+5VAMR_Central_TestPoint_THTTP1
110uFAMR_Central_C_0805C5
110uF 35VAMR_Central_C_1210C1
1220RAMR_Central_R_0805R6
122uF 10VAMR_Central_C_1206C2
1AP2112K-3.3AMR_Central_SOT-23-5U4
1BAT SENSE 0-6VAMR_Central_TerminalBlock_2J7
1BMP280 I2CAMR_Central_TerminalBlock_4J5
1BZT52C6V2AMR_Central_D_SOD323D10
1DHT11AMR_Central_TerminalBlock_3J4
1ESP32-S3-DevKitC-1-N8R8AMR_Central_ESP32-S3-DevKitC-1_CarrierU1
1GNDAMR_Central_TestPoint_THTTP3
1GREENAMR_Central_LED_0805LED1
1LORA_DIO1AMR_Central_TestPoint_THTTP4
1PANEL SETUP BUTTONAMR_Central_JST_XH_B2B-XH-A_1x02_P2.50mmJ10
1PASSIVE LDRAMR_Central_TerminalBlock_2J6
1POWER 7-18V DCAMR_Central_TerminalBlock_2J1
1PTC 0.75AAMR_Central_Fuse_1812F1
1R-78E5.0-1.0AMR_Central_RECOM_R-78E5.0-1.0_SIP3U3
1RAIN RJ11AMR_Central_WR-MJ_615006138421J2
1RFM95W-868S2AMR_Central_HOPERF_RFM95W_SMDU2
1SERVICE UARTAMR_Central_Header_1x4J8
1SMA_868MHzAMR_Central_SMA_Vertical_THTJ9
1SMBJ18AAMR_Central_D_SMBD1
1SS34AMR_Central_D_SMAD2
1WIND+VANE RJ11AMR_Central_WR-MJ_615006138421J3

Questions

How big is the Central gateway PCB?

It measures 130 × 77 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Central gateway use?

58 parts, built around the ESP32-S3-DEVKITC-1-N8R8, R-78E5.0-1.0, DHT11 and AP2112K-3.3. 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 Central gateway KiCad files?

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

Can I use the Central gateway design in my own project?

Its repository states no licence, so its author keeps all rights: ask mohamed1920said before reusing the design.

Similar boards

  • 4 layers50.8 × 106.6 mmM.I.A., the printed circuit board in 3D

    M.I.A.

    landodoughty/Mission-Independent-Avionics-M.I.A.-

    My Custom Rocket Avionics System

    186 parts
  • 4 layers80 × 60 mmCAN ECU, the printed circuit board in 3D

    CAN ECU

    dhruxraj/stm32-can-ecu

    A compact, "ECU-style" CAN node for learning and prototyping automotive-type embedded software. It has an STM32G4 MCU, a CAN transceiver with protection and switchable termination, a 6-axis IMU, a protected 8-18 V…

    77 parts2
  • 4 layers40 × 40 mmAuv sensor hub, the printed circuit board in 3D

    Auv sensor hub

    ginomcfino/auv-sensor-hub

    STM32-based sensor hub for autonomous underwater vehicles, integrating CAN bus communication, inertial and pressure sensing, and multi-rail power regulation.

    59 parts
  • 2 layers153 × 77 mmDevelopment board, the printed circuit board in 3D

    Development board

    inoa-io/satellite

    Satellite Hardware Project and Documentation

    103 parts2CERN-OHL-P-2.0
  • 4 layers138 × 114 mmGlitchwave567, the printed circuit board in 3D

    Glitchwave567

    jdg511/567Terror

    Software simulation of the Glitchwave 567 (LM567 glitch pedal) — JUCE Standalone + VST3

    299 partsMIT
  • 6 layers80 × 20 mmPoe usb hid bridge rev4e, the printed circuit board in 3D

    Poe usb hid bridge rev4e

    sire234/VatPoeToUsb

    Ein Gerät, das über ein Ethernet-Kabel mit PoE (IEEE 802.3af) gespeist wird und an einem USB-A-Host-Port ein HID-Gerät (Tastatur, Barcode-Scanner, Maus) betreibt. Die HID-Daten stellt die Firmware über Ethernet bereit.

    85 parts
  • 4 layers90 × 70 mmPsu-01, the printed circuit board in 3D

    Psu-01

    alxhub/arc

    Addy's Railroad Company

    97 parts
  • 2 layers100 × 100 mmCOPIE 0, the printed circuit board in 3D

    COPIE 0

    AssaadMH/shadow-4wd-motor-shield-pcb

    The 24-signal interface board that replaces SHADOW's perfboard wiring — and the two pin conflicts that only appeared on re-checking the spec.

    154 parts2MIT