PulseSensor_Amped_Arduino icon indicating copy to clipboard operation
PulseSensor_Amped_Arduino copied to clipboard

Dual Sensor Processing

Open ghost opened this issue 9 years ago • 14 comments

So, I am trying to use 2 sensors at the same time for an application...one pulse sensor on your ear, one on your finger. I am curious if anyone knows how to produce 2 different serial outputs from the two sensor inputs...one for each...and display them in the visualizer.

I imagine the Mega (which is what I have) will permit this, but I'm new and thought that this "easy" task would be...it has not been.

Any thoughts?

ghost avatar Jun 15 '16 16:06 ghost

Hi PCesarano,

I have actually done this recently and just put my code up on github here https://github.com/biomurph/PulseSensorAmped_2_Sensors Please let me know if this works for you. It runs on an UNO

biomurph avatar Jun 15 '16 17:06 biomurph

Thanks Joel!! I'll give it a try. Much appreciated.

Patrick

On Wed, Jun 15, 2016 at 1:46 PM, Joel Murphy [email protected] wrote:

Hi PCesarano,

I have actually done this recently and just put my code up on github here https://github.com/biomurph/PulseSensorAmped_2_Sensors Please let me know if this works for you. It runs on an UNO

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/WorldFamousElectronics/PulseSensor_Amped_Arduino/issues/23#issuecomment-226264767, or mute the thread https://github.com/notifications/unsubscribe/ATCCooz7IjDXBaSJar2G7s8dTf6ZfDk1ks5qMDpugaJpZM4I2iUf .

ghost avatar Jun 15 '16 18:06 ghost

Joel,

I have a random question...I'm trying to find the area under the curve of a given pulse, and am also trying to detect the time difference between pulses. Your 2-sensor code works perfectly and I really appreciate your help on that. Do you have any insights on essentially integrating each pulse, and also detecting timing between pulses? I can write the code, but I'm hopeful it's already out there somewhere.

Thanks.

Patrick

On Wed, Jun 15, 2016 at 2:30 PM, Patrick Cesarano < [email protected]> wrote:

Thanks Joel!! I'll give it a try. Much appreciated.

Patrick

On Wed, Jun 15, 2016 at 1:46 PM, Joel Murphy [email protected] wrote:

Hi PCesarano,

I have actually done this recently and just put my code up on github here https://github.com/biomurph/PulseSensorAmped_2_Sensors Please let me know if this works for you. It runs on an UNO

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/WorldFamousElectronics/PulseSensor_Amped_Arduino/issues/23#issuecomment-226264767, or mute the thread https://github.com/notifications/unsubscribe/ATCCooz7IjDXBaSJar2G7s8dTf6ZfDk1ks5qMDpugaJpZM4I2iUf .

ghost avatar Jul 01 '16 20:07 ghost

Hi, hello. I saw your information on GitHub. Do you have the code to calculate the peak time difference through 2 pulse sensors?

xueting123456 avatar Oct 26 '17 02:10 xueting123456

I don't have the code handy, but it's not too hard to do. When a beat is found on one sensor, you can take the time and measure it to the beat of the second sensor and then vice versa. You'll want to use the shortest time as the difference

joelSensor avatar Oct 26 '17 15:10 joelSensor

can you help me write this code based on your code Pluse senors_2。this time PTT is used to estimute the bloode pressure.

xueting123456 avatar Oct 26 '17 16:10 xueting123456

Oh, I see. You are placing the sensors on the same person in different places to derive PTT. Got it. Well, you should know which sensor is closer to the heart, and so you can measure the time between that sensor's beat and the other sensor's beat. We sample the data at 2mS intervals, so that would be the resolution of your PTT. I can't help you with the code, however. That would be a lot of work and I could only do it for a fee.

joelSensor avatar Oct 26 '17 17:10 joelSensor

My idea is this, two sensors are placed in front and back positions of the fingers, respectively, to measure two pulse waves. When the first pulse wave peak is detected, the recording time is T1=micros (); then the peak value of the second waveform is detected; the recording time is T2 =micros (); PTT=T1-T2

xueting123456 avatar Oct 26 '17 17:10 xueting123456

I can pay for you

xueting123456 avatar Oct 26 '17 17:10 xueting123456

please contact me joel-at-pulsesensor-dot-com to discuss your project further and see if it's anything that I can help with.

joelSensor avatar Oct 26 '17 17:10 joelSensor

Jole,i send a emil to you,thanks you

xueting123456 avatar Oct 27 '17 02:10 xueting123456

hi,joel,do you recive my email?

xueting123456 avatar Oct 27 '17 15:10 xueting123456

有人可以帮忙吗?

xueting123456 avatar Oct 27 '17 17:10 xueting123456

joel,Can you help me? It seems simple, but I don't know how to make it happen. Looking at the examples of your 2 sensors, I think it can be implemented as long as it is modified, but I don't know how to modify it.

xueting123456 avatar Oct 28 '17 06:10 xueting123456