Projects / Cardiography device

Biomedical · 2024

Open Cardiography Signal Measuring Device

A Pico W–based device that records arm-cuff pressure, ECG, PPG and stethoscope signals, with a Python GUI and analysis code for estimating blood pressure.

MCU
Raspberry Pi Pico W
Signals
Cuff, ECG, PPG, PCG
PCB
Custom 4-layer
BP method
Envelope (Sapinsky)
ECG front end
AD8232, 3 electrodes
Pressure amp
INA826
PC link
Isolated USB serial
The assembled 4-layer PCB with the Raspberry Pi Pico W, during testing

The device records four signals at once: arm-cuff air pressure, a three-electrode ECG, PPG from a finger clamp, and phonocardiography (PCG) from a modified stethoscope. It was a master's thesis project at the University of Belgrade School of Electrical Engineering, mentored by Prof. Nadica Miljković, and was featured in MagPi issue 150. There is also a 2024 element14 member blog post about it.

The finished device in its 3D-printed PLA case
The finished device in its 3D-printed PLA case

Hardware

A Raspberry Pi Pico W on a custom 4-layer PCB runs the pump and valve, samples the sensors and streams data to a PC over galvanically isolated USB. A 3.3 V buck-boost keeps it running as the 18650 cell drops below 3.3 V, and a 6 V boost drives the pump and valve. The cuff pressure sensor feeds an INA826 instrumentation amplifier, the ECG uses an AD8232 with three electrodes, and the stethoscope input has three DIP-switch-selectable conditioning circuits.

PPG comes from a MikroElektronika Oxy 5 Click (I²C) in a printed clamp that keeps finger pressure constant and blocks ambient light; the stethoscope has a piezo microphone sealed into the tube in place of the earpieces. A rig with screw-driven syringes and three gauges sets the pressure channel to 3.3 V at 40 kPa (300 mmHg); linearity was checked at 40 points. Firmware is C++; the recording GUI and the analysis code are Python.

How the estimates are made

  • Cuff: the deflation segment is detrended and high-pass filtered, and an envelope is fitted to the oscillations. Its maximum gives MAP; the points at 40 % and 80 % of that amplitude give SYS and DIA.
  • Stethoscope: SYS is read where the pulsations become regular and follow the heart rhythm.
  • PPG: DIA is read where pulsations reappear at the finger as the cuff deflates.
  • ECG: R peaks give heart rate, as a cross-check.
Filtered cuff oscillations with peaks, envelope and the SYS, DIA and MAP points (labels in Serbian)
Filtered cuff oscillations with peaks, envelope and the SYS, DIA and MAP points (labels in Serbian)

Results

One data set, compared with a Wellue BP2, which also reports MAP:

MethodMAP (mmHg)SYS (mmHg)DIA (mmHg)HR (bpm)
Wellue BP2 (reference)931307281
Arm-cuff pressure911327978
Stethoscope–143–80
PPG––7580
ECG–––80

The PPG diastolic estimate was closer to the reference than the cuff estimate; the stethoscope systolic estimate was furthest off and needs work on placement and contact pressure. This is one data set, and much more testing is needed.

Known issues

Errata for the V1 PCB:

  • Q6 in the power schematic is flipped, so the battery protection circuit is not validated. Workaround: a wire from BAT− to GND.
  • The isolated power supply did not work as intended and needs further testing.
  • The pressure sensor pinout is wrong.
  • USB-C charging has not been validated.