ppg 0.1.9 copy "ppg: ^0.1.9" to clipboard
ppg: ^0.1.9 copied to clipboard

A plugin to access the PPG sensor and estimated heart rate on WearOS devices.

ppg #

A Flutter plugin to access the PPG sensor.

This plugin is a modification of sensors. I have tested it to read the PPG sensor in WearOS with both a Fossil Sport and a Fossil Gen 5. This plugin only supports Android. I don't know if it is even possible to read the raw PPG data from Apple WatchOS yet, but it would be super cool if someone could add that functionality. Both of the WearOS watches I tested with had a sensor of type com.google.wear.sensor.ppg. This plugin will detect a PPG sensor if its type contains ppg

Update: I used this plugin to make a simple heart monitoring app link

Usage #

This plugin exposes Streams of PPGEvents and HREvents

Example #

import 'package:ppg/ppg.dart';

ppgEvents.listen((PPGEvent event) {
  print(event);
});
// [PPGEvent (x: [0.0, 0.0], t: 0.0)]

hrEvents.listen((HREvent event) {
  print(event);
});
// [HREvent (x: 0.0, t: 0.0)]

Also see the example subdirectory for an example application that uses PPG data.

3
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A plugin to access the PPG sensor and estimated heart rate on WearOS devices.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on ppg