Obtaining Oximetry Signal
To obtain oximetry signal, its necessary use two photodiodes, the first is an infrared diode and the second diode is a Red led. The Oximetry measures the relationship between oxygenated hemoglobin and desoxygenated hemoglobin with a diferent absortion spectrum, for the desoxygenated hemoglobin is already 920nm-950nm fot that reason can be detected by the infrared diode and the oxygenated hemoglobin is 600nm-650nm, detected by the red led that is in 660nm. To receive the signal through the finger is used a photoreceptor detecting changes in wave length.
![]() |
Figure 1, Oximetry Functioning , picture taken from: https://comprarpulsioximetro.com/como-funciona-un-pulsioximetro/ |
Transimpedance Amplifier
When the photodiodes emit infrared and red light through the finger, there is a change in the wavelength and in the current in the cuircuit, but to create a control of the variable, its necessary convert that current to a voltage value with a transimpedance amplifier like in the following figure:
Figure2, Transimpedance amplifier |
Band-pass filter:
The frequency spectrum for the oximetry is between 0.016Hz and 3Hz,to delete all the noise from another frequencies, a band-pass filter composed by a low pass filter and a high pass filter.
- High Pass filter: The pass filter is built with a center frequency of 0.15Hz, allowing the pass of all frequencies above this value. The folloving equation describes RC values according to the center frequency:
where fc is the chosen frequency, R is the resistor's value and C is the capacitor's value, in this case C=1μf replacing in the equation, looking for the resistor´s value we that
1.061MΩ
-
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGlgQaS_v8Hn-un70fB5j-J59Yr4_m5dQEr8yEb51BWpXxx9VHkVobzmvwZeruJkxnVA9ZhetnI7K_0tWq9YNfw6MIrntVSvZ5hxj2bSkobyTRbqhFqdEhSHyT5kt6zyeHoMUdtkdc_8sU/s320/high+pass.PNG)
Figure 3, High Pass Filter
-
Low Pass filter: The low pass filter is built with a center frequency of 10Hz stopping all the frequencies above this value, and allowing all the frequencies under the value. The math operations to know the resistor's value is the same with a capacitor's commercial value of C=1μf,
=15kΩ.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZunM30fDL0AyN8lOzpOULptbByVlfuxLNE4GePV9mCv-5q9O3K5jWX_N4ovqItupgu5iCIkoh2aHZqCM5Gu6twk8Sp2tGDexyoM5A3L9K7BCuJNtVrqJdzw422MG5ntF_rJhTGP3-y77C/s320/lowpass.PNG)
Figure 4, Low Pass filter
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJ-EKH7VlbA16N_NpxQX9a_LVVcoHkhyphenhyphenlOA2HwnA7N59-f1l70X_Nvody9MZGwLjzXWVbFr8ZdBarBoXFkQJvejxDBAP_5sppFXuCHtNWK97xkQ3aGvg6xbcv_RfLSQ34Fjmt6_pvWHtJy/s1600/Sin+t%25C3%25ADtulo.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhf742sRpqzXda72pQD4Ddg9pyLJhpVqkHRXo66FUlcYHpk4mXGDgbeBOFKUrWvuPGAUMEDSKW9KOfwglvl5dANGoM_Ewnufi8dGhuwrIfmfum8vlsoMUROF0mD-HYKJcUbSEX_WELBNmLe/s1600/Sin+t%25C3%25ADtulo1.png)
Figure 3, High Pass Filter |
-
Low Pass filter: The low pass filter is built with a center frequency of 10Hz stopping all the frequencies above this value, and allowing all the frequencies under the value. The math operations to know the resistor's value is the same with a capacitor's commercial value of C=1μf,
=15kΩ.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZunM30fDL0AyN8lOzpOULptbByVlfuxLNE4GePV9mCv-5q9O3K5jWX_N4ovqItupgu5iCIkoh2aHZqCM5Gu6twk8Sp2tGDexyoM5A3L9K7BCuJNtVrqJdzw422MG5ntF_rJhTGP3-y77C/s320/lowpass.PNG)
Figure 4, Low Pass filter
Low Pass filter: The low pass filter is built with a center frequency of 10Hz stopping all the frequencies above this value, and allowing all the frequencies under the value. The math operations to know the resistor's value is the same with a capacitor's commercial value of C=1μf,
=15kΩ.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQGLiQqlowjW8b4fJN7ptG1NTRoYHCaT33OifEihe2OoqjVmRUFRESFu-2KdCZTXtFmO4VaCoKPQwzzRYQSL_4P6topyhIzfPKTHirDbmk_yhtuNV-9n2hGBgR6KKuXeOOAOpZdhDiy9eg/s1600/Sin+t%25C3%25ADtulo3.png)
Figure 4, Low Pass filter |
Heart Rate
The infrared diode detects the desoxygenated hemoglobin,is possible detect the heart rate because the heart pump oxygenated blood to all the body, if the infrared diode read a change of voltage when the blood arrives to the fingers,we could know when is a beat. To get that information was used a microcontroller (Arduino UNO), the out of the circuit is connected to the arduino´s ADC converter to read that voltage inside the microcontroller. The firt step is obtain the voltage in the arduino converting analog signal into a digiatl signal with the ADC converter, the bits resolution of the arduino uno is 10 bits (2^10) and the voltage referenceis Arduino's source (5v), in this way the digital voltage is:
The voltage is approximately 2.6v, reading this value we can create a counter ,each time that the voltage is greater than 2v the counter increase in 1 unit during fifteen seconds, to know the bets per minute, the counter´s value is multiplied by 4 (15s*4=60s) completing the data collection. the next figure shows the arduino´s code implemented:
Figure 5, Code implemented to get heart rate. |
Oxygen Saturation (SPO2)
The light absortion emitted by the photodiodes is due to the skin, blood vessels and venous the arterial blood flow is pulsatile and the other fluids are constant,givin us 4 type of voltage when the red led is turned on there are dc voltage(no pulsatile) and Ac voltage (pulsatile) and the same with the infrared led. to obtain oxygen saturation, the photodiodes were turned on with the Arduino´s digital pins during 5 seconds, first was activates the red Led detecting the changes of voltage between Dc and AC, if the voltages is greater than 2v, is an AC red led voltage and was saved into an array but if the voltages is lower than 2v is a DC red led voltage saved into another array. When the time is complete, was calculates a mean of the two arrays (DC and AC red led voltage).After that, the infrared diode was turned on during five seconds with the same process.
Figure 6, Turning on Red LED |
Figure 7, Turning on Infrared diode |
when all the values are taken, the absortion coefficient R is calculated with the following equation:
R's value allows know the oxygen saturation (SPO2) with a oxyhemmoglobin dissociation curve, shown in the next picture:
To know the oxygen saturation,its necessary calculate the curve's slope with the equation :
The first point p1 is (1,85) and the second point p2 (3.4,0), applying the equation
and finally the regression
where y is the oxygen saturation value obtained with the implemented circuit, the regression
calculated in this design is:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxWdVQjVMx_cKdSp2TL8yzZeLhMIHk1-dJjvOX5vDBby8AmjUKYeNS0qRLHle0Kouds4M10qflEu5soxB02mqFPzj0vNZPIqZZ9Z5aknMTyLNLYPbs4mFFxafbRZm2YDLjNwnCN_U_2CW9/s1600/Sin+t%25C3%25ADtulo5.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWFacIEBHaNGHOpELFyvEWe-Kv4kIHlSRAjRsDLu8o5Q0iX0xjJtDn_I5CRbPAxhnw2LjWb214WRVpwXotBe0-PjdQMivlP7WfpzYftO9eWtpuvaBqQQ-gPmh7bh1186DBnwMp26Fp2wMm/s1600/Sin+t%25C3%25ADtulo7.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeF7YMLwaxfc8x92IrrwdGMJlJIjsEfVve7zhKj8L8-obz8E64TiDTxEvtaHmUVcqSsx4Ysa1npjXKvTqQRPpsbR6i_X_smNzD2eNXTwz3l8qlqOPOv95IzIpgCSP046uFAuPnJ3crUlv7/s1600/Sin+t%25C3%25ADtulo6.png)
To make the alarm was used a obstacle sensor, when there isn´t something close to the sensor, the sensor´s output is 5v but when it
detects the presence of an object ,in this case finger,the sensor´s output is 0v.The Arduino's Digital pins Receive the logic voltage, while this voltage is HIGH (5v), in the LCD appears a message (locate finger), if the
person locate finger , the voltage is 0 and it comes out of the while cycle.
Pulse oximetry schematic
Pulse oximetry schematic
![]() |
Commercial pulse oximeter V.S Designed pulse Oximeter
Finger´s detection
Oxymetry Signal