pyupm_ehr module

class pyupm_ehr.EHR(pin)[source]

Bases: object

API for the Ear-clip Heart Rate Sensor.

ID: ehr

Name: Ear-clip Heart Rate Sensor

Category: medical

Manufacturer: seeed

Connection: gpio UPM module for the ear-clip heart rate sensor. It is used to measure your heart rate.

C++ includes: ehr.hpp

beatCounter()[source]

uint32_t beatCounter()

Gets the beat Counter

Beat counter

clearBeatCounter()[source]

void clearBeatCounter()

Resets the beat counter to 0. The beat counter should be stopped via stopBeatCounter() prior to calling this function.

getMillis()[source]

uint32_t getMillis()

Returns the time of milliseconds elapsed since initClock() was last called.

Elapsed milliseconds

heartRate()[source]

int heartRate()

Computes the heart rate

Computed heart rate

initClock()[source]

void initClock()

Resets the clock

startBeatCounter()[source]

void startBeatCounter()

Starts the beat counter

stopBeatCounter()[source]

void stopBeatCounter()

Stops the beat counter