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.

Require code help to calculate Pulse Transit Time

Status
Not open for further replies.

CaptainSpock

Junior Member level 3
Joined
Sep 27, 2011
Messages
27
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,475
Hello everyone,

I am currently working on my final year project to detect Ankle Brachial Index (ABI) using Pulse Transit Time (PTT). However, to calculate PTT i have to create a software to compare both Photoplethysmography(PPG) and Electrocardiography(ECG) signal peaks. I have already created the hardware for both PPG and ECG and it is working, now i have to use Msp430g2232 to create a software using Code Composer Studio to detect the signals peaks produced as mention above. Does anyone know of any codes that is able to aid me? Appreciate all help :)

Thank you,
Captain Spock
 

Compare each incoming reading with the previous value. If the new value is less, then the previous reading was a peak.

This method is fooled by one downturn (or noise). It's more reliable if you average a few readings in a row, so as to ignore small downturns.

Using 5 as an example. Take 5 readings in a row. Tally and divide by 5.

Store the result as variable 'X'.

Take another 5 readings. Average them.

Compare the result with 'X'. If the new figure is lower, then branch to your routine that recognizes a peak.

Store the latest figure as the new value for 'X'.

You'll need to experiment to discover how many readings you need to average. The aim is to find the best amount for cancelling the effects of noise.
 

Hi

Thanks for replying
actually I'm familiar with the theory behind the peak detection. However I'm not sure of the coding protocol for this application as this is the first time programming a microcontroller.

Captianspock
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top