05-17-2021, 09:13 AM
(This post was last modified: 05-17-2021, 09:13 AM by danielt.
Edit Reason: Fix quoting
)
(05-17-2021, 01:42 AM)Mpoint Wrote: Thank you for the link I do feel the current PPG sensor that ships with PineTime may not be as accurate but I am working on HRV using pyhrv libraries and it does work you can get convert ppg to hrv with few lines of code. But the App crashes https://youtu.be/8HOqxh4lhX0 I was able to fix the crash but something with micropython Environment seems to through the code off
pyhrv lists a lot of dependencies: biosppy | numpy | scipy | matplotlib | nolds | spectrum .
To run this on the PineTime then you need to integrate alternative versions of these libraries or modify pyhrv to reduce it's dependencies. This link might give you a good starting point: https://hackaday.com/2019/10/29/numpy-co...ro-python/ . However it's still likely you'll have to make significant changes to the pyhrv source code.
I'd recommend getting pyhrv working on the Unix port of micropython before attempting to run it on the watch.