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.
Keywords—Sleep Apnea, Apnea Monitor, Flex Sensor
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' Breathin
s g
Yes
Belly Indicator
Low Alarm
Flex Sensor
Battery
Mikrokontroller Indicator
Atmega 328 Stop
Analog Alarm
Signal Fig. 3. The flowchart of the android program
Conditionin
g Bluetooth HC-05 C. The Flowchart
The Arduino program is based on the flowchart in Fig. 2.
After initializing the microcontroller will detect changes in
input voltage produced by the flex sensor. Furthermore, this
Alarm
Handphone
data will be sent via Bluetooth to Android.
Plotting of respiration The Android program flowchart can be seen in Figure Fig.3,
rate where after initializing, the operator needs to connect
Fig. 1. The diagram block of the apnea monitor Android to Bluetooth from the device. When breathing occurs,
the value of the patient's respiration will appear, and when its
Star one minute there will be an update to plot the graph of
t respiration value on the android display.
Initialization D. The Analog Circuit
The most important part of the design is the analog signal
Detecting Respiration
conditioning circuit, as shown in figure 4 which is a voltage
by Flex Sensor
divider circuit, the difference amplifier circuit and filter in
Figure 5. This circuit serves to process analog signals so that
the output is ready to be processed by a microcontroller.
Sending Data via 1) Voltage Divider
Blueooth to Android The circuit shown in Figure 4 is a voltage divider circuit,
where this circuit will experience a change in output voltage
Stop when the flex sensor changes the curve caused by the breathing
process of the patient.
Fig. 2. The flowchart of the arduino program
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
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
Listing program 1. Program to send the RR data To with the letter "b" is data for plotting graphics, and data
Android
//=======pencarianReferensi (Autoreferensi)======== beginning with the letter "c" to trigger an alarm in the MIT
Flex = AnalogRead (A0); App Inventor.
if(ref<=flex) {ref=flex;}
else {ref=ref; hold=(ref*0.8);} Listing Program 2. Program for MIT App Inventor
//===========pembacaan nilai
respirasi=========== if (flex>hold){
beat=1; detik=0; kirim=0;
digitalWrite (buzzer,LOW);
digitalWrite
(ledPernapasan, LOW); }
if (beat==1){
kirim=0;
digitalWrite
(ledPernap
asan,
HIGH);
if (waktumonostabil>delayMonostabil)
{ detak++;
nafasmanual++;
waktumonostabil=0;
Serial.print ("a");
Indonesian Journal of Electronics, Electromedical, and Medical Informatics (IJEEEMI)
53
IJEEMI, Vol. 1, No. 2, November 2019, pp:50-56
DOI: 10.35882/ijeeemi.v1i2.1 ISSN:2656-8624
(a) (b)
Fig. 10. Sensor placement to measured the respiration (a) left (b) right side
6.
Design 18.4 2.88 1.29 [7] S. Sunit, R. Pallab, J. L. Mathew, M. Jayashree, and Dhanalakshmi,
“Apnea in New Born,” Indian J. Pediatr., vol. 75, no. 1, p. 57, 2008.
Standard 15.0 2.00 0.89
7 1.33%
Design 14.8 2.17 0.97
Standard 23.4 2.30 1.03
8 5.98%
Design 22.0 2.55 1.14
Standard 18.8 1.48 0.66
9 3,.19%
Design 18.2 1.92 0.86
Standard 19.0 1.41 0.63
10 0.00%
Design 19.0 1.41 0.63
The measurement results from the patient's Respiration Rate
compared to the standard. The results are shown in table 2.
IV.
DISCUSSION
The apnea monitor design has been examined and tested
completely in this study. Based on the result after measuring
respiration signal from 10 subject, as seen above in the table
can be conclude that the average of amplitude from the right
side is
2.52 Volt and the average from the left side is 1.812, so the
right side is better to place the sensor.
Furthermore, based on the results after compared
measurement using standard there are differences in the
measurement results. The biggest error value is 6.98% and the
smallest is 0.00%. The average error is 3.61%. The uncertainty
value is obtained because there are still other factors that
influence the measurement results, such as the location of the
flex sensor at the time of measurement, and respiration from the
respondent is not always stable. So the value of uncertainty
must also be calculated. The biggest value is 1.29 and the
smallest value is 0.20.
V.
CONCLUSION
This study has demonstrated the development of the apnea
monitor to monitoring the respiration of the patient’s while
sleeping. This study was built based on Bluetooth with android
interface. After testing the design, there are needs to
improvement by using other sensor for detected respiration and
using module other than Bluetooth.
REFERENCES
1 Kementerian Kesehatan, “Keputusan Menteri Kesehatan Republik
Indonesia Nomor 118/MENKES/SK/IV/2014,” pp. 33–34, 2014.
2 N. Maske and A. Gaikwad, “Monitoring Of Obstructive Sleep Apnea
Using Mobile,” Int. J. Ind. Electron. Electr. Eng. ISSN, vol. 4, no. 4, pp.
71–75, 2016.
3 K. Sneha, “Detection of Sleep Apnea using Pressure Sensor,” Int. Res. J.
Eng. Technol., vol. 03, no. 10, pp. 709–712, 2016.
4 Dipti Patil, V. M. Wadhai, S. Gujar, K. Surana, P. Devkate, and S.
Waghmare, “APNEA Detection on Smart Phone,” Int. J. Comput. Appl.,
vol. 59, no. 7, pp. 15–19, 2012.
5 R. M. Taylor-Gjevre, “Obstructive sleep apnea, hypoxia and
inflammatory arthritis: How may they be linked?,” Int. J. Clin.
Rheumtol., vol. 10, no. 4, pp. 219–222, 2015.
6 G. J. Rossini, “O bstructive S leep A pnea A nd O besity,” J. Lancaster
Gen. Hosp., vol. 4, no. 4, pp. 139–142, 2009.