UPM

The UPM API is a high level sensor library for IoT devices using MRAA. See examples here. Back to index page.
SparkFun sensor images provided under CC BY-NC-SA-3.0.

GroveEHR Class

Module: groveehr
  • 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.
groveehr.jpg

Methods

GroveEHR

(
  • pin
)
Number

GroveEHR constructor

Parameters:

  • pin Number

    Digital 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