GroveEHR Class
- ID: groveehr
- Name: Ear-clip Heart Rate Sensor
- Category: medical
- Manufacturer: seeed
- Connection: gpio
UPM module for the Grove ear-clip heart rate sensor. It is used to measure your heart rate.
Item Index
Methods
GroveEHR
(
Number
-
pin
GroveEHR constructor
Parameters:
-
pin
NumberDigital pin to use
Returns:
Number:
getMillis
()
Number
Returns the time of milliseconds elapsed since initClock() was last called.
Returns:
Number:
Elapsed milliseconds
initClock
()
Resets the clock
clearBeatCounter
()
Resets the beat counter to 0. The beat counter should be stopped via stopBeatCounter() prior to calling this function.
startBeatCounter
()
Starts the beat counter
stopBeatCounter
()
Stops the beat counter
beatCounter
()
Number
Gets the beat Counter
Returns:
Number:
Beat counter
heartRate
()
Number
Computes the heart rate
Returns:
Number:
Computed heart rate