Skip to the content
2 layers36.5 × 42.5 mmPCB Design, the printed circuit board in 3D

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

3

README

README.md

LoRa 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

  1. GPS provides latitude and longitude via UART
  2. STM32 processes and formats data
  3. LoRa transmits the data packet
  4. ESP32 receives and decodes the packet
  5. Output is displayed on serial monitor

Results


Source Code

FileDescription
src/transmitter.cppSTM32 code for GPS data acquisition and LoRa transmission
src/receiver.cppESP32 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
QtyValueFootprintReferences
7100nFCapacitor_SMD:C_0603_1608MetricA1, B1, C1, Cp1, Cp2, D1, E1
210KResistor_SMD:R_0603_1608MetricPullDR1, PullDR2
21uFCapacitor_SMD:C_0603_1608MetricInC1, OutC1
2~Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalBatteryConnector1, RstBt1
1-Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalSTLink1
110uFCapacitor_SMD:C_0805_2012MetricBulkC1
1AP2112K-3.3Package_TO_SOT_SMD:SOT-23-5Regulator1
1NEO-6MConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalGPS1
1STM32F103RBTxPackage_QFP:LQFP-64_10x10mm_P0.5mmSTM32
1Sx1278RF_Module:Ai-Thinker-Ra-01-LoRaLora1

The 19 most common of 20 parts.

Similar boards

  • 2 layers152.1 × 70.1 mmFLP PCB set, the printed circuit board in 3D

    FLP PCB set

    DSM-Interrupt/FLP

    Overall Embedded segment of Project FLP

    118 parts
  • 4 layers45.3 × 31.5 mmRF Transiever, the printed circuit board in 3D

    RF Transiever

    Lonelybarbarian0/SX1278_Transiever

    48 parts1
  • 2 layers38 × 90 mmSIH Smart Irrigation System, the printed circuit board in 3D

    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 mmCanSat, the printed circuit board in 3D

    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 mmCommsRev0, the printed circuit board in 3D

    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 mmOceanAI, the printed circuit board in 3D

    OceanAI

    daniel360kim/OceanAI

    A robotic and software orientated ocean development.

    124 parts14MIT
  • 2 layers482.6 × 35.6 mmPrecision clock, the printed circuit board in 3D

    Precision clock

    mitxela/PrecisionClock-Hardware

    PCB design for the Precision Clock Mk III

    49 parts41
  • 2 layers61.3 × 89.6 mmQuakeGuard PCB, the printed circuit board in 3D

    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).