
HM Rev1
konstantinosfragkoulis/HealthMonitor
Chest-worn STM32U5 sensor that records ECG and SCG, and computes HRV on-device. Bare metal C.

Chest-worn STM32U5 sensor that records ECG and SCG, and computes HRV on-device. Bare metal C.
HM Collector Rev2 is an open-source printed circuit board by konstantinosfragkoulis, from the konstantinosfragkoulis/HealthMonitor repository on GitHub, published under the MIT licence. It is a 4-layer board of 37.5 × 29.5 mm with 91 parts on 88 nets, routed with 726 tracks and 116 vias.
It is built around the AD8232ACPZ-R7, W25Q128JVSIQ and TPS7A2033PDBVR-TP, with the SJ2-35813B-SMT-TR among its other parts. Its parts include 35 capacitors, 32 resistors, 7 diodes, 6 ICs and 4 connectors. It belongs with the sensors and measurement boards and the STM32 boards of this library.
Chest worn sensor with bare metal C firmware that records electrocardiogram (ECG) and seismocardiogram (SCG), and computes heart rate variability (HRV) on-device.
SCG-derived RMSSD agrees with ECG with a bias of +0.9 ms and 95% limits of [+0.0, +1.8] ms (60 one-minute windows, single subject, at rest).

[!WARNING] Not a medical device. For research and education only. While electrodes are attached, power the device from battery (e.g. an unplugged laptop) or connect through a USB isolator. Never connect to a mains-powered PC without isolation.
Core Stack: STM32U5 (Cortex-M33) | ST1VAFE6AX (6-axis IMU) | AD8232 (ECG AFE)
The IMU's data-ready interrupt triggers DMA transfers for both the IMU (SPI) and the ECG (ADC), so both data streams share the same sampling rate (480 Hz nominal, measured at ~471 Hz). Every sample is timestamped by a timer clocked from the board's crystal. Beat times and all HRV metrics use these timestamps, not the nominal rate. R peaks are refined between samples; AO times are at sample resolution (~2.1 ms). The 1.9% rate error shifts filter corners and window lengths slightly, which does not affect beat detection.
Three independent DSP pipelines run on-device:
HRV metrics (RMSSD, SDNN, pNN50, SD1, SD2) are computed separately for each stream from its own beat intervals, after removing intervals more than 25% from the local median (missed, extra, or premature beats) [3,4]. The ECG defines the reporting windows: contiguous, non-overlapping, at least 60 s long, and bounded by R peaks. Each SCG report covers the same window, using the SCG's own AO-AO intervals between the window's start and end R peaks. The SCG detector itself does not use the ECG.
Data is streamed to a host via a USB Virtual COM Port with CRC-32 integrity.
/hardware/HM-Rev1: First spin. See ERRATA.md (known routing/schematic flaw with the AD8232)./hardware/HM-Rev2: Fixed AD8232 layout, added USB-C, placed components on the bottom layer./fw: STM32CubeIDE project, bare-metal C source, DSP logic, and TinyUSB stack./software: Python telemetry parser and plotter.To validate the SCG pipeline, both streams are recorded simultaneously and the HRV metrics of each window are compared using Bland-Altman analysis [5] and ICC(2,1).
All table values come from the firmware's own HRV outputs. analyze.py reads them from hrv.csv and computes only the agreement statistics.
Results from a ~1 hour session lying down (single subject, n=60 paired 60 s windows):
| Metric | ECG (mean ± SD) | Bias (SCG - ECG) | 95% LOA | ICC(2,1) |
|---|---|---|---|---|
| RMSSD | 32.7 ± 7.8 ms | +0.9 ms | [+0.0, +1.8] | 0.991 |
| SDNN | 39.4 ± 12.1 ms | +0.4 ms | [+0.1, +0.8] | 0.999 |
| SD1 | 23.1 ± 5.5 ms | +0.6 ms | [+0.0, +1.3] | 0.991 |
| SD2 | 50.5 ± 16.9 ms | +0.4 ms | [+0.0, +0.7] | >0.999 |
| pNN50 | 12.2 ± 9.2 % | +1.5 % | [-3.1, +6.1] | 0.959 |
The first 40 s (electrode settling) are not analyzed.
The R-to-AO delay (63.4 ± 1.9 ms) is longer after longer R-R intervals (r = 0.46). This stretches AO-AO intervals slightly and accounts for about 90% of the RMSSD bias. Random beat-to-beat timing jitter (≈1 ms) would add only ~0.1 ms to RMSSD. The delay is a proxy for the pre-ejection period (PEP). PEP likely drives this coupling, but this recording cannot confirm it, nor can it accurately measure it. pNN50 is coarse over 60 s (one interval is ~1.5 percentage points).
Over 3954 heartbeats, the ECG detected every beat (reviewed manually) and the SCG missed 3, with no false detections in either. Missed beats are removed by the interval check before HRV is computed, and their windows are kept in the table.
Beat-to-beat, AO-AO intervals agree with their R-R intervals with a bias of 0.0 ms and 95% limits of agreement of [-2.8, +2.8] ms (3947 intervals). The bias is near zero by construction, because over any stretch the two interval series differ only by the change in R-to-AO delay. For context, [2] reports [-5.0, +5.4] ms across 49 healthy subjects. A single-subject recording is not directly comparable.
Limitations: one subject, one session, at rest. SCG HRV is currently only reported while the ECG is producing windows, so the SCG pipeline has not been evaluated standalone. SDNN over 60 s is lower than the 5-minute SDNN that published norms use, so it should not be compared with them [3].

Run python software/analyze.py <session_dir> to compute the metrics and plots for a session saved by the software/monitor.py script.
Compiled with STM32CubeIDE.
git clone https://github.com/konstantinosfragkoulis/HealthMonitor.gitFile > STM32 Project Create/Import > Import STM32 Project > STM32CubeMX/STM32CubeIDE Project./fw directory.The STM32 streams binary packets over USB CDC. Use the included Python script to plot sensor data in real time.
cd software
pip install pyserial numpy matplotlib # You might want to use a virtual environment for this
# Auto detect port
python monitor.py
# Manually select port
python monitor.py COM3 # Windows
python monitor.py /dev/ttyACM0 # Linux[1] M. N. Imtiaz and N. Khan, "Pan-Tompkins++: A Robust Approach to Detect R-peaks in ECG Signals," in Proc. IEEE Int. Conf. Bioinformatics and Biomedicine (BIBM), 2022, doi: 10.1109/BIBM55620.2022.9995552. [Online]. Available: https://arxiv.org/abs/2211.03171
[2] S. Parlato, J. Centracchio, D. Esposito, P. Bifulco, and E. Andreozzi, "Fully automated template matching method for ECG-free heartbeat detection in cardiomechanical signals of healthy and pathological subjects," Physical and Engineering Sciences in Medicine, vol. 48, pp. 649-664, 2025, doi: 10.1007/s13246-025-01531-3.
[3] Task Force of the European Society of Cardiology and the North American Society of Pacing and Electrophysiology, "Heart rate variability: standards of measurement, physiological interpretation and clinical use," Circulation, vol. 93, pp. 1043-1065, 1996.
[4] F. Shaffer and J. P. Ginsberg, "An Overview of Heart Rate Variability Metrics and Norms," Frontiers in Public Health, vol. 5, Art. no. 258, 2017.
[5] J. M. Bland and D. G. Altman, "Statistical methods for assessing agreement between two methods of clinical measurement," The Lancet, vol. 327, no. 8476, pp. 307-310, 1986.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 14 | 100n | Capacitor_SMD:C_0603_1608Metric | C1, C4, C5, C6, C8, C12, C15, C22, C23, C29, C30, C31, C32, C33 |
| 6 | 1u | Capacitor_SMD:C_0603_1608Metric | C2, C3, C13, C14, C20, C21 |
| 6 | 33 | Resistor_SMD:R_0603_1608Metric | R16, R17, R18, R23, R24, R25 |
| 5 | 10M | Resistor_SMD:R_0603_1608Metric | R3, R4, R5, R9, R10 |
| 5 | 1M | Resistor_SMD:R_0603_1608Metric | R11, R12, R15, R20, R21 |
| 5 | 1k | Resistor_SMD:R_0603_1608Metric | R28, R29, R30, R31, R32 |
| 5 | LED | LED_SMD:LED_0603_1608Metric | D3, D4, D5, D6, D7 |
| 4 | 10k | Resistor_SMD:R_0603_1608Metric | R1, R2, R19, R22 |
| 4 | 10u | Capacitor_SMD:C_0805_2012Metric | C7, C9, C34, C35 |
| 4 | MountingHole | MountingHole:MountingHole_2.2mm_M2 | H1, H2, H3, H4 |
| 2 | 12p | Capacitor_SMD:C_0402_1005Metric | C16, C17 |
| 2 | 180k | Resistor_SMD:R_0603_1608Metric | R6, R7 |
| 2 | 18p | Capacitor_SMD:C_0402_1005Metric | C18, C19 |
| 2 | 2.2u | Capacitor_SMD:C_0603_1608Metric | C10, C11 |
| 2 | 4.7u | Capacitor_SMD:C_0805_2012Metric | C24, C28 |
| 2 | 5.1k | Resistor_SMD:R_0603_1608Metric | R26, R27 |
| 2 | D | Diode_SMD:D_SOD-123 | D1, D2 |
| 2 | TPS7A2033PDBVR | TPS7A2028PDBVR:SOT95P280X145-5N | IC1, IC2 |
| 1 | 100k | Resistor_SMD:R_0603_1608Metric | R13 |
| 1 | 1n | Capacitor_SMD:C_0603_1608Metric | C25 |
| 1 | 2.2u | Inductor_SMD:L_1008_2520Metric | L1 |
| 1 | 2.7n | Capacitor_SMD:C_0603_1608Metric | C27 |
| 1 | 332k | Resistor_SMD:R_0603_1608Metric | R14 |
| 1 | 360k | Resistor_SMD:R_0603_1608Metric | R8 |
| 1 | 6.8n | Capacitor_SMD:C_0402_1005Metric | C26 |
| 1 | AD8232ACPZ-R7 | AD8232ACPZ-R7:QFN50P400X400X80-21N-D | IC3 |
| 1 | Conn_01x02_Pin | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J4 |
| 1 | Conn_01x05_Pin | Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_Horizontal | J1 |
| 1 | Crystal | Crystal:Crystal_SMD_3215-2Pin_3.2x1.5mm | Y2 |
| 1 | Crystal_GND24 | Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mm | Y1 |
| 1 | SJ2-35813B-SMT-TR | SJ2-35813B-SMT-TR:SJ235813BSMTTR | J2 |
| 1 | ST1VAFE6AXTR | ST1VAFE6AXTR:LGA-14L_STM | U2 |
| 1 | STM32U595RJTxQ | Package_QFP:LQFP-64_10x10mm_P0.5mm | U1 |
| 1 | USB_C_Receptacle_USB2.0_16P | Connector_USB:USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_Horizontal | J3 |
| 1 | W25Q128JVS | Package_SO:SOIC-8_5.3x5.3mm_P1.27mm | U3 |

konstantinosfragkoulis/HealthMonitor
Chest-worn STM32U5 sensor that records ECG and SCG, and computes HRV on-device. Bare metal C.

overallcoma/project-grayskull
ESP32-based Power Monitoring Solution


Swapnil007-Curious/NeuroVox-v2.0
NeuroVox v2.0 is a conformal 220×50mm forearm wearable PCB. Powered by an ESP32-S3, it captures high-res 4-channel EMG via AD8232, INA333, and ADS1299 ICs using leadless, integrated dry Ag/AgCl edge electrodes.

nwasr/Stamp-Board-of-AD8232
Compact AD8232 stamp board designed in KiCad v9 with schematic, PCB layout, Gerbers, BOM, and 3D view.

sensors-inl/Nervous-ECG
ECAD design files, firmware source code and standalone application for the ECG sensor of the Nervous project.

nwasr/SparkFun-AD8232-Replica
KiCad v9 PCB design replicating the SparkFun AD8232 ECG module

abbyfinka/FYP-Knitted-EMG
This repository contains the software and hardware design files developed for my Final Year Project at Imperial College London

AlexMirt2/EKG-signal-acquisition-and-processing-system
The diploma project focuses on designing and implementing an ECG signal acquisition and processing system. It includes smart devices capable of transmitting data to the cloud.
It measures 37.5 × 29.5 mm and has 4 copper layers, 1.6 mm thick.
91 parts, built around the AD8232ACPZ-R7, W25Q128JVSIQ, TPS7A2033PDBVR-TP and SJ2-35813B-SMT-TR. 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.
From the konstantinosfragkoulis/HealthMonitor repository on GitHub, at the commit this page was made from: the board is hardware/HM-Rev2/HM-Collector-Rev2.kicad_pcb and its schematic hardware/HM-Rev1/HM-Rev1.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
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).