---
title: "PPG front end"
canonical_url: https://developer.repebble.com/pebbleos/docs/drivers/ppg/
last_updated: 2026-12-05
sdk_version: 4.44
---
# PPG front end

Source: https://developer.repebble.com/pebbleos/docs/drivers/ppg/

A PPG front end lights LEDs and measures the light coming back on its photodiodes: green, red and infrared intensity channels, the ambient light, and the light it measures for wear detection. Its consumer sets the LED current and the gain of each channel and receives batches of raw samples; gain control and the algorithms that turn them into heart rate, SpO2 or wear verdicts are the consumer’s.

| 

 | 

 |
| --- | --- |
| 

Directory

 | 

`drivers/sensor/ppg`

 |
| 

Headers

 | 

`pbl/drivers/sensor.h`, `pbl/drivers/sensor/driver.h`

 |
| 

Kconfig

 | 

`CONFIG_SENSOR_PPG`, enabled by the application, selects `CONFIG_SENSOR`

 |
| 

Role

 | 

`PPG`

 |
| 

API

 | 

[API reference](https://developer.repebble.com/pebbleos/apidoc/db/d18/group __drivers__ sensor.html)

 |

## Drivers

| 

Driver

 | 

Compatible

 | 

Kconfig

 |
| --- | --- | --- |
| 

Goodix GH3x2x

 | 

`goodix,gh3026`

 | 

`CONFIG_SENSOR_PPG_GH3X2X`

 |
| 

Simulator

 | 

—

 | 

`CONFIG_SENSOR_PPG_SIM`

 |

Generated from PebbleOS [7416f78a1](https://github.com/coredevices/pebbleos/commit/7416f78a1dc6d00d91f42a28c68918ae92bcfbbc). This page is maintained in the pebbleos repository: [docs/drivers/ppg.md](https://github.com/coredevices/pebbleos/blob/7416f78a1dc6d00d91f42a28c68918ae92bcfbbc/docs/drivers/ppg.md).
