Skip to content

danislav/HeartRate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

HeartRate monitor HRM2101 USB python script

Why would you need this

I wanted to try a cheap heart rate monitor which is usb connected. After some digging I found one on the ali express site: "Computer Earlobe Finger Clip USB Heart Rate Monitor" or "IR Finger Clip Sensor USB Heart Rate Monitor" /Links at the end/

It is a simple ear/finger clip which is connected to a small box, which is connected to your computer via usb. It measures your blood flow difference with an infra-red sensor.

I bought one and was dissapointed from the HRM2101.exe software... not good at all.

Using pywinusb.hid was very easy to write a very simple script which show the heart rate and also outputs to a text file so we can use it in OBS when streaming.
I just edited the raw_hid example.
You need pywinusb
Home page: https://github.com/rene-aguirre/pywinusb
Pypi info page: https://pypi.python.org/pypi/pywinusb/

How to use it

Start the script py hrm.py
The script will try to scan for all the available HID devices and find the vID and pID.
Edit the script to fit your needs.
In my case it is: FITCARE RC700(vID=0x1130, pID=0x6837).
The output is on the screen and also in several text files. Check out the file names in the code. There is also a file with the history data if you want to use it to draw a graph: hrmHistory.csv
Use the text files when you stream with OBS your cool gaming sessions and show the world how your heart goes wild when you do the play of the game :) I have a sample video here: https://www.youtube.com/watch?v=CnmkX2RTCeI

Press any key while the app window is focused to quit.

Edit the script to fit your needs

Tell me if you find what are those numbers in columns 5 and 6 :)

To do

I have to figure out what exactly mean all the values in the output. Here is an example:
[0, 4, 209, 3, 241, 197, 0, 64, 243, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
The columns 1, 2 and 3 never changed in my tests.
Column 4 was 2, 3 and 4 when the clip was reading and I was not moving. When you move the clip, like to put headphones, the value goes to 0 or sometimes 1. So I decided to use this column to filter bad values.
Columns 5 and 6 change constantly and would be nice to find out what do they mean.
Then the next columns also never changed.

Search engine key words:

HRM2101, Zencro, USB\VID_1130&PID_6837&REV_0100, VID_1130&PID_6837, FITCARE RC700, usb heart rate, OBS

Referral

If you find this useful and you will buy something soon, please use the referral links so I can earn some points and buy some gadgets :)
Thank you!

About

HeartRate monitor HRM2101 USB python script

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages