Skip to the content
2 layersGrad project, the printed circuit board in 3D

A wearable safety device for industrial environments. A worker wears a UWB tag; fixed anchor stations track its position in real time and a web dashboard shows where every worker is.

Copper layers
2
Thickness
1.6 mm
Parts
44
Nets
89
Pads
235
Tracks, vias
676, 93
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
26 Jul 2026
Updated
26 Jul 2026

Overview

Grad project is an open-source printed circuit board by Eng-Youssef-Yassin, from the Eng-Youssef-Yassin/sos-wearable-device repository on GitHub. It is a 2-layer board with 44 parts on 89 nets, routed with 676 tracks and 93 vias.

It is built around the DWM3000, ESP32-S3-WROOM-1-N8 and BUTT-2, with the B2B-PH-K-S, BQ24040DSQR and ESD7104MUTAG among its other parts. Its parts include 15 resistors, 11 capacitors, 3 diodes, 3 connectors and 1 IC. It belongs with the ESP32 boards of this library.

Main components

8

README

README.md

SOS Wearable Device — UWB Man-Down Safety System

A wearable safety device for industrial environments. A worker wears a UWB tag; fixed anchor stations track its position in real time and a web dashboard shows where every worker is. If the wearer falls or presses the SOS button, the dashboard raises an alarm with their location.

Built as a graduation project with Elsewedy Electric R&D and The Knowledge Hub Universities. Selected for the SPARK program. Grade: A.


System Overview

text
   ┌──────────┐   UWB ranging (DS-TWR)   ┌──────────────┐
   │   TAG    │ ◄──────────────────────► │   ANCHOR 1   │
   │  (worn)  │ ◄──────────────────────► │   ANCHOR 3   │
   │          │ ◄──────────────────────► │ ANCHOR 2 /   │
   │ SOS btn  │                          │  GATEWAY     │
   │ fall det │                          └──────┬───────┘
   │ temp     │                                 │ WiFi SoftAP
   └──────────┘                                 ▼
                                        ┌──────────────┐
                                        │  Dashboard   │
                                        │ 192.168.4.1  │
                                        └──────────────┘

The tag ranges against three fixed anchors. Anchor 2 doubles as the gateway: it collects all three distances, runs the position solution, and serves the dashboard over its own WiFi access point — so the system needs no existing network infrastructure on site.


Repository Layout

text
hardware/     KiCad 7 schematic, PCB layout, footprints and BOM
firmware/     Arduino / ESP-IDF firmware for tag, anchors and gateway
FIX_LOG.md    Debugging record — root-cause analysis of field failures

Hardware

The custom PCB is a 2-layer compact circular board designed for wearability, laid out for DFM with attention to grounding and EMI control.

PartFunction
ESP32-C3-MINI-1U-N4Main controller, WiFi, BLE
ESP32-S3Anchor station controller
DWM3000UWB transceiver (IEEE 802.15.4z)
BQ24040DSQRLi-ion battery charger
ESD7104MUTAG-7ESD protection on external lines

Open hardware/grad-project.kicad_pro in KiCad 7 or later. The BOM is in hardware/GRAD.csv.


Firmware

SketchRole
TAG_CODE/Worn device — initiates ranging, reads sensors, sends uplink
ANCHOR_CODE/Fixed anchor — responds to ranging, relays measurements
ANCHOR_GATEWAY/Anchor 2 — as above, plus WiFi AP and dashboard
SPI_MAX_SPEED_TEST/Bring-up utility for validating the DW3000 SPI link

DW3000.cpp / DW3000.h / DW3000Constants.h are the shared transceiver driver, modified from the community baseline for this application.

Radio Configuration

ParameterValue
Channel5
Data rate850 kbps
Preamble2048 symbols (tag), 4096 (anchors)
PAC32
STSSP1, 128 symbols
Ranging methodDS-TWR (double-sided two-way ranging)
Update rate~18–22 Hz
Tested range30–40 m line-of-sight

DS-TWR is used rather than single-sided ranging because it cancels the clock drift between tag and anchor, which otherwise dominates the error budget at these distances.


Signal Processing

Raw UWB time-of-flight is not usable directly in a warehouse — reflections off racking and machinery produce non-line-of-sight (NLOS) readings that appear closer than the truth. Two stages handle this:

NLOS rejection in the CIR linear domain. Rather than comparing received power to first-path power in dB, the filter computes

text
nlos_lin = (CIR_PWR × 131072) / (f1² + f2² + f3²)

which is the exact linear equivalent, and thresholds on that. A peak-symmetry check adds a penalty when the centre first-path sample is not the actual peak — a strong indicator of a reflected path arriving first.

Adaptive EMA smoothing. An exponential moving average smooths the accepted readings, with the alpha term adapting to measurement quality: noisier conditions use a higher alpha so the filter still converges in roughly ten readings instead of twenty.

Both stages were tuned specifically for long range, where RSSI falls to −100 to −110 dBm and the earlier thresholds were rejecting perfectly valid line-of-sight frames.


Concurrency

The gateway runs UWB ranging and WiFi on separate FreeRTOS tasks pinned to different cores. This matters: the WiFi stack blocks unpredictably, and sharing a core with the ranging task caused missed reception windows and dropped measurements.


Getting Started

Requirements: Arduino IDE with ESP32 board support, and the ESPAsyncWebServer library.

  1. Flash TAG_CODE to the wearable board.

  2. Flash ANCHOR_CODE to anchors 1 and 3, changing ANCHOR_ID in each.

  3. For the gateway, copy the credentials template and set your own values:

    bash
    cd firmware/ANCHOR_GATEWAY
    cp config.example.h config.h

    Edit config.h with your access point SSID, password and dashboard login. This file is gitignored and never committed.

  4. Flash ANCHOR_GATEWAY to anchor 2.

  5. Connect a phone or laptop to the access point and open http://192.168.4.1.

Note on credentials. This is a self-contained demo access point that is not exposed to the internet, and the shipped values are placeholders. Set your own before using this anywhere that matters.


Debugging Record

FIX_LOG.md documents real failures found during bring-up and how they were diagnosed — including an intermittent anchor dropout that turned out to be a startup race condition between SPI initialisation and the WiFi stack, where a fatal SPI check was permanently deleting the UWB task instead of retrying.

It is probably the most useful file in this repository for understanding how the system actually behaves.


Author

Youssef Yassin — Electrical & Electronics Engineering LinkedIn

Parts

44
QtyValueFootprintReferences
410kResistor_SMD:R_0603_1608MetricR7, R10, R11, R15
41ufCapacitor_SMD:C_0603_1608MetricC1, C2, C3, C4
31kResistor_SMD:R_0603_1608MetricR2, R3, R6
3BUTT-2SW_BUTT:SW_BUTT-2B1, B2, B3
3LEDLED_SMD:LED_0603_1608MetricD1, D2, D3
20.1uFCapacitor_SMD:C_0603_1608MetricC6, C11
20.1ufCapacitor_SMD:C_0603_1608MetricC8, C9
22.2kResistor_SMD:R_0603_1608MetricR13, R14
25.1kResistor_SMD:R_0603_1608MetricR8, R9
1100KResistor_SMD:R_0603_1608MetricR12
110uFCapacitor_SMD:C_0603_1608MetricC7
110ufCapacitor_SMD:C_0603_1608MetricC5
11MResistor_SMD:R_0603_1608MetricR4
12.2nFCapacitor_SMD:C_0603_1608MetricC10
1200kResistor_SMD:R_0603_1608MetricR5
1540Resistor_SMD:R_0603_1608MetricR1
1B2B-PH-K-SConnector_JST:JST_EH_B2B-EH-A_1x02_P2.50mm_VerticalJ2
1BQ24040DSQRBQ24040DSQR:SON40P200X200X80-11NQ1
1Barrel_JackConnector_BarrelJack:BarrelJack_GCT_DCJ200-10-A_HorizontalS1
1DWM3000RF_Module:DWM1000W1
1ESD7104MUTAGESD7104MUTAG-7:UDFN10_ONSE1
1ESP32-S3-WROOM-1RF_Module:ESP32-S3-WROOM-1M1
1LOGONew folder (3):HHHG***
1LOGONew folder (2):ddddG***
1MPU-6050Sensor_Motion:InvenSense_QFN-24_4x4mm_P0.5mmP1
1MTSW-104-10-S-S-605-LLLibrary:SAMTEC_MTSW-104-10-S-S-605-LLJ1
1TLV75801PDRVPackage_SON:WSON-6-1EP_2x2mm_P0.65mm_EP1x1.6mmT1
1USB_C_Receptacle_USB2.0_16PConnector_USB:USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_HorizontalU1

Similar boards

  • 4 layers50.9 × 63.2 mmLego gameboy main, the printed circuit board in 3D

    Lego gameboy main

    greigs/OpenBrickGB

    Functional / Playable Lego Game Boy Electronics - PCB Design Files

    56 parts15
  • 4 layers30 × 61.1 mmMeshtastic LoRa, the printed circuit board in 3D

    Meshtastic LoRa

    BirryGit/Battery-Powered-Meshtastic-Board

    I want to learn how to make PCBs, and this seemed like a good idea. I originally was following the Stasis tutorial, but veered away from it significantly. I want to get into meshtastic, so this is awesome :)

    31 parts
  • 4 layers58.5 × 26.5 mmEsp32s3-bms, the printed circuit board in 3D

    Esp32s3-bms

    amar-jay/kicad-templates

    amarjay's kicad templates

    32 parts1
  • 2 layers67 × 122 mmGasmeter handheld device, the printed circuit board in 3D

    Gasmeter handheld device

    cs99x/GasMonitorLoRaCloud

    This project is a mobile and embedded application for a university course called "Mobile and Embedded Development".

    76 parts
  • 2 layers76.5 × 85 mmESP32 pcb, the printed circuit board in 3D

    ESP32 pcb

    robotanh/DOAN_KTMT

    22 parts
  • 4 layers44.5 × 62.8 mmESP32-Sen, the printed circuit board in 3D

    ESP32-Sen

    SendhanS/ESP32-Sen

    A compact ESP32-S3-MINI-1-N8 development board with USB-C (ESD protected), a 4-layer PCB stack-up (signal / GND / power / signal), and 3.3 V regulation using the TLV75801.

    33 parts1CC0-1.0

Questions

What parts does the Grad project use?

44 parts, built around the DWM3000, ESP32-S3-WROOM-1-N8, BUTT-2 and B2B-PH-K-S. 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 Grad project KiCad files?

From the Eng-Youssef-Yassin/sos-wearable-device repository on GitHub, at the commit this page was made from: the board is hardware/grad-project.kicad_pcb and its schematic hardware/grad-project.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Grad project design in my own project?

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