We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi everybody! I need help to develop a real time plotter for my pulsimeter. The data flow comes from arduino and the processing script I use is the basic poor's man oscilloscope: https://gist.github.com/chrismeyersfsu/3270419. I need that the software recognize beats and more precisely every pulse vertex to make graphics manipulations on these points. I tried to make it comparing serial values and "y" values progression, thinking to select the curve inversion points using simple if statement(if(a<b&&b>c)), with no results. I tried also to show "y" values on the console and the IDE lock so I need to force exit. Please give me an idea for advance on my project.
Answers
Related post: https://forum.processing.org/two/discussion/23513/filtering-heart-rate-sensor
This is certainly possible. You capture all the points above a threshold and do a centroid estimation. However, unable to present an example without accessing some of your data.
Please show your modified version of your code.
Kf
Thank you for the replies. Using a threshold in a pulsimeter graphic is difficult because is not a linear graphic as an oscilloscope output but it change in intensity according blood oxigen saturation or low frequencies variations. Infact my goal is to highline these variations in graphic to have clearer reading of these phenomenons. So I though to make the program read data flow or cartesian values to match the higter point in the curve. Anyway I don't know if it is possible having data in byte format. Here is the code
I try to modifi the draw lines part in many ways like: