Forums > Gear

Heart Rate Monitor Interface


March 11, 2011 | 3:12 pm

hello rescue team,
a couple of days ago I have purchased the polar heart Rate Monitor interface from sparkfun.
I was spoiled untill now to be able to plug things in and find preprogrammed patches to make thinks work. Now I sat down and failed to make this thing work over the serial object.

I had this information:
(from another client, who apparently made it work with max/msp)
1 – set the raw mode: S+0+CR (ascii commands)
2 – get the heart rate data: G+1+CR (id.) as fast as possible (every 60ms is fine for me)
3 – then you get 3 values from the hrmi: status byte, count and heart rate.
____________________________________________________
and
(this general information from the product page)

Get Heart Rate Data
ASCII Command Value: G
Hex Command Value: 0×47
Command Argument: Number of heart rate history buffer entries 0-32
Response: 2 – 34 8-bit values
Description: Get the specified number of heart rate values and status information from the heart rate history buffer.

Set Mode
ASCII Command Value: S
Hex Command Value: 0×53
Command Argument: 3 bit mode
Response: -
Description: Set the heart rate algorithm and optionally set the power-on defaults for heart rate algorithm and Utility port direction and value

____________________________________________________

this is my patch, which doesn´t work!! Why? why?
can anyone help me to get this godmanfrzxklicks thing working? please?
thanx a million,
dan

– Pasted Max Patch, click to expand. –
May 3, 2011 | 2:35 pm

Don’t know if you already found your solution,
but there seems to be a typo in your serial object..
it says 600 instead of 9600..
I got your patch working by correcting this and adding the dropbars from the serial object help (so baud 9600, bitrate 8 and bit 1)..

Hope this helps..

July 13, 2011 | 8:34 am

thanks a lot.

December 10, 2014 | 5:32 am

Hey Kugels and zograsalsgroen,

fist of all thanks for your posts and for providing your patch! My name is Samuel and I am a undergraduate music major from Germany. I am currently working on a project where I need a stable real time stream of the heart data from the hrmi to max.

I’m not really good with computers but I’m trying really hard! Maybe you cold help me a bit with this? I corrected the typo but don’t understand the rest (not to speak about the patch in general) Could one of you explain to me briefly how the patch works?

- What are these numbers "71 49 13" and "83 48 13"?

@zograsalsgroen: What did you mean with "I got your patch working by correcting this and adding the dropbars from the serial object help (so baud 9600, bitrate 8 and bit 1).. "

- I wanna use a count object to calculate the average heart rate and things like that.

- Is there a way to play a certain sound file in max every time a heart beat is detected?

I would be so happy and thankful if you could take a minute to help me :)

Regards, Samuel

Viewing 4 posts - 1 through 4 (of 4 total)