This repository contains code and instructions for generating an Electrocardiogram (ECG) signal using Proteus simulation software. The generation process involves importing ECG signal data into the Arduino IDE, programming an Arduino board to generate the ECG signal, and visualizing it using Proteus's virtual oscilloscope.
The generation process consists of the following steps:
-
Import ECG Signal Data: The vector data of an ECG signal is imported into the Arduino IDE. This vector contains the necessary data points to generate an electrocardiographic signal.
-
Arduino Programming: Specific code is developed to program the Arduino board to generate the ECG signal based on the imported data.
-
Compilation and Export: Once the code is written, it is compiled and exported as a .hex file, which is ready to be uploaded to the Arduino board within Proteus.
-
Simulation Setup: The Arduino board simulated in Proteus is connected to a digital-to-analog converter (DAC), which converts the digital signal into an analog one. The signal then passes through resistors to adjust its amplitude as needed for the simulation.
-
Visualization: The generated ECG signal can be visualized using an oscilloscope within Proteus, allowing for analysis of its characteristics and behavior.
ECG_Signal_Data
: Sample ECG signal dataArduino_Code
: Arduino code and .hex fileProteus_Simulation
: Proteus simulation fileREADME.md
: Overview and usage instructions
- Clone or download the repository.
- Open the Proteus simulation file.
- Upload the
.hex file
to the simulated Arduino board. - Run the simulation to visualize the ECG signal.
Adjust resistance values for fine-tuning signal amplitude. In this project, the resistance values have been configured to yield an amplitude of no more than 2mV, mirroring that of a real ECG signal.
Contributions to improve the generation process or add additional features are welcome. If you would like to contribute, please fork the repository, make your changes, and submit a pull request.
This project was inspired by the work of walidamriou.
This project is licensed under the MIT License, allowing for open use and modification.
By generating ECG signals in a virtual environment, this repository aims to facilitate the development and validation of electronic systems for the analysis and processing of biomedical signals. If you have any questions or suggestions, feel free to open an issue or reach out to the repository maintainers.