Professional Documents
Culture Documents
Using Oximeter
Abstract— Nowadays, patients with sleep apnea situated in smartphones are also available which can work in a home
areas lacking in technological advancements are given setting.[12] Iot based systems are also proposed which gives
overnight supervision. Sleep apnea is a common condition in overnight diagnostic of the patient by using SpO2 data and
which the patients’ breathing stops and restarts many times cloud to process information.[13]. Other researchers use
when sleeping. This results in oxygen deficiency and may result ballistocardiograph (BCG) [14][15] and others use pressure
in fatality if left unattended over a period. Therefore, to sensors [16]. The sound is also used to determine OSA [17]
provide supervision in absence of medical staff we introduce [18].
“Smart Sleep Alarm for Sleep Apnea Using Oximeter”. The
oximeter measures how Oxygenated a host’s blood is and it The study of sleep Apnea Hypopnea Syndrome
also detects heartbeat (BPM). Furthermore, a haptic feedback helps analyze hemoglobin oxygen saturation levels using
actuator is connected to the patient’s bed. The sensor Artificial Neural Network classifier for sleep Apnea
continuously reads these vitals obtained from the host. When
detection. The proposed system is tested using a data set
oxygen content in blood is low, haptic feedback is enabled. The
immense feedback response is enough to wake up any heavy composed of 8 subjects with one-minute notations. The
sleeper. Using this apparatus, we can avoid deaths caused by optimal system consists of seven features which are utilized
sleep apnea and contribute to modern solutions. from a total of 61 features. The artificial Network system
reached up to 97 percent accuracy using these 7 features.
Keywords—Sleep Apnea, SpO2, pulse oximeter
Fig 2
SG 90 servo motor:
SG90 is a popular micro servo motor commonly
used in DIY projects. It is a small, low-cost servo motor that
can rotate 180 degrees with a maximum torque of 1.8 kg-
cm. It operates at 4.8-6V and has a weight of approximately
9 grams, making it ideal for small-scale robotics and model
control applications.
Fig 4
Fig 3
IV. SENSOR CONFIRGURATION
III. WORKING To configure a pulse sensor, you'll typically need to connect
It is common for people experiencing a shortage of it to a microcontroller or development board and write code
breath, such as during intense physical activity, anxiety, or to read and interpret the sensor's output. Here are the general
certain medical conditions, to have an elevated pulse rate. steps to configure a pulse sensor:
Shortness of breath can cause the body to go into a state of
increased physiological stress, leading to an increase in heart Gather the required materials: You'll need a pulse sensor
rate. This response is part of the body's natural mechanism module, a microcontroller or development board such as
Arduino or ESP32, jumper wires, and optionally a 3. The'setup()' function: - Connects the servo to the GPIO
breadboard. pin that has been provided (GPIO 26).
- Sets ADC's resolution to 12 bits.
Connect the hardware: Connect the pulse sensor module to - Sets the attenuation of the ADC channel to 11 dB.
the microcontroller or development board. Typically, the - Establishes the Serial communication at a 9600 baud
pulse sensor will have three pins: VCC, GND, and an analog rate.
output pin. Connect the VCC pin to a 5V power source, the
GND pin to ground, and the analog output pin to an analog
input pin on the microcontroller. Use jumper wires to make 4. The 'loop()' function uses the ADC to read the raw
these connections. analogue data from the pulse sensor.
- Converts the analogue value to a range of heartbeats (60
Write the code: Use the appropriate programming language to 200 per minute).
(e.g., Arduino programming language) to write code that - Sends a printout of the heartbeat value to a serial plotter
reads the analog input pin and processes the sensor data. for monitoring.
You'll need to use the microcontroller's analog input - The servo motor is activated to imitate a heartbeat if the
functions to read the voltage values from the pulse sensor. heartbeat value is greater than the threshold set:
- Waits 15ms between each step as the servo motor
Calibrate and interpret the sensor data: Pulse sensors rotates from 0 to 180 degrees in stages of 1 degree.
usually output analog voltage values that correspond to the
detected pulse rate. You may need to calibrate the sensor 5. "delay(50)": Controls the sample rate by adding a 50
based on its specifications or adjust the code to interpret the millisecond delay at the conclusion of each loop.
data correctly. This can involve mapping the analog values
to actual pulse rates and applying filters or algorithms to
extract meaningful information from the sensor readings.
V. CODE EXPLAINATION
First, libraries
- 'ESP32Servo.h': Servo motor control library.
- 'driver/adc.h': A library to access the analog-to-digital
converter (ADC) on the ESP32.
VI. REFERENCES