Skip to the content
PCBKitNew board
2 layers53.5 × 35 mmCompass, the printed circuit board in 3D

A compact electronic compass and environmental sensing board built around the STM32WB35CEU6A microcontroller. The design combines a 3-axis magnetometer, barometric pressure sensor, USB-C connectivity, and BLE capability…

Size
53.5 × 35 mm
Copper layers
2
Thickness
1.6 mm
Parts
45
Nets
62
Pads
216
Tracks, vias
834, 109
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
15 Jul 2026
Updated
3 Aug 2026

Overview

Compass is an open-source printed circuit board by joshitha-c, from the joshitha-c/compass repository on GitHub. It is a 2-layer board of 53.5 × 35 mm with 45 parts on 62 nets, routed with 834 tracks and 109 vias.

It is built around the DLF162500LT-5028A1, LIS2MDL and MIC5365-3.3YD5-TR, with the USBLC6-2SC6 among its other parts. Its parts include 19 capacitors, 9 resistors, 5 ICs, 4 connectors and 3 inductors. It belongs with the STM32 boards of this library.

Main components

4

README

README.md

STM32WB Electronic Compass

A compact electronic compass and environmental sensing board built around the STM32WB35CEU6A microcontroller. The design combines a 3-axis magnetometer, barometric pressure sensor, USB-C connectivity, and BLE capability into a low-power embedded platform.


Features

  • STM32WB35CEU6A ARM Cortex-M4 + BLE MCU
  • LIS2MDL 3-axis magnetometer
  • LPS22DF digital barometric pressure sensor
  • USB Type-C interface
  • 3.3V regulated power supply
  • SWD programming/debug interface
  • UART debug interface
  • External high-speed and low-speed crystals
  • Designed in KiCad

Hardware Overview

Microcontroller

STM32WB35CEU6A

  • ARM Cortex-M4
  • Integrated Bluetooth Low Energy radio
  • USB Full-Speed
  • Multiple UART, SPI and I²C peripherals
  • Low-power operation

Sensors

LIS2MDL Magnetometer

Provides:

  • X/Y/Z magnetic field measurements
  • Digital I²C interface
  • Low power operation
  • Electronic compass functionality

Typical applications:

  • Heading estimation
  • Navigation
  • Orientation sensing

LPS22DF Pressure Sensor

Provides:

  • Atmospheric pressure
  • Temperature measurement
  • Digital I²C interface

Applications:

  • Altitude estimation
  • Weather monitoring
  • Environmental sensing

Power Supply

Input power is supplied through:

  • USB Type-C connector

Power regulation:

  • MIC5365-3.3V LDO regulator
  • 3.3 V system rail

The design includes multiple decoupling capacitors near the MCU and sensors for stable operation.


Clock Sources

The board includes:

  • 32 MHz external crystal

    • Main system clock
    • USB timing
    • BLE radio
  • 32.768 kHz crystal

    • Real-Time Clock (RTC)
    • Low-power timing

Interfaces

USB

USB Type-C connector

Supports:

  • Device communication
  • Firmware updates
  • Power input

SWD

Programming interface:

SignalDescription
SWDIODebug data
SWCLKDebug clock
NRSTReset
3.3VReference
GNDGround

Compatible with:

  • ST-Link V2
  • ST-Link V3

UART

Dedicated UART header for:

  • Debug output
  • Logging
  • Bootloader communication

Pin Summary

PeripheralInterface
LIS2MDLI²C
LPS22DFI²C
USBUSB FS
SWDProgramming
UARTDebug

Applications

  • Electronic compass
  • Digital navigation
  • BLE sensor node
  • Altimeter
  • Environmental monitoring
  • Portable embedded systems
  • IoT devices

Future Improvements

  • Battery charger
  • LiPo support
  • On-board IMU (accelerometer + gyroscope)
  • Status LEDs
  • User push buttons
  • QSPI Flash
  • Battery fuel gauge

Schematics: image Pcb: image

Parts

45
QtyValueFootprintReferences
8100nCapacitor_SMD:C_0402_1005MetricC1, C2, C3, C4, C5, C6, C8, C16
44u7Capacitor_SMD:C_0201_0603MetricC10, C11, C17, C18
4RResistor_SMD:R_0402_1005MetricR1, R2, R3, R4
2220RResistor_SMD:R_0402_1005MetricR6, R7
24.7kResistor_SMD:R_0402_1005MetricR8, R9
2CCapacitor_SMD:C_0402_1005MetricC9, C12
10p3Resistor_SMD:R_0402_1005MetricC14
10p8'Resistor_SMD:R_0402_1005MetricC13
1100NCapacitor_SMD:C_0402_1005MetricC15
1100RResistor_SMD:R_0402_1005MetricR5
1100nFCapacitor_SMD:C_0402_1005MetricC19
110nInductor_SMD:L_0402_1005MetricL1
110uInductor_SMD:L_0402_1005MetricL2
12n7Inductor_SMD:L_0402_1005MetricL3
132kHz768Crystal:Crystal_SMD_2012-2Pin_2.0x1.2mmX1
14u7Resistor_SMD:R_0201_0603MetricC7
1Conn_01x04Connector_Molex:Molex_PicoBlade_53048-0410_1x04_P1.25mm_HorizontalJ4
1Conn_CoaxialConnector_Coaxial:U.FL_Hirose_U.FL-R-SMT-1_VerticalJ1
1Crystal_GND24Crystal:Crystal_SMD_2016-4Pin_2.0x1.6mmY1
1DLF162500LT-5028A1EasyEDA:FILTER-SMD_0603-4P-L1.6-W0.8-L-1USB1
1ER_OLEDM0.91_1x-I2CDisplay:ER_OLEDM0.91_1x-I2CU5
1LEDLED_SMD:LED_0402_1005MetricD1
1LIS2MDLPackage_LGA:LGA-12_2x2mm_P0.5mmU4
1MIC5365-3.3YD5Package_TO_SOT_SMD:TSOT-23-5U3
1STM32WB35CEUxAPackage_DFN_QFN:QFN-48-1EP_7x7mm_P0.5mm_EP5.6x5.6mmU1
1SW_PushButton_Switch_SMD:SW_SPST_CK_RS282G05A3SW1
1TC2030_SWDPCM_marbastlib-various:CON_TC2030_outlinedJ2
1USBLC6-2SC6Package_TO_SOT_SMD:SOT-23-6U2
1USB_C_Receptacle_USB2.0_16PConnector_USB:USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_HorizontalJ3

Questions

How big is the Compass PCB?

It measures 53.5 × 35 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Compass use?

45 parts, built around the DLF162500LT-5028A1, LIS2MDL, MIC5365-3.3YD5-TR and USBLC6-2SC6. 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 Compass KiCad files?

From the joshitha-c/compass repository on GitHub, at the commit this page was made from: the board is compass.kicad_pcb and its schematic compass.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Compass design in my own project?

Its repository states no licence, so its author keeps all rights: ask joshitha-c before reusing the design.

Similar boards

  • 4 layers58 × 31 mmSTM32 RF, the printed circuit board in 3D

    STM32 RF

    Venky474/STM32_RF_Demo_PCB

    Custom STM32 RF board designed in KiCad.

    49 parts2MIT
  • 4 layers48 × 33 mmStm32-bt board, the printed circuit board in 3D

    Stm32-bt board

    OdaiJ/stm32-bt-board

    My attempt at following the Phil's Lab KiCad V7 tutorial on YouTube

    60 parts1
  • 4 layers80.5 × 32.5 mmStm32wb55-ble dev board, the printed circuit board in 3D

    Stm32wb55-ble dev board

    shivamtiwari020505/stm32wb55-ble-dev-board

    Custom STM32WB55 development board integrating 2.4GHz BLE 5.x, LPUART, I2C, and UART via RS232/DB9 for PC and industrial machine interfacing. Designed to bridge modern wireless IoT with legacy wired systems.

    63 parts1MIT
  • 4 layers117 × 77 mmProdDeck, the printed circuit board in 3D

    ProdDeck

    arsovskiteodor/A.ProdDeck

    Open-hardware macro pad (WIP): custom KiCad PCB with keys, encoders and a fader, plus firmware and a desktop configurator

    69 parts
  • 4 layers48.5 × 24.3 mmSTM32 2nd Project, the printed circuit board in 3D

    STM32 2nd Project

    ashfaque-ur-rahman/STM32WB-RF-PCB-Design

    STM32 microcontroller PCB design with RF capability —4 layer Board —KiCad project based on Phil's Lab tutorial series

    48 parts
  • 4 layers29 × 43 mmFlight controller, the printed circuit board in 3D

    Flight controller

    Bobev64/sensor-board

    KiCAD design attempt at a flight controller for an RC airplane.

    52 parts