examples/PulseSensor/README.md
This project shows how to use Serial Studio to visualize data from a heart pulse sensor connected to an Arduino. The Arduino sketch reads raw data from the pulse sensor, applies a low-pass filter to remove high-frequency noise, and uses a moving average filter to smooth the signal further. The filtered signal is sent over serial for real-time visualization.
With Serial Studio you can use the Quick Plot feature to visualize the data, the same way you would with the Arduino IDE's Serial Plotter, and you can also export the data to a playable CSV for later analysis.
Compatibility. Works with any pulse sensor module connected to an analog pin on an Arduino. The program uses A0.
A photoplethysmogram (PPG) is a signal that measures changes in blood volume in small blood vessels of the skin. It uses a light source (typically an LED) to shine light on the skin, and a phototransistor to measure how much light is reflected or passed through. When the heart beats, the amount of blood in the skin changes, which changes how much light is absorbed. The result is a waveform that shows each heartbeat as a peak.
PPG sensors are often used in pulse oximeters to measure heart rate and estimate blood oxygen. They can also provide info about breathing patterns and blood flow. The exact shape of the PPG waveform depends on where the sensor sits on the body, since tissue composition and vascular structure affect the signal.
You need a pulse sensor and an Arduino. Connect the sensor's signal output to A0.
PulseSensor.ino)The sketch reads the analog value from the pulse sensor, applies filtering, and sends the filtered data over the serial port.
What it does:
Code structure. The sketch reads raw data from the sensor on A0, then processes it through two filtering stages:
The filtered signal is printed to serial so Serial Studio can visualize it.
Using Quick Plot:
Once Serial Studio is set up:
lowPassAlpha) in the sketch.