Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 1 month ago.
How to measure heart rate using STM32L053R8 Nucleo ?
Hello mbed developers, I'm a student from Vietnam. Right now I'm having a class project of exploring a capability of the aforementioned development kit. And I decided to prototype a system that can measure one's heart rate via a pulse sensor like this one: http://pulsesensor.com/products/pulse-sensor-amped and display the heart rate on the monitor. But I'm having problems devising a working program for it. Could someone give me some advices or tips, I would be grateful. Thank you.
1 Answer
9 years, 1 month ago.
Hi, check out the examples for other plattforms
have you checked out the website of manufacturer of the Sensor. There is a tutorial writen for the arduino platform which should be adapteble to the nucleo board: http://pulsesensor.com/pages/pulse-sensor-amped-arduino-v1dot1 What they do is they measure the analoge output of the sensor every millisecond and check wether it has crossed a freshhold. If the measurement is over the freshhold a pulse event has been recognized. After that they dont measure for the time they expect the signal to be high anyway. After a intervall of a minute you add up youre pulse events and divide them by 60 so you get you´re heartrate which you than can log on the device or send over serial. good luck