﻿TRW-LORA20 設計資料包 ／ Design kit
文星電子 WENSHING Electronics　2026-12-02
產品頁 / Product page: https://www.rf.net.tw/?action=tw&style=show&m=118&id=302
                       https://www.rf.net.tw/?action=en&style=show&m=118&id=302

內容 / Contents
  KiCad/TRW-LORA20.kicad_sym                 原理圖符號 Schematic symbol（15 腳，腳名＝SX1278 腳名）
  KiCad/TRW-LORA20.pretty/TRW-LORA20_Castellated.kicad_mod   郵票孔（半孔）貼焊封裝 Castellated SMD footprint
  KiCad/TRW-LORA20.pretty/TRW-LORA20_PinHeader.kicad_mod     1.27 mm 排針封裝 1.27 mm pin header footprint
  DXF/TRW-LORA20_Castellated.dxf、TRW-LORA20_PinHeader.dxf   焊墊／開孔 DXF（任何 EDA 都能匯入，單位 mm）
  TRW-LORA20_焊墊尺寸與參考接線_footprint_reference.pdf  尺寸圖、參考接線、天線收發切換
  TRW-LORA20_Datasheet_V1.1.pdf                  規格書 V1.1：腳位（含 SX1278 IC 腳號）、天線切換說明、程式範例

腳位 / Pins（名稱＝SX1278 腳名 / names are SX1278 pin names）
  1 VDD   2 NRESET   3 DIO0   4 DIO1/DCLK   5 DIO2/DATA   6 DIO3   7 DIO4
  8 DIO5   9 SCK   10 MISO   11 MOSI   12 NSS   13 GND   14 VDD   15 GND（上緣 top edge）
  VDD 1.9~3.6 V；IO 為 3.3 V 準位、不耐 5 V / 3.3 V I/O, not 5 V tolerant
  2～12 號腳在模組內各串 4.7 kΩ 電阻 / 4.7 kΩ series resistors inside the module
  間距 Pitch 1.27 mm（兩排 45° 斜邊）

天線收發切換 / RF switch
  由 SX1278 的 RXTX/RFMOD（IC 第 20 腳）在模組內自動控制，主控端不用接、模組沒有 TXEN／RXEN 腳。
  發射 TX：RXTX High → 天線接 PA_BOOST；接收／待機／睡眠：RXTX Low → 天線接 RFI_LF。
  韌體一定要選 PA_BOOST（RegPaConfig 0x09 bit7 = 1）；RFO 腳在模組內沒有接。
  Driven inside the module by SX1278 RXTX/RFMOD (IC pin 20); no host pin, no TXEN/RXEN.
  TX: RXTX high, antenna to PA_BOOST. RX/standby/sleep: RXTX low, antenna to RFI_LF.
  Always select PA_BOOST (RegPaConfig 0x09 bit 7 = 1); RFO is not connected.

兩種焊法 / Two mounting methods
  郵票孔：模組平貼主板，兩條 45° 斜邊的 Ø0.6 mm 半孔焊在主板焊墊上（量產、薄型、耐震）
  排針：1.27 mm 排針焊在模組內側 Ø0.64 mm 孔，再插主板或排母（打樣、可更換）
  Castellated: lay flat and solder the Ø0.6 mm half-holes on the two 45° edges to the pads.
  Pin header: solder a 1.27 mm header into the inner Ø0.64 mm holes and plug into the main board.

匯入方式 / How to import
  KiCad 6 以上：偏好設定 → 管理符號庫／封裝庫 → 加入 .kicad_sym 與 .pretty 資料夾
  Altium Designer：File → Import Wizard → KiCad Design Files and Libraries，選 KiCad 資料夾，轉成 SchLib／PcbLib
  EasyEDA／立創 EDA：匯入 → KiCad；其他 EDA：用 DXF 對位畫焊墊

注意 / Notes
  天線端（模組左側約 10 mm）下方主板不要鋪銅、不要走線。封裝內已畫禁止區（KiCad keepout／DXF ANT_KEEPOUT 圖層）。
  座標取自文星原始 PCB 設計檔 WS-LORA100m；上視圖、原點為模組左下角。
  Keep copper and traces off the main board under the antenna end (about 10 mm at the left of the module).
