

Central gateway
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
8ESP32-S3-DEVKITC-1-N8R8
-- WiFi Modules ROHSEspressif SystemsWiFi ModulesR-78E5.0-1.0
SIP,11.6x7.5mm-40℃~+85℃ 1 10.2mm 11.6mm 1A 2200uF 300uA 50mVp-p 5V 7.5mm 7V~36V 850kHz 94% Short Circuit Protection、Automatic fault recovery Step-down type ±3% SIP,11.6x7.5mm DC-DC Power Modules ROHSYLPTECDC-DC Power ModulesDHT11
SIP-4-20℃~+60℃ 1mA 3.3V~5.5V 5%RH~95%RH ±2℃ ±5%RH SIP-4 Temperature and Humidity Sensor ROHSAosong ElecTemperature And Humidity SensorAP2112K-3.3
SOT253.3V 600mA CMOS Low Dropout Linear Regulator with EnableDiodes IncorporatedUncategorisedRFM95W-868S2
16-SMD16-SMD New Arrivals ROHSHopeRF Micro-electronicsUncategorisedBZT52C6V2
SOD-123Zener DiodeshongjiachengSMBJ18A
SMB-65℃~+150℃ 18V 1uA 20.6A 22.1V 29.2V 390pF 600W@10/1000us TVS SMB ESD and Surge Protection (TVS/ESD) ROHSShandong Jingdao MicroelectronicsESD And Surge Protection (TVS/ESD)SS34
SMA(DO-214AC)-55℃~+125℃ 3A 40V 500uA@40V 550mV@3A Independent SMA(DO-214AC) Schottky Diodes ROHSMDDSchottky Diodes
README
hardware/central_gateway/README.mdAMR 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
| Layer | Use |
|---|---|
| F.Cu | Components, local signals, RF feed |
| In1.Cu | Continuous GND plane |
| In2.Cu | DevKit fan-out and crossing signals |
| B.Cu | Power/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.
| Connector | PCB pin order | Purpose |
|---|---|---|
| J1 | 1 VIN_RAW, 2 GND | 7-18 V DC input |
| J2 | 1 NC, 2 NC, 3 GND, 4 RAIN_RAW, 5 NC, 6 NC | Rain gauge; center pair only |
| J3 | 1 NC, 2 VANE_RAW, 3 GND, 4 WIND_RAW, 5 GND, 6 NC | Combined vane + anemometer 6P4C cable |
| J4 | 1 3V3, 2 DHT_RAW, 3 GND | DHT11/DHT22 |
| J5 | 1 3V3, 2 SDA, 3 SCL, 4 GND | BMP280 / I2C sensor |
| J6 | 1 LDR_RAW, 2 GND | Passive LDR; PCB provides 10 kOhm pull-up |
| J7 | 1 BAT+, 2 GND | 0-6.0 V measurement input only |
| J8 | 1 3V3, 2 GND, 3 UART_TX, 4 UART_RX | 3.3 V service UART |
| J9 | center RF, shell GND | SMA for tuned 868 MHz antenna |
| J10 | 1 SETUP_RESET, 2 GND | Enclosure-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
| Function | ESP32-S3 GPIO | PCB net |
|---|---|---|
| LoRa NSS | 18 | LORA_NSS |
| LoRa DIO0 | 2 | LORA_DIO0 |
| LoRa reset | 14 | LORA_RST |
| LoRa SCK / MOSI / MISO | 12 / 11 / 13 | LORA_SCK / LORA_MOSI / LORA_MISO |
| Rain | 6 | RAIN_GPIO |
| Wind pulse | 3 | WIND_GPIO |
| Wind vane ADC | 10 | VANE_ADC |
| DHT data | 7 | DHT_GPIO |
| LDR ADC | 9 | LDR_ADC |
| Battery ADC | 8 | BATT_ADC |
| I2C SDA / SCL | 4 / 5 | I2C_SDA_GPIO / I2C_SCL_GPIO |
| Wi-Fi setup reset | 0 | SETUP_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:
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_pcbThe 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
- Verify the exact DevKit, Wuerth jacks, screw terminals, JST header, and panel button against purchased samples and the final enclosure.
- Confirm cable pinout and add keying/labels so rain and wind plugs cannot be exchanged in the field.
- Tune RF geometry for the chosen stack-up and test the installed antenna/VNA performance inside the final enclosure.
- Validate regulator temperature and brownout margin at maximum Wi-Fi/LoRa load.
- Test all external ports for the required IEC ESD, EFT, and surge environment.
- Use a UV-resistant IP65/IP67 enclosure, strain relief, suitable glands or sealed panel couplers, conformal coating where appropriate, and fused power.
- Run a pilot build and production functional-test fixture before volume manufacture.
Parts
58| Qty | Value | Footprint | References |
|---|---|---|---|
| 7 | PESD3V3 | AMR_Central_D_SOD323 | D3, D4, D5, D6, D7, D8, D9 |
| 5 | 1k | AMR_Central_R_0805 | R1, R2, R4, R12, R14 |
| 4 | 10k | AMR_Central_R_0805 | R3, R5, R13, R15 |
| 4 | M3 | AMR_Central_MountingHole_3.2mm | H1, H2, H3, H4 |
| 3 | 4.7k | AMR_Central_R_0805 | R7, R10, R11 |
| 2 | 100R | AMR_Central_R_0805 | R8, R9 |
| 2 | 100k 1% | AMR_Central_R_0805 | R16, R17 |
| 2 | 100nF | AMR_Central_C_0805 | C6, C11 |
| 2 | 1uF | AMR_Central_C_0805 | C3, C4 |
| 1 | +3V3 | AMR_Central_TestPoint_THT | TP2 |
| 1 | +5V | AMR_Central_TestPoint_THT | TP1 |
| 1 | 10uF | AMR_Central_C_0805 | C5 |
| 1 | 10uF 35V | AMR_Central_C_1210 | C1 |
| 1 | 220R | AMR_Central_R_0805 | R6 |
| 1 | 22uF 10V | AMR_Central_C_1206 | C2 |
| 1 | AP2112K-3.3 | AMR_Central_SOT-23-5 | U4 |
| 1 | BAT SENSE 0-6V | AMR_Central_TerminalBlock_2 | J7 |
| 1 | BMP280 I2C | AMR_Central_TerminalBlock_4 | J5 |
| 1 | BZT52C6V2 | AMR_Central_D_SOD323 | D10 |
| 1 | DHT11 | AMR_Central_TerminalBlock_3 | J4 |
| 1 | ESP32-S3-DevKitC-1-N8R8 | AMR_Central_ESP32-S3-DevKitC-1_Carrier | U1 |
| 1 | GND | AMR_Central_TestPoint_THT | TP3 |
| 1 | GREEN | AMR_Central_LED_0805 | LED1 |
| 1 | LORA_DIO1 | AMR_Central_TestPoint_THT | TP4 |
| 1 | PANEL SETUP BUTTON | AMR_Central_JST_XH_B2B-XH-A_1x02_P2.50mm | J10 |
| 1 | PASSIVE LDR | AMR_Central_TerminalBlock_2 | J6 |
| 1 | POWER 7-18V DC | AMR_Central_TerminalBlock_2 | J1 |
| 1 | PTC 0.75A | AMR_Central_Fuse_1812 | F1 |
| 1 | R-78E5.0-1.0 | AMR_Central_RECOM_R-78E5.0-1.0_SIP3 | U3 |
| 1 | RAIN RJ11 | AMR_Central_WR-MJ_615006138421 | J2 |
| 1 | RFM95W-868S2 | AMR_Central_HOPERF_RFM95W_SMD | U2 |
| 1 | SERVICE UART | AMR_Central_Header_1x4 | J8 |
| 1 | SMA_868MHz | AMR_Central_SMA_Vertical_THT | J9 |
| 1 | SMBJ18A | AMR_Central_D_SMB | D1 |
| 1 | SS34 | AMR_Central_D_SMA | D2 |
| 1 | WIND+VANE RJ11 | AMR_Central_WR-MJ_615006138421 | J3 |
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 mm

- 4 layers80 × 60 mm

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 mm

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 mm

Development board
inoa-io/satellite
Satellite Hardware Project and Documentation
103 parts2CERN-OHL-P-2.0 - 4 layers138 × 114 mm

Glitchwave567
jdg511/567Terror
Software simulation of the Glitchwave 567 (LM567 glitch pedal) — JUCE Standalone + VST3
299 partsMIT - 6 layers80 × 20 mm

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 mm

- 2 layers100 × 100 mm

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