# LoRa to WiFi Gateway Reference Design ## Description This project is a LoRa to WiFi Gateway using an ESP32 microcontroller. The design incorporates a LoRa transceiver and a WiFi module to facilitate data transfer between LoRa and WiFi protocols. This gateway can be directly implemented in IoT-based applications where field devices using LoRa need to communicate with WiFi-enabled devices. #referenceDesign #project #ESP32 #LoRa #lora #hub #gateway #ESP32WROOM #RF #WIFI #MCU #referenceDesign #edge-computing #espressif #seeed #seeed-technology #reference-design ## Project Details - **Owner:** vasy_skral - **Created:** 12/27/2023 - **Last Updated:** 3/5/2026 - **Visibility:** Public - **License:** https://creativecommons.org/licenses/by/4.0/ - **Stars:** 2 - **Copies:** 1 ## Key Components ### BOOT — [PTS815](https://www.flux.ai/vasy_skral/pts815~6b.md) - Datasheet URL: https://www.ckswitches.com/media/2728/pts815.pdf - Manufacturer Part Number: PTS815 SJM 250 SMTR LFS - Manufacturer Name: C&K - Part Type: Switch **Pins:** - ~1 [pin 1] - ~2 [pin 2] - ~3 [pin 3] - ~4 [pin 4] ### D1 — [1N5819HW-7-F](https://www.flux.ai/jecstronic/1n5819hw-7-f~x5v.md) - Part Type: Diode - Manufacturer Name: Diodes Incorporated - Datasheet URL: https://www.diodes.com/assets/Datasheets/ds30217.pdf - Manufacturer Part Number: 1N5819HW-7-F - License: https://creativecommons.org/licenses/by/4.0/ **Pins:** - A [pin 2] - K [pin 1] ### D2 — [WE-TVS-82400102](https://www.flux.ai/vasy_skral/we-tvs-82400102~xt.md) - Manufacturer Name: Würth Elektronik - Datasheet URL: https://katalog.we-online.de/pbs/datasheet/82400102.pdf - Manufacturer Part Number: 82400102 - Part Type: Protection - License: https://creativecommons.org/licenses/by/4.0/ **Pins:** - GND [pin 2] - IO1 [pin 6] - IO1 [pin 1] - IO2 [pin 4] - IO2 [pin 3] - VDD [pin 5] ### IC1 — [CH340C](https://www.flux.ai/vasyl/ch340c~qf3.md) - Part Type: Integrated Circuit - Manufacturer Name: Wah - Manufacturer Part Number: CH340C - Datasheet URL: https://datasheet.lcsc.com/szlcsc/Jiangsu-Qin-Heng-CH340C_C84681.pdf **Pins:** - ~CTS [pin 9] - ~DCD [pin 12] - ~DSR [pin 10] - ~DTR [pin 13] - ~RI [pin 11] - ~RTS [pin 14] - GND [pin 1] - NC [pin 7] - NC [pin 8] - R232 [pin 15] - RXD [pin 3] - TXD [pin 2] - UD- [pin 6] - UD+ [pin 5] - V3 [pin 4] - VCC [pin 16] ### J1 — [IPXSM66AL](https://www.flux.ai/vasy_skral/ipxsm66al~kbt.md) - Datasheet URL: https://eu.mouser.com/datasheet/2/398/RECE_20279_001E_01-2005154.pdf - Manufacturer Name: Lighthorse Technologies, Inc - Part Type: Connector - Manufacturer Part Number: IPXSM66AL (I-PEX P/N 20279-001E-03) - License: https://creativecommons.org/licenses/by/4.0/ **Pins:** - GND [pin 2] - GND [pin 3] - Signal [pin 1] ### PWR — [LED-0805-Template-2](https://www.flux.ai/vasy_skral/led-0805-template-2~uu0.md) - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: LED **Pins:** - A [pin 2] - K [pin 1] ### Q1 — BSS138 - Part Type: Transistor - Manufacturer Part Number: BSS138 - Manufacturer Name: onsemi - Datasheet URL: https://www.onsemi.com/pdf/datasheet/bss138-d.pdf **Pins:** - D - G - S ### Q2 — BSS138 - Datasheet URL: https://www.onsemi.com/pdf/datasheet/bss138-d.pdf - Manufacturer Part Number: BSS138 - Part Type: Transistor - Manufacturer Name: onsemi **Pins:** - D - G - S ### RST — [PTS815](https://www.flux.ai/vasy_skral/pts815~6b.md) - Datasheet URL: https://www.ckswitches.com/media/2728/pts815.pdf - Part Type: Switch - Manufacturer Part Number: PTS815 SJM 250 SMTR LFS - Manufacturer Name: C&K **Pins:** - ~1 [pin 1] - ~2 [pin 2] - ~3 [pin 3] - ~4 [pin 4] ### STATUS — [LTST-C19HE1WT](https://www.flux.ai/vasy_skral/ltst-c19he1wt~x5i.md) - Manufacturer Part Number: 19-237/R6GHBHC-A04/2T - Datasheet URL: https://datasheet.lcsc.com/lcsc/2010222107_Everlight-Elec-19-237-R6GHBHC-A04-2T_C883183.pdf - Manufacturer Name: Everlight Elec - Part Type: LED **Pins:** - A - B - G - R ### U1 — [AMS1117-3.3](https://www.flux.ai/vasy_skral/ams1117-33~34.md) - Part Type: Integrated Circuit - Manufacturer Part Number: AMS1117-3.3 - Manufacturer Name: AMS - Datasheet URL: https://datasheet.lcsc.com/lcsc/1811021917_Advanced-Monolithic-Systems-AMS1117_C6188.pdf **Pins:** - GND [pin 1] - TAB(VOUT) [pin 4] - VIN [pin 3] - VOUT [pin 2] ### U2 — [ESP32-WROOM-32E](https://www.flux.ai/vasy_skral/esp32-wroom-32e~7ed.md) - Datasheet URL: https://www.espressif.com/sites/default/files/documentation/esp32-wroom-32e_esp32-wroom-32ue_datasheet_en.pdf - Part Type: Integrated Circuit - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Part Number: ESP32-WROOM-32E - Manufacturer Name: Espressif Systems **Pins:** - GND=> . [pin 15] - EN [pin 3] - GND [pin 38] - GND [pin 39] - GND [pin 1] - IO0 [pin 25] - IO12 [pin 14] - IO13 [pin 16] - IO14 [pin 13] - IO15 [pin 23] - IO16 [pin 27] - IO17 [pin 28] - IO18 [pin 30] - IO19 [pin 31] - IO2 [pin 24] - IO21 [pin 33] - IO22 [pin 36] - IO23 [pin 37] - IO25 [pin 10] - IO26 [pin 11] - IO27 [pin 12] - IO32 [pin 8] - IO33 [pin 9] - IO34 [pin 6] - IO35 [pin 7] - IO4 [pin 26] - IO5 [pin 29] - NC [pin 18] - NC [pin 19] - NC [pin 17] - NC [pin 21] - NC [pin 22] - NC [pin 32] - NC [pin 20] - RXD0/IO3 [pin 34] - SENSOR_VN [pin 5] - SENSOR_VP [pin 4] - TXD0/IO1 [pin 35] - VDD [pin 2] ### U3 — [LoRa-E5 (STM32WLE5JC)](https://www.flux.ai/vasyl/lora-e5-stm32wle5jc~wpx.md) - Manufacturer Part Number: 317990687 - Part Type: RF Transceiver Module - Datasheet URL: https://files.seeedstudio.com/products/317990687/res/LoRa-E5%20module%20datasheet_V1.0.pdf - Manufacturer Name: Seeed Technology Co., Ltd **Pins:** - GND [pin 2] - GND [pin 14] - GND [pin 16] - GND [pin 22] - PA0 [pin 23] - PA10 [pin 27] - PA13 [pin 3] - PA14 [pin 4] - PA15 [pin 6] - PA2 [pin 19] - PA3 [pin 18] - PA9 [pin 21] - PB0 [pin 28] - PB10 [pin 20] - PB13 [pin 24] - PB14 [pin 26] - PB15 [pin 5] - PB3 [pin 8] - PB4 [pin 7] - PB5 [pin 11] - PB6 [pin 10] - PB7 [pin 9] - PB9 [pin 25] - PC0 [pin 13] - PC1 [pin 12] - RFIO [pin 15] - RST [pin 17] - VCC [pin 1] ### USB1 — [TYPE-C-31-M-12](https://www.flux.ai/vasy_skral/type-c-31-m-12~75f.md) - Datasheet URL: https://datasheet.lcsc.com/lcsc/2205251630_Korean-Hroparts-Elec-TYPE-C-31-M-12_C165948.pdf - Manufacturer Name: Korean Hroparts Elec - Manufacturer Part Number: TYPE-C-31-M-12 - Part Type: Connector **Pins:** - CC1 [pin A5] - CC2 [pin B5] - DN1 [pin A7] - DN2 [pin B7] - DP1 [pin A6] - DP2 [pin B6] - GND [pin B1A12] - GND [pin A1B12] - SBU1 [pin A8] - SBU2 [pin B8] - SHIELD [pin S3] - SHIELD [pin S1] - SHIELD [pin S4] - SHIELD [pin S2] - VBUS [pin A4B9] - VBUS [pin B4A9] *The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/vasy_skral/lora-to-wifi-gateway-reference-design~s7](https://www.flux.ai/vasy_skral/lora-to-wifi-gateway-reference-design~s7).* --- *Generated from [https://www.flux.ai/vasy_skral/lora-to-wifi-gateway-reference-design~s7](https://www.flux.ai/vasy_skral/lora-to-wifi-gateway-reference-design~s7)*