Skip to the content
2 layers27.5 × 48 mmWearable device sdp new design, the printed circuit board in 3D

Wearable device sdp new design

FirasObieda/mobile-vitals

Wearable health tracker that estimates heart rate, blood pressure, and SpO₂ from PPG signals in real time using ML — ESP32 firmware, Firebase backend, Flutter app, and custom PCB.

Size
27.5 × 48 mm
Copper layers
2
Thickness
1.6 mm
Parts
7
Nets
23
Pads
50
Tracks, vias
0, 0
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
8 Sep 2026
Updated
9 Sep 2026

Overview

Wearable device sdp new design is an open-source printed circuit board by FirasObieda, from the FirasObieda/mobile-vitals repository on GitHub. It is a 2-layer board of 27.5 × 48 mm with 7 parts on 23 nets.

Its parts include 6 ICs and 1 connector. It belongs with the wearables boards of this library.

README

README.md

Mobile Vitals: AI-Powered Health Tracker with ML Predictions & Alerts

Senior Design Project — Department of Computer Engineering, University of Sharjah (Fall 2025–2026)

Team: Majid M. Almheiri · Firas Obieda Abu-Bader · Abdullah Kaddoura Supervisor: Dr. Bassel Soudan

Overview

Chronic conditions like hypertension, hypoxemia, and heart-rate irregularities are hard to catch early because the standard measurement tools (cuffs, pulse oximeters) are manual, invasive, and non-continuous. Mobile Vitals is a wearable device that continuously and non-invasively estimates heart rate (HR), blood pressure (BP), and blood oxygen saturation (SpO₂) from a PPG (photoplethysmography) signal, streams the data to the cloud, runs it through a trained ML model, and alerts the user through a companion mobile app when a reading falls outside a normal range.

How it works

  1. A compact ESP32-based wearable captures PPG, skin temperature, and motion data.
  2. Readings are sent over Bluetooth to the mobile app (Wi-Fi on the wearable proved unreliable in practice, so the design was changed to Bluetooth wearable↔phone, Wi-Fi phone↔cloud).
  3. The app double-buffers readings and uploads them to Firebase Firestore every ~10 seconds.
  4. A Firebase Cloud Function preprocesses the signal and runs it through a trained Random Forest model (selected after comparing Random Forest, XGBoost, and LightGBM) to predict HR, systolic/diastolic BP, and SpO₂.
  5. Predictions are written back to Firestore and shown live in the app; abnormal readings trigger a two-tier (yellow/red) alert.

High level view

Repository structure

text
firmware/     ESP32 (Arduino) firmware — sensor capture & Bluetooth transmission
backend/      Firebase Cloud Function (Python) that runs the ML inference model
mobile-app/   Flutter/FlutterFlow app — pairing, live vitals, history, alerts
ml/ppg-bp/    ML pipeline trained on the PPG-BP dataset (superseded, kept for reference)
ml/ptt-ppg/   ML pipeline trained on the PTT-PPG dataset — the one used in the final model
hardware/     KiCad PCB design files for the wearable

Hardware

ComponentModelPurpose
MicrocontrollerSeeed Studio XIAO ESP32-C3Main processing unit
PPG sensorMAX30105Captures the PPG waveform used for inference
Temperature sensorMLX90614Contactless skin temperature (IR)
IMULSM6DS3Motion/orientation, for motion-artifact handling
DisplayWaveshare 1.69" LCDShows HR, SpO₂, temperature, BP
Power3.7V 800mAh Li-Po + TP4056 chargerPortable power + USB charging
EnclosureCustom 3D-printed casing (Onshape)Protection & wearability

Hardware Schematic

Communication between sensors uses I²C/SPI on the wearable; wearable↔phone is Bluetooth; phone↔cloud is Wi-Fi.

Machine learning

Two datasets were evaluated:

  • PPG-BP (Figshare, 657 segments / 219 subjects) — initial results were weak (best overall MAE ≈ 7.1, from XGBoost) and the dataset was judged not reliable enough.
  • PTT PPG (PhysioNet, 22 subjects, 3,233 records across sit/run/walk) — much stronger results. Random Forest gave the best overall performance: SBP R² ≈ 0.955, DBP R² ≈ 0.921, HR R² ≈ 0.827, SpO₂ R² ≈ 0.845, overall MAE ≈ 1.31.

Preprocessing pipeline: linear interpolation for gaps → Butterworth low-pass filter (15 Hz, 8th order) → Savitzky–Golay smoothing → normalization to [0,1] → segmentation into 10-second windows.

Software specifications

Tool / LibraryVersionPurpose
Arduino IDE2.3.2Firmware upload for the XIAO ESP32-C3
Pandas2.2.3Data cleaning/manipulation
NumPy1.26.4Numerical computation
SciPy1.13.1Filtering & feature extraction
scikit-learn1.4.2Model training/evaluation
Joblib1.4.2Model persistence
firebase-admin (Python)6.4.0Cloud Function ↔ Firebase access
functions-framework3.6.0Serves the Python Cloud Function
cloudevents1.11.0Event handling for Cloud Functions

Setup

Each subfolder has more detail — start here:

  • Firmware: open firmware/ESP32_SOURCE_CODE.ino in the Arduino IDE with the ESP32 board package installed.
  • Backend: see the Backend section below and backend/functions/requirements.txt. Requires your own Firebase service account key (not included — see Configuration note).
  • Mobile app: see mobile-app/README.md.
  • ML pipelines: open the notebooks under ml/ppg-bp/ or ml/ptt-ppg/ in Jupyter.
  • Hardware: open hardware/wearable_device_sdp.kicad_pro in KiCad.

Backend (backend/)

bash
cd backend/functions
python -m venv venv
source venv/bin/activate   # venv\Scripts\activate on Windows
pip install -r requirements.txt

This uses the Firebase Admin SDK, which needs a service account key that is not included in this repo:

  1. Firebase console → Project Settings → Service Accounts → Generate new private key.
  2. Save it locally and point GOOGLE_APPLICATION_CREDENTIALS at it.
  3. Never commit this file (it's covered by .gitignore).

Deploy: firebase deploy --only functions from backend/.

Configuration note

This repo doesn't include environment-specific credentials (Firebase service account key, API keys) — that's standard practice for any public repo. See the Backend and mobile-app/README.md sections for how to supply your own.

Project report

The full SDP2 report (architecture rationale, literature review, testing, and results in detail) is available separately and covers material summarized above, including the design evolution from the SDP1 proposal (dual PPG sensors → single MAX30105; BME280 → MLX90614; Wi-Fi → Bluetooth for the wearable link; breadboard → custom PCB).

Final Design

Parts

7
QtyValueFootprintReferences
2~Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalU7, U9
1Conn_01x02_PinConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ1
1~ESP32_mini:ESP32_C3_SuperMini_FlippedU1
1~Sensors_2025:MLX_Temp_SensorU8
1~Sensors_2025:LSM6DS3U2
1~Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalU4

Similar boards

  • 2 layersEncoder, the printed circuit board in 3D

    Encoder

    byrantech/laptop

    anyon_e, a highly integrated, high end, open source laptop. Attempt the impossible.

    7 parts4.3kMIT
  • 2 layers40 × 20 mmSensor smd, the printed circuit board in 3D

    Sensor smd

    scottbez1/splitflap

    DIY split-flap display

    7 parts4.2k
  • 2 layers19.8 × 30 mmZ limit, the printed circuit board in 3D

    Z limit

    opulo-inc/lumenpnp

    The LumenPnP is an open source pick and place machine.

    7 parts3.7k
  • 2 layers35.6 × 58.2 mmDisplay Carrier, the printed circuit board in 3D

    Display Carrier

    AxxAxx/AxxSolder

    STM32 Based soldering station for JBC cartridges, 9-24 VDC and USB-PD power

    7 parts1.7kGPL-3.0
  • 2 layers20.3 × 16.3 mmMap MPX, the printed circuit board in 3D

    Map MPX

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    7 parts1.2k
  • 2 layers26 × 44 mmCompact carrier board, the printed circuit board in 3D

    Compact carrier board

    jamro/tiny-engineer

    A small desktop robot that brings an AI coding assistant to life, physically acting out when it reads files, thinks, writes code, and finishes work.

    7 parts1.1k
  • 2 layers26.4 × 53.8 mmAtari pickup, the printed circuit board in 3D

    Atari pickup

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    7 parts1kGPL-3.0
  • 2 layersRj45 breakout, the printed circuit board in 3D

    Rj45 breakout

    rene-dev/stmbl

    AC Servo Driver for STM32F4

    7 parts990GPL-3.0

Questions

How big is the Wearable device sdp new design PCB?

It measures 27.5 × 48 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Wearable device sdp new design use?

7 parts. 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 Wearable device sdp new design KiCad files?

From the FirasObieda/mobile-vitals repository on GitHub, at the commit this page was made from: the board is hardware/wearable_device_sdp_new_design.kicad_pcb and its schematic hardware/wearable_device_sdp.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Wearable device sdp new design design in my own project?

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