I have a research of ECG Signal Processing. I would like to ask about the Python or C code using Pan Tompkins method implemented on Raspberry Pi. I have used the AD8232 board to acquire the ecg signal. Thank you so much
Hello to both of you Mr. Khôi Hoàng Võ and Mr. U. Dreher.
Now with respect to the question, AD8232 provides analog output signal which can't be processed by GPIO of raspberry pi. You need an ADC for that (Refer AD8232 datasheet Page27). MCP3008/MCP3004 will work good. Communication with the MCP3004/3008 devices is accomplished using a standard SPI-compatible serial interface. Luckily Raspberry pi provides that feature. You could use an Arduino or beaglebone black (pi like) where no such ADCs would be required. Now about the code in python or C for the raspberry, here is an attachment please go through the arduino (C) program and do some modifications according to your need.
And you know the rest better than me sir.
[N.B: Unlike the Arduino, using the GPIO library does not provide real-time performance. The Python libraries have the overhead of Python, which periodically needs to do memory management tasks behind the scenes, and even WiringPi is subject to the Linux kernel's scheduling decisions. In practice, this probably won't actually matter to you unless some one is building a device that depends vitally on real-time performance. But in your case this may be an issue so at first you might need to configure your pi according to your application. For a little detail please follow the link attached.]