Page 1 of 1

Introduction of a heart rate monitor?

Posted: Tue Oct 11, 2011 12:51 pm
by Matt
Hi all

It's me asking your help again. This time I'm working with a heart rate monitor (hand grip version), but unfortunately I haven't got it work yet. Can someone give me some hints or flowchart to get that monitor working?

Any help is welcome, because I have no idea how to proceed with this one.

I'm using Flowcode V4 AVR version.

Matt

Re: Introduction of a heart rate monitor?

Posted: Wed Oct 12, 2011 5:46 pm
by Matt
Can someone please help me with this thing? I think the introduction of the heart rate monitor is piece of cake for most of you.

I hope someone would go into this and perhaps give me some flowchart.

Thanks

Matt

Re: Introduction of a heart rate monitor?

Posted: Thu Oct 13, 2011 9:00 am
by Steve
I've not used the hand-grip one, but I've played a little with the one that fits around the chest and I assume these are similar. It is an analogue sensor that gives a voltage pulse whenever there is a heartbeat.

You can use a comparator to monitor this (this will need some C code) or use an ADC component. You'll need to monitor this input constantly and count the time between pulses. You will then need to create some kind of moving average (perhaps average out the last 5 beats) to smooth the reading out and convert this average time for a beat to a bpm reading.

Determining the time between pulses can be done in a number of ways. One way is to use a timer. You could set a timer interrupt to increment a "count" variable at a certain known rate (the interrupt macro would only increment this value, nothing else). Then in your main program have a constant loop which monitors the input. When the input goes high, the count can be read (this will represent the time between this pulse and the last) and then the count should be reset. You will then perform a quick calculation to determine the current moving average of these counts, and then convert it to a BPM value for display.

I hope this helps.

Re: Introduction of a heart rate monitor?

Posted: Thu Oct 13, 2011 10:29 am
by Matt
Thanks for your reply Steve.

That sounds quite difficult thing to do for me, but I'll try anyway.

If someone have some flowchart that would get the heart rate monitor functional, then please, share it with me :)

Matt

Re: Introduction of a heart rate monitor?

Posted: Mon Oct 17, 2011 9:29 pm
by Harry Tuttle
If you go for the chest monitor have you seen the reciever that Sparkfun offer. It is compatible with Polar transmitters.

http://www.sparkfun.com/products/8661

regards,
ben