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.

AD8232 Class

Module: ad8232

Note: this sensor must be driven at 3.3V only.
This module simply spits out the ADC values reported by the sensor, with the intent to send that data, via serial or network port, somewhere to another piece of software running on a computer that plots the data for you, like an EKG.
Processing ( https://www.processing.org/ ) is software that should work, using information from the SparkFun* website.
This example just dumps the raw data:
ad8232.jpg

Item Index

Methods

Methods

AD8232

(
  • loPlus
  • loMinus
  • output
  • aref
)
Number

AD8232 constructor

Parameters:

  • loPlus Number

    Digital pin to use for LO+

  • loMinus Number

    Digital pin to use for LO-

  • output Number

    Analog pin to read the data

  • aref Number

    Analog voltage reference

Returns:

Number:

value

() Number

Returns the current ADC value for the device output pin. If an LO (leads off) event is detected, 0 is returned.

Returns:

Number:

ADC value