Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

peak detection code for heart signal

Status
Not open for further replies.

shikha_21

Newbie level 2
Newbie level 2
Joined
Dec 31, 2014
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
11
Can anyone help me by saying how to find peaks in a signal generated and thus find the heart beat .
 

I don't understand how it has anything to do with heart beat...but detecting peaks can be done by sampling your signal over a period of time and selecting the highest value in that time window
 

I am using a ppg sensor to generate an analog signal and by finding peaks i can calculate the heart rate.so how to detect peaks and find distance between those peaks.
 

1. You convert your analog signal to a digital signal with an ADC. Your ADC will have to be selected according to your desired sampling rate. For example - 10,000 samples per second.

2. You define a time window in your software during which you compare each sampled signal to the one that came before it. If it's bigger then you mark it as the biggest.

3. You do the same thing for the next time window.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top