Code to acquire the ppg signal

Hello to all,

I’m new to the world of Arduino and I’m working on a project where I have to create a program that simulates the behavior of a pulse oximeter. I would like to ask your help to understand how to proceed and implement this simulation correctly.

The goal of my project is to detect the heartbeat using a photodiode put on bredbord where there is current that detects by two red and infrared LEDs is converted intensity, amplified and filtered. I would like the program to alternately turn on two LEDs, one red and one infrared, and acquire the signal of the photodiode according to the ignition of the LEDs.

I have some questions
and difficulties regarding sampling frequency, LED management and signal acquisition. In particular, I wonder how to determine the optimal sampling rate based on the heart rate I want to simulate and how to properly manage the LED lighting and signal acquisition.

I am using an Arduino Uno board and I have already connected the photodiode correctly

and the LEDs. I am familiar with the basic programming of Arduino, but I lack the specific knowledge to make this simulation of a pulse oximeter.

I would be really grateful if you could provide me with suggestions, tips or examples of code to help me progress on this project. If you have previous experience in creating similar programs or have useful resources or tutorials to share, they would be greatly appreciated.

Thanks in advance for your help!
Immagine1

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.