upm
0.3.1
Sensor/Actuator repository for libmraa (v0.7.2)
|
UPM module for the AD8232 Heart Rate Monitor. More...
Note, this sensor must be driven at 3.3v only.
This module will simply spit out the ADC values reported by the sensor, with the intent being to send that data somewhere (via serial or network port) to another piece of software running on a computer that will plot the data for you, like an EKG.
Processing (https://www.processing.org/), is a piece of software that should work, using information from the Sparkfun website.
This example just dumps the raw data.
AD8232 Heart Rate Monitor image provided by SparkFun under CC BY-NC-SA-3.0.
Public Member Functions | |
AD8232 (int loPlus, int loMinus, int output, float aref=AD8232_DEFAULT_AREF) | |
~AD8232 () | |
int | value () |
AD8232 | ( | int | loPlus, |
int | loMinus, | ||
int | output, | ||
float | aref = AD8232_DEFAULT_AREF |
||
) |
AD8232 constructor
loPlus | digital pin to use for LO+ |
loMinus | digital pin to use LO- |
output | analog pin to use for reading the data |
int value | ( | ) |
return the current ADC value for the device output pin. If an LO (Leads Off) event is detected, 0 will be returned.