This repository provides implementations of ECG signal generation algorithms based on nonlinear dynamical models. The focus is on embedded deployment, enabling real-time ECG synthesis on microcontrollers.
Two numerical integration methods are implemented:
- Explicit RK4 (Runge–Kutta 4th Order)
- Implicit Tustin (Bilinear Transform).
Implementation hardware:
- MCU: WeActStudio STM32H523
- Peripherals: 12-bit true DAC
- PA4 as reference DAC
- PA5 as signal DAC
- Peripherals: 12-bit true DAC
- OLED SSD1306 0.96"
- Mini oscilloscope
Current implementations:
-
A Dynamical Model for Generating Synthetic Electrocardiogram Signals by McSharry et al.
-
Generation of ECG signals from a reaction-diffusion model spatially discretized by Quiroz-Juárez et al.
Implementations start with MATLAB / Octave, here is an example form the reaction-diffusion ECG model:
Explicit RK4
Implicit Tustin

