Apnea Monitor Based On Bluetooth With Android
Apnea Monitor Based On Bluetooth With Android
Abstract— Apnea monitor is a device that is used to give a warning if there is stop breathing. Stop breathing while sleeping is one form
of obstructive sleep apnea. This cessation of breath cannot be underestimated, this is related to the main risk factors for health implications
and increased cardiovascular disease and sudden death. The purpose of this study is to design an apnea monitor with the Android
interface. This device allows the users to get how many times sleep apnea happens while sleeping and got data to analysis before continuing
with a more expensive and advanced sleep test. This device used a flex sensor to detect the respiration rate, the sensor placed on the
abdomen or belly so it can measure expand and deflate while breathing. The microcontroller uses an Arduino chip called AT-Mega328.
Bluetooth HC-05 used to send respiration data to Android, MIT app inventor used for the android programmer, and on the android,
there are plotting of respiration value and when the device detected apnea so the android also gives a warning to the user. Based on the
results of testing and measurement then compare with another device, the results of the average% error were 3.61%. This apnea monitor
design is portable but there are needs some improvement by using another sensor for detected respiration and using a module other than
Bluetooth.
Sleep apnea has a serious impact for patients, especially can Based on the results of the identification of the above
cause heart problems (hypertension, coronary artery disease, and problems to diagnose sleep apnea so that it can prevent the risk
arrhythmias). In addition, sleep disorders can also have a of cardiovascular disease and complications of other diseases
negative impact on quality of life. This often causes depression, such as hypoxia and sudden death (author death), Therefore, the
fatigue during the day and drowsiness. Sleep apnea events are objective of this study is to develop apnea monitor based on
divided into 3 classes: obstructive sleep apnea (OSA), central Bluetooth with android interface.
sleep apnea (CSA), and mixed sleep apnea (MSA). This disease II. MATERIALS AND METHODS
can occur at any age and sleep apnea is often undiagnosed [4].
Hypoxia caused by OSA can result in hypertension in the lungs, A. Experimental Setup
cardiac dysfunction, and even kidney disorders [5]. This study uses male and female as a subjects aged 17-40
Statistics show that around 100 million people worldwide, years. Sampling is randomly by taking data 5 times with a total
where in the US from 18 to 50 million people, are suspected of of 10 samples.
having OSA, and among them more than 80% remain 1) Materials and Apparatus
undiagnosed. According to the American Academy of Sleep
This study uses a flex sensor which will be placed on the Start
patient's abdomen to detect the patient's breathing. Using
ATMega328 as a microcontroller, and Bluetooth to send data to
android.. Initialization
2) Experiment No
In this study the researchers measured subject’s respiration
who were randomly selected and compared the results of Bluetooth
respiration with standard. Connected?
Patient s Breathing
Belly Indicator
Yes
III. RESULTS
In this study, a trial has been carried out on the tool module
by measuring breathing in patients directly and taking
measurements to determine the accuracy of the module
Fig. 4. Voltage divider
𝑅𝑓 𝑅6
Gain = (− ) = (− ) (2)
𝑅𝑖𝑛 𝑅3
Fig. 8. Result of apnea monitor design
3) Bluetooth Connection
The Bluetooth circuit is connected to the ATMega328
microcontroller by connecting the AT-Mega 328 TX pin to the
RX Bluetooth pin, and the RX AT-Mega 328 pin to the
Bluetooth TX pin.
Serial.println (nafasmanual);
beat=0; } }}
//================deteksi apnea============
if(flex<hold){
Fig. 9. Display mit app for apnea monitor if (detik>10000){
if (kirim==0){
1) The Apnea Monitor Design Serial.print("c");Serial.println(1);
The analog signal conditioning circuit and microcontroller digitalWrite (buzzer,HIGH);
for Apnea Monitor are shown in figure 7. This design consists kirim=1;}}
of a series of voltage dividers, a difference amplifier circuit, and
an LPF filter. The difference amplifier circuit uses the LM358 if(flex>hold){
IC which has two op-amp. In the voltage distribution circuit if (milidetik>10000){
there is multi-turn (50k) which serves to adjust the sensitivity of if (kirim==0){
the flex sensor readings. For the microcontroller this tool uses Serial.print("c");Serial.println(1);
ATMega328 as a control and uses the Bluetooth HC-05 module digitalWrite (buzzer,HIGH);
as the sender of data through the microcontroller to android. kirim=1;}}
2) The Listing Program for ATMega328 Apnea Monitor
In this study, the software was divided into two parts, namely
for ATMega328 and for MIT APP Inventor. For the 3) The Listing Program for Mit App Inventor
ATMega328 listing program shown in the Program Listing 1. It In Listing Program 2 it explains the program for receiving
contains a sensor reading program and sending data to android data sent Bluetooth from the microcontroller by android. Where
via Bluetooth HC-05. the data is divided into 3 parts. The first part beginning with the
letter "a" is the counter value data for RR. Data beginning with
Listing program 1. Program to send the RR data To Android the letter "b" is data for plotting graphics, and data beginning
//=======pencarianReferensi (Autoreferensi)======== with the letter "c" to trigger an alarm in the MIT App Inventor.
Flex = AnalogRead (A0);
if(ref<=flex) {ref=flex;} Listing Program 2. Program for MIT App Inventor
else {ref=ref; hold=(ref*0.8);}
if (beat==1){
kirim=0;
digitalWrite (ledPernapasan, HIGH);
if (waktumonostabil>delayMonostabil){
detak++;
nafasmanual++;
waktumonostabil=0;
Serial.print ("a");
(a) (b)
Fig. 10. Sensor placement to measured the respiration (a) left (b) right side
10 10.20 0.20
10 10.08 0.08
10 10.16 0.16
10 10.20 0.20
After testing the timer there are the difference between timer
and standard. The biggest difference is 0.22 seconds and the
smallest difference is 0.08.
Average
Number Device STDEV Ua Error
(RR)
Standard 11.2 0.45 0.20
1 3.57%
Design 10.8 0.84 0.37