
A real-time wireless tracking system using an STM32-based transmitter integrated with GPS and LoRa modules, and an ESP32-based receiver with LoRa communication. This project demonstrates wireless long range communication using RF signals.
- Size
- 36.5 × 42.5 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 20
- Nets
- 62
- Pads
- 121
- Tracks, vias
- 158, 21
- Pours
- 2
- Routed
- Yes
- KiCad
- KiCad 10.0 (file 20260206)
- Created
- 31 Mar 2026
- Updated
- 31 Mar 2026
Overview
PCB Design is an open-source printed circuit board by Pritika-2024, from the Pritika-2024/Lora_Communication_based_real_time_tracking repository on GitHub, published under the MIT licence. It is a 2-layer board of 36.5 × 42.5 mm with 20 parts on 62 nets, routed with 158 tracks and 21 vias.
It is built around the NEO-6M, SX1278 and AP2112K-3.3. It belongs with the radio and wireless boards and the STM32 boards of this library.
Main components
3NEO-6M
-- GNSS Modules ROHSu-bloxGNSS ModulesSX1278
SMD,16x16mm-148dBm 10.8mA 120mA 2.1V~3.6V 20dBm LoRa LoRa frequency hopping spread spectrum、Channel activity detection (CAD) SPI SMD,16x16mm LoRa Modules ROHSLCXLoRa ModulesAP2112K-3.3
SOT253.3V 600mA CMOS Low Dropout Linear Regulator with EnableDiodes IncorporatedUncategorised
README
README.mdLoRa GPS Tracking System
Introduction
This project implements a long-range wireless tracking system using LoRa communication. An STM32-based transmitter acquires real-time GPS coordinates and transmits them over LoRa, while an ESP32-based receiver processes and displays the received data. The system is optimized for low-power, long-distance IoT tracking.
Project Overview
The system consists of two nodes:
- Transmitter (STM32 + GPS + LoRa)
- Receiver (ESP32 + LoRa)
Technical Details
Baud Rate
- GPS: 9600 bps
- Serial: 115200 bps
Frequency of Operation
- LoRa: 433 MHz
STM32 Programming and Debugging
- Programming via ST-Link (SWD interface)
- Pins: SWCLK, SWDIO, GND, VCC
- Supports debugging (breakpoints, step execution)
Communication Interfaces
- LoRa → Uses SPI communication with STM32
- GPS → Uses UART communication with STM32
Hardware Connections
LoRa (SX1278 → STM32)
- NSS (CS) → SPI Chip Select
- SCK → SPI Clock
- MOSI → SPI MOSI
- MISO → SPI MISO
- DIO0 → External interrupt pin
GPS (NEO-6M → STM32)
- TX → STM32 RX
- RX → STM32 TX
- VCC → 3.3V
- GND → GND
ST-Link (Programming)
- SWDIO → STM32 SWDIO
- SWCLK → STM32 SWCLK
- GND → GND
- 3.3V → VCC
PCB Design
The transmitter circuit integrates STM32 with GPS (UART) and LoRa (SPI). A custom PCB was designed in KiCad for compact integration.
Schematic
Components (BOM-Based)
- STM32F103RBTx (Main controller, LQFP-64)
- SX1278 LoRa Module (Ra-01) (RF communication)
- NEO-6M GPS Module (Location acquisition via UART)
- AP2112K-3.3 Voltage Regulator (3.3V supply)
- Capacitors
- 100nF (decoupling near ICs)
- 1µF (regulator stability)
- 10µF (bulk filtering)
- Resistors (10kΩ) (pull-up/pull-down)
- Connectors
- Battery input (2-pin)
- Reset header
- ST-Link header
Power Supply Design (External Power)
The system is powered using an external battery connected via a 2-pin header (BatteryConnector1).
- Regulated using AP2112K-3.3 (LDO)
- 1µF capacitors at input/output for stability
- 10µF bulk capacitor for transient response
- 100nF capacitors for local decoupling
Power Flow
Battery → Regulator (3.3V) →
STM32, LoRa, GPS
Ensures stable 3.3V operation for all modules.
PCB Layout
Prototype
The hardware prototype validates real-time communication between transmitter and receiver.
Basic Workflow
- GPS provides latitude and longitude via UART
- STM32 processes and formats data
- LoRa transmits the data packet
- ESP32 receives and decodes the packet
- Output is displayed on serial monitor
Results
Source Code
| File | Description |
|---|---|
src/transmitter.cpp | STM32 code for GPS data acquisition and LoRa transmission |
src/receiver.cpp | ESP32 code for LoRa reception and data decoding |
Libraries Used
-
LoRa.h
Used for interfacing with SX1278 module using SPI and handling packet transmission/reception. -
TinyGPS++
Parses raw NMEA data from GPS module into usable latitude and longitude values. -
SPI.h
Enables SPI communication between STM32/ESP32 and LoRa module. -
SoftwareSerial (if used)
Provides UART interface when hardware UART is limited (mainly for GPS).
Tools Used
- KiCad (PCB design)
- Arduino IDE (firmware development)
- Embedded C (programming)
Parts
20| Qty | Value | Footprint | References |
|---|---|---|---|
| 7 | 100nF | Capacitor_SMD:C_0603_1608Metric | A1, B1, C1, Cp1, Cp2, D1, E1 |
| 2 | 10K | Resistor_SMD:R_0603_1608Metric | PullDR1, PullDR2 |
| 2 | 1uF | Capacitor_SMD:C_0603_1608Metric | InC1, OutC1 |
| 2 | ~ | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | BatteryConnector1, RstBt1 |
| 1 | - | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | STLink1 |
| 1 | 10uF | Capacitor_SMD:C_0805_2012Metric | BulkC1 |
| 1 | AP2112K-3.3 | Package_TO_SOT_SMD:SOT-23-5 | Regulator1 |
| 1 | NEO-6M | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | GPS1 |
| 1 | STM32F103RBTx | Package_QFP:LQFP-64_10x10mm_P0.5mm | STM32 |
| 1 | Sx1278 | RF_Module:Ai-Thinker-Ra-01-LoRa | Lora1 |
The 19 most common of 20 parts.
Similar boards
- 2 layers152.1 × 70.1 mm

- 4 layers45.3 × 31.5 mm

- 2 layers38 × 90 mm

SIH Smart Irrigation System
Arshsingh1602/Smart-Irrigation-System
This is our project of SIH 2024 in which we developed a smart irrigation system that can be used to control the under and overuse of water in the feild of farmer.
30 partsMIT - 4 layers26 × 19.1 mm

CanSat
TanujRai14/Sat_pcb_design
This repository contains the PCB design files and documentation for a Can Satellite, featuring multiple environmental and orientation sensors, power management, and wireless communication capabilities.
35 partsCERN-OHL-S-2.0 - 4 layers40 × 40 mm

CommsRev0
Kmshanley/PicoSat-Initiative
The pocket cube standard requires satellites to be 5x5x5cm and under 250 grams. Upon completion of this Wentworth PicoSat it will become one of the smallest satellites capable of high resolution imagery from LEO.
39 parts3GPL-3.0 - 4 layers62.8 × 97.5 mm

- 2 layers482.6 × 35.6 mm

- 2 layers61.3 × 89.6 mm

QuakeGuard PCB
GiZano/QuakeGuard
Distributed Earthquake Early Warning (EEW) system built on low-cost ESP32-C3 IoT sensors with Zero-Trust security, multi-node epicenter triangulation, and on-premise AI emergency reports.
17 parts24AGPL-3.0
Questions
How big is the PCB Design PCB?
It measures 36.5 × 42.5 mm and has 2 copper layers, 1.6 mm thick.
What parts does the PCB Design use?
20 parts, built around the NEO-6M, SX1278 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 PCB Design KiCad files?
From the Pritika-2024/Lora_Communication_based_real_time_tracking repository on GitHub, at the commit this page was made from: the board is 02_PCB_Transmitter/PCB_Design.kicad_pcb and its schematic 02_PCB_Transmitter/Schematic.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the PCB Design design in my own project?
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).