Overview
This is an example of acquiring accurate ECG(electrocardiogram) & Heartrate from Arduino UNO.Configuration
- Arduino : Arduino UNO(Source code)
- ECG Sensor : PSL-iECG2 with isolation
- PC software : PSL-Serial(freeware by PhysioLab)
Human ECG => PSL-iECG2(ECG, Beat) => Arduino(CSV Data) => PC PSL-Serial Software
Goal
- Accurate A / D Conversion Sampling : Using TimerOne Interrupt
- Sampling rate : 500 SPS
- Output : ECG wave, Beat signal, Heartrate
- Safety : Isolation
[PSL-iECG2]
■ High quility ECG Sensor
■ Analog ECG 2-channel amplifier module(Ch.1 ECG, Ch.2 Beat)
■ DC 5V power input
■ Isolation power and signal
■ Current consumption 50mA or less
■ Amplification 750V/V
■ Selectable 50Hz or 60Hz by the notch filter switch
■ Optimized HPF and LPF design for ECG
■ Output signal 0~3.3V(center 1.65V)
■ Size 56mm X 35mm
■ Lead cable with shield and stereo jack
Configuration of Arduino and PSL-iECG2
Arduino Source Code
using TimerOne interrupt
|
Arduino Source and PSL-Serial SW
|
#include <TimerOne.h>
int analogPin0=0;
int analogPin1=1;
void setup() {
Serial.begin(1000000);
Timer1.initialize(2000); // micro second
Timer1.attachInterrupt(AnalogAD);
Timer1.start();
}
void AnalogAD()
{
int reading0=analogRead(analogPin0);
int reading1=analogRead(analogPin1);
float Voltage0=(float)reading0/1023*5;
float Voltage1=(float)reading1/1023*5;
if (Voltage1>1.65) digitalWrite(13,HIGH);
else digitalWrite(13,LOW);
String str=String(Voltage0,3) +","+ String(Voltage1,3);
Serial.println(str);
}
void loop() {
}
|
[Download : PSL-Serial_Arduino_V1.0.zip ]
■ Contact our email or PhysioLab website link.
(PhysioLab website>Support>Driver&S/W board)
[Arduino code]
■ A/D conversion is performed with 2Ch. analog input and 500SPS sampling rate in Arduino.
■ This is an example of A/D converted 2Ch. data in a CSV format and transmitted the data to a PC.
■ Programmed to determine accurated A/D conversion cycle using TimerOne interrupt. (The TimerOne library is included in the download file above.)
■ Turn on the LED if the Beat data is greater than 1.65V.
[PSL-Serial SW]
■ PSL-Serial SW displays CSV data, graph, and heart rate transmitted from Aduno and PSL-iECG2.
■ PSL-Serial titles can be modified your own project name.
■ PSL-Serial don't need installation, just download them.
PSL-Serial_Win10 (Win7) .exe, PSLSerial.dll
■ PSL-Serial SW is a Freeware.
■ We would be very grateful if you could introduce us to your project.
|
The user can modify the title and information.
Q&A : allsix@nate.com
댓글 없음:
댓글 쓰기