Riphah International University: I - 14 Campus, Islamabad
Riphah International University: I - 14 Campus, Islamabad
1. Problem Statement:
You are tasked with designing a low-cost physiological measurement system focusing on
ECG signals using the AD8232 ECG module and STM32 Nucleo F103RB microcontroller.
The system should display real-time ECG signals on an LCD, store data for future reference,
and possibly transmit data wirelessly for remote monitoring.
Data Logging: Write software routines to store ECG data on the SD card, including
timestamping to organize data for later retrieval and analysis.
Wireless Communication: Use Bluetooth communication protocols to enable
seamless data transmission. The system should be capable of sending ECG data to a
remote device, where it can be visualized in real-time through a dedicated mobile or
desktop application.
Basic Idea of the Research:
The primary goal is to design a low-cost, portable ECG monitoring system capable of
acquiring, processing, displaying, storing, and transmitting ECG signals. This system is
particularly aimed at improving access to continuous cardiac monitoring, especially in
remote and resource-limited settings. The system's portability and affordability make it
suitable for use in telemedicine, home healthcare, and even field diagnostics.
Sensor:
The AD8232 ECG module is the heart of the system. This cost-effective, single-lead sensor
amplifies and filters the ECG signal to make it suitable for portable, battery-powered
applications. Its small form factor and low power consumption make it ideal for wearable
ECG devices.
Flow Diagram:
Riphah International University
I -14 Campus, Islamabad
Complex Engineering Problem
Program: Biomedical Engineering Semester:5th
Course: Microprocessor and Interfacing Section: A
Date: Marks: 10
Circuit Diagram:
Results
Software Analysis
Code:
#include "stm32f1xx_hal.h"
#include "lcd.h" // Include LCD library, if available
ADC_HandleTypeDef hadc1;
UART_HandleTypeDef huart1;
void SystemClock_Config(void);
void MX_GPIO_Init(void);
void MX_ADC1_Init(void);
void MX_USART1_UART_Init(void);
int main(void) {
HAL_Init();
SystemClock_Config();
MX_GPIO_Init();
MX_ADC1_Init();
MX_USART1_UART_Init();
LCD_Init(); // Initialize LCD
Riphah International University
I -14 Campus, Islamabad
Complex Engineering Problem
Program: Biomedical Engineering Semester:5th
Course: Microprocessor and Interfacing Section: A
Date: Marks: 10
while (1) {
uint32_t adcValue = 0;
void SystemClock_Config(void) {
// Configure the system clock according to your board's specifications.
}
Conclusion:
The project achieved its objective of creating a low-cost, portable ECG measurement system using the
STM32 Nucleo F103RB and AD8232 module. The system reliably captured, processed, and displayed
ECG data, with the additional capability for wireless transmission. This design offers a scalable and
Riphah International University
I -14 Campus, Islamabad
Complex Engineering Problem
Program: Biomedical Engineering Semester:5th
Course: Microprocessor and Interfacing Section: A
Date: Marks: 10
accessible solution for ECG monitoring in clinical and non-clinical settings, especially useful for
remote monitoring in telemedicine. Future improvements could include optimizing power
consumption further for extended wearable use and refining data accuracy with advanced filtering
techniques.
REFERENCES :
1. Sani, S. (2021). Design and Implementation of A Low-Cost ECG
Monitoring System Using ARM Cortex-M4 Family Microcontroller. 2021
IEEE International Conference on Consumer Electronics (ICCE), 1-2.
https://doi.org/10.1109/ICCE50685.2021.9427729.
2. Yuan, Y., Cao, D., Li, C., Liu, K., Zhang, C., Chi, X., & Zhang, D. (2019).
Research and Design of a Portable Intelligent ECG Monitoring System.
2019 Chinese Automation Congress (CAC), 5267-5271.
https://doi.org/10.1109/CAC48633.2019.8997453. Su, Y. (2022). Design
of ECG acquisition and display system based on ADS1292R and STM32
microcontroller. 2022 15th International Congress on Image and Signal
Processing, BioMedical Engineering and Informatics (CISP-BMEI), 1-5.
https://doi.org/10.1109/CISP-BMEI56279.2022.9979973.
3. SU, Y. (2022). D ESIGN OF ECG ACQUISITION AND DISPLAY SYSTEM BASED ON
ADS1292R AND STM32 MICROCONTROLLER . 2022 15TH INTERNATIONAL
CONGRESS ON IMAGE AND SIGNAL PROCESSING, BIOMEDICAL ENGINEERING AND
INFORMATICS (CISP-BMEI) , 1-5. HTTPS://DOI.ORG/10.1109/CISP-
BMEI56279.2022.9979973.
4. Bravo-Zanoguera, M., Cuevas-González, D., García-Vázquez, J., Avitia,
R., & Reyna, M. (2019). Portable ECG System Design Using the AD8232
Microchip and Open-Source Platform. Proceedings.
https://doi.org/10.3390/ecsa-6-06584.