Realtime Heart Rate and Accelerometer

Posted on
  • Hello!

    I'm working on an interactive installation where I want some audio to react to visitors heart rate and activity. I am planning to stream realtime (or every ≈0.5 sec?) the heart rate and accelerometer data to a computer or Rasperry Pi or similar device via Bluetooth. That should be done for several hours a day.

    Is something that can be done in a Bangle 2? From my overview of the device, there should be no problem, but there may be some stuff that I missed. Those more experienced in the platform can advise me on any foreseeable issues?

    Thanks!

  • That should be relatively easy. Battery could be a problem, but you can use https://espruino.github.io/BangleApps/?id=hrmaccevents to test this. It can stream accelerometer and pulse data as fast as possible. If you can do that for a day there should not be major problems for your usecase.

  • Yes, that should be fine... There's already an example using a Web Bluetooth connection at http://www.espruino.com/Bangle.js+Data+Streaming#bonus-2-heart-rate-monitoring-graph

    But for reliability, using Advertising would be easier as you say. There's already some code to handle button presses to a Pi at http://www.espruino.com/BLE+Advertising so tweaking that to do HRM should be fine.

    Heart rate monitor uses about 2.5mA so I'd hope you should be able to do it non-stop for maybe 3 days or so

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Realtime Heart Rate and Accelerometer

Posted by Avatar for Marc_s @Marc_s

Actions