Heart pulse sensor

Hi,

Did any of you use a Pulse Sensor with an Imp? If so, are there any tips on coding this for a novice (or samples that I can look at/ use)?

I am attempting to collect the heartbeat through one Imp and to visualize it with another Imp using http://pulsesensor.myshopify.com/.

Many thanks

Yulia

You might want to take a look at this forum thread, @yulia: http://forums.electricimp.com/discussion/2747/heartbeat-blanket

We have a basic class for that sensor :slight_smile:

https://github.com/electricimp/reference/tree/master/hardware/pulseSensor

It also occurred to me, when I was using the Imp-o-Scope code that it might also be useful for a pulse sensor…with graphing capability.

Thank you very much for these!
I will test it as soon as the IDE is working again

Yulia

Hello…

Any of you might have an idea why the receiving device might be skipping a beat (or more?). The pulse sensor local light is indicating an accurate heartrate, but the light in the paired Imp is all over the place.

And did anyone come across any Android/ Iphone-based heart rate monitors that can send https to an Imp?

Thank you

If you’re sending each beat from one agent to another, then you’re not going to get a very regular pulse; each transaction will be an HTTPS request which takes a while to set up, and will be non-deterministic

You could just measure the average heartrate and send this number across to the receiver, which synthesizes a regular heartrate at the correct bpm (and slews smoothly for changes).

Got it. Thank you, Hugo.
I suppose this would apply for Xively and other data too?..

Xively logs data points (and you can pass a timestamp) so that doesn’t really apply; the data’s value is not determined by the exact time it was delivered, but rather the value itself and passed timestamp.

@yulia @makedeck - I just updated the pulse sensor code on GitHub.

I ported the Arduino code, and it is a MUCH more complete implementation now… give it a try :slight_smile:

https://github.com/electricimp/reference/tree/master/hardware/pulseSensor

Nice, If I can find a good spot to place the sensor. I’d actually try to wear it.

The trickiest part about that sensor seems to be finding a reliable place for it :frowning:

Movement seems to cause inaccurate readings… having it on the finger is a bit clunky, ditto the ear.

Thanks, Bearded Inventor! That was super useful…

@jwehr: The sensor is basically an oximeter. It works best through the fingertips. But you can also hook it up to the earlobe. Not the most beautiful, but…

There are some Arduino libraries for use with Polar heart monitor, so I assume it could be used with the Imp as well. It would be a little less conspicuous.