WorldFamousElectronics / PulseSensor_Amped_Arduino

PulseSensor Arduino code for BPM and Processing-Visualizer
MIT License
238 stars 206 forks source link

Dual Sensor Processing #23

Open ghost opened 8 years ago

ghost commented 8 years ago

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?

biomurph commented 8 years ago

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

ghost commented 8 years ago

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

Patrick

On Wed, Jun 15, 2016 at 1:46 PM, Joel Murphy notifications@github.com 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 commented 8 years ago

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 < patrick.cesarano@gmail.com> wrote:

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

Patrick

On Wed, Jun 15, 2016 at 1:46 PM, Joel Murphy notifications@github.com 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 .

xueting123456 commented 7 years ago

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

joelSensor commented 6 years ago

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

xueting123456 commented 6 years ago

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

joelSensor commented 6 years ago

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.

xueting123456 commented 6 years ago

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 commented 6 years ago

I can pay for you

joelSensor commented 6 years ago

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

xueting123456 commented 6 years ago

Jole,i send a emil to you,thanks you

xueting123456 commented 6 years ago

hi,joel,do you recive my email?

xueting123456 commented 6 years ago

有人可以帮忙吗?

xueting123456 commented 6 years ago

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.