Академический Документы
Профессиональный Документы
Культура Документы
CHAPTER 1
Introduction
1.1 Background of the Study
Changes brought about by the modern world are undeniable. Together with the
advancement of technology come new diseases that continue to challenge human
existence. There is an increase in the number of respiratory-related illnesses brought
about by the worlds continuous growth. There are developments in the field of
electronics that aims to provide sensors and components that could lead to portable, userfriendly and improved lung capacity measuring devices [1]. Spirometry is a physiological
test that measures how an individual inhales or exhales volumes of air as a function of
time. The primary signal measured in spirometry may be volume or flow. There are
numerous parameters obtained during a spirometry test. It varies depending on the nature
of the procedure, may it be for diagnosis or monitoring. One of particular parameter used
in monitoring lung capacity is called Peak Expiratory Flow (PEF). It is the highest flow
achieved from a maximum forced expiratory test from a maximum lung inflation
[9]
It is
used to monitor lung conditions, one of which is asthma. Chronic Obstructive Pulmonary
Diseases (COPD) is a type of disease commonly associated with the lungs
[2]
. The most
common types of this respiratory ailment are emphysema, chronic bronchitis, and asthma.
According to a study done by the World Health Organization (World Health Statistics
2008), they estimated that 210 million people have COPD, 23 million died from it over
the past year [8]. They also predicted that at this rate, it would be the 3rd leading cause of
death worldwide. The study focuses on developing a microcontroller based digital peak
flow meter system. It provides an alternative to lung capacity testing and monitoring that
are currently done in local hospitals. The system also provides features that are
convenient with regards to monitoring a patients lung condition since the device can be
interfaced to a computer to view the results. The data can be viewed by the doctor
through a website obtained from its database.
[8]
is used to measure the lung capacity and the volume of a persons lung through inhalation
and exhalation of air. It includes different types of tests that doctors use either to diagnose
or to monitor the patients lung condition. Since asthma is one of the main causes of
absences during school. It can be caused by a lot of factors that are not yet fully
understood by researchers.
[10]
used to help monitor the medical situation of a patient, asthma being one of this. The
most common type of peak flow meters available in the market is the spring type peak
flow meter. It is an analog device commonly used in local hospitals today to determine
the lung capacity of the patient. An indicator will provide a gauge of how well the
patient's lung functions. This is being determined by reading graduations on the device.
The acceptability of the result is subject to the proper interpretation of the user. Thus, the
data is subject to human error. The data is manually plotted, afterwards presented to a
doctor for assessment. The prototype aims to provide an alternative to this method by
providing a digital output in the evaluation process and remote monitoring of the patient.
The groups prototype aims to provide assistance to the doctor by allowing the
results of the test to be sent to a computer with use of the Bluetooth technology as its
medium. The information can be then sent to a database that can be viewed by the doctor.
This functionality will allow the doctors to monitor the data through a website that
contains the patients information from the server and will allow them to have a better
way of gathering data from the patients.
available in hospitals and clinics are not digital and is prone to parallax error since the
results depends on proper human interpretation. The device is also portable, allowing
ease of use whenever the patient has to perform the tests required for a day. The LCD
screen would display the results obtained from the test. The push buttons will be used for
the operation of the device. It can be interfaced to a computer through Bluetooth
technology allowing wireless capability. The prototype that the group is proposing can
also provide remote data access through web based feature. The doctors can view the
results remotely; make their recommendations as soon as they get the results from the
database.
1.4 Objectives
1.4.1 General Objective
1.4.1.1 Develop a microcontroller-based digital peak flow meter that would
measure lung capacity and send the obtained data to a computer wirelessly.
1.4.2.5 To use a Graphic User Interface (GUI) that would display the data sent to
the computer.
1.4.2.6 To view the data in a Website that can be accessed by the doctor to view
the data obtained by the system.
for home use. The system, specifically the website for the doctor, is only accessible
through local area network using a router since the proponents will be using DLSU-Ms
internet connection for the development of the system. The setup with the router is for
demo purposes only.
1.6.5 Website
The website will provide the means by which the doctor can view the
results. It contains the patients information, allowing the doctor to view the
results over a network
1.7 Methodology
In this thesis, the group shall be responsible in performing tests on the hardware.
The group shall perform 20 tests per patient (see Appendix A for calculation). The data
that would be used as reference for the operation of the device will be the spring type
PEF available in the local market.
aid them in constructing the hardware of the system which includes the flow tube,
calculating system for the flow rate which is determined through the use of sensors, and
the LCD to display results.
Activity
Brainstorming of Proposal
Preparation of Proposal
Preparation of Materials
Purchasing of Materials
Building of Project Prototype
Programming of Microcontroller
Integration of Prototype
Testing
Evaluation of Results
Recommendation of Adviser
2009
2010
May June July Aug Sept Oct Nov Dec Jan Feb March April
P100
Bluetooth
P1500
LCD Display
P300
P5000
Miscellaneous
P7000
Total:
P13,900
CHAPTER2
Review of Related Literature
2.1 A Differential Pressure Approach to Spirometry
(Flow Rate Measurement)
In developing the prototype, it is imperative that we understand the flow
measurement part of the design. In order to meet the requirements of the PEF test, we
must choose carefully the sensors to be used to obtain the best results. In our work, we
are to take into consideration the different aspects of flow measurement to determine the
flow rate needed. We are to obtain a, volumetric flow rate for our thesis so one of the
options that we could consider is the use of differential pressure sensing.
In this particular article describes a possible implementation of the prototype. This
follows the theory set forth by Bernoulli in his equation. The main principle which
underlies differential pressure flow measurements is the mathematical expression of
Bernoullis theorem which states that introducing a constriction within a tube would
generate a difference in pressure. The equation shown below can describe the relationship
between the parameters needed.
period In developing the prototype, we should be able to understand the principles behind
PEF measurement as well as the electronic components used in the design. There are
various ways on achieving a flow measurement with regards to the flow sensor to be
used. In this particular article, the proponents used a differential pressure sensing device.
Air chamber pressure signal was sensed by 3 differential pressure transducer (MPX2010,
Motorola, U.S.A.), amplified and filtered appropriately. A digital circuit was followed for
ADC conversion and data output with the RS232C serial communication protocol.
In the work of Chin-Wann Lin, Di-Ho Wang, and Hao-Chien Wang entitled
for transient time across the lumen. In the design of their prototype, they used a used a
hotwire sensor with an end connected to a Whetstone bridge and then excited with a
constant voltage level without a negative feedback. Their thermal bridge is then
connected to an analog to digital converter (ADC) and a microprocessor to process the
data. Their prototype also included the use of a keyboard, LCD, audio components, 32K
EPROM for the algorithm, 32K SRAM that is used to process the data, and a UART for
serial communication. From the flow-time curve, volume-time curve and the flowvolume curve gathered, and then the pulmonary parameters that are used in spirometry
(FEV1, FVC, FEV1/FVC) are computed and compared accordingly from the these
curves.
With the help of the journal, we will be able to further understand Bluetooth
technology as we aim to implement our thesis using the technology. The journal includes
details about Bluetooth such as the basic configurations, frame formats, hardware and
software implementation and protocols together with the architecture and network
topology of Bluetooth, which is very helpful for our thesis. With the increase of
companies taking part in the Bluetooth Special Interest Group (SIG), the implementation
of our thesis using Bluetooth only makes sense in order to keep in pace with todays
technology.
The journal also talks about essential components in order to establish a Bluetooth
connection such as devices that will serve as the master and slave, host controller
interface, the establishment of connection of each layer, link manager and how to
disconnect or end the connection. With this information the group will able to have a
grasp of the technology. This part of the thesis is essential as it will be the one to transfer
the data from the spirometer to the computer, which is monitored by the doctor, so proper
knowledge of Bluetooth will be imperative. This journal will be a great help to the group
as they try to learn and understand the different components that comprises their thesis to
be able to properly integrate them.
CHAPTER 3
Theoretical Considerations
3.1 Flow Measurement
3.1.1 Differential Pressure Sensor
membrane exerts on the silicon crystal. When there is no dent, there is no pressure
exerted and when the dent gradually increases, the pressure measured also
increases.
Where:
h
h
h
h
Since flow rate is constant all throughout the tube, furthermore, the volumetric
flow rate is expressed as,
, and
respectively, we have
Equation 3.2. Relationship between volumetric flow rate at initial and throat sections
Where
is the
cross sectional area of the throat section. In order to solve for the constant that is
to be used for the programming of the microcontroller to output the corresponding
volumetric flow rate from the sensor reading, we must first determine Q1 which is
the volumetric flow rate. Simplifying Bernoullis equation to get Q1 we must first
solve for V1 from Equation 3.1.
to get,
Equation 3.3
By isolating
and
Equation 3.4
Equation 3.5
Where
Equation 3.6
We now have a value for V1 given the venturi tube diameter at the opening and at
the throat. In determining the volumetric flow rate Q, we can multiply V1 and the
cross sectional area of the corresponding section of the tube.
From this equation, we can now determine the volumetric flow rate needed.
A Pitot tube is another type of flow tube used for flow rate
measurement. In this flow tube however, instead of an orifice
plate, an impact probe is inserted in the tube. This impact probe is
faced directly to the flow. A pressure difference can be measured
as fluid flows through the probe.
Microcontrollers are designed for embedded applications, which is why the group
decide to consider using it for the project. Microcontrollers are commonly used in
automated systems to control the system with respect to all the inputs and outputs. The
MCU is a very critical part of the system because it will send out the necessary
information to the whole system so that it will work the way it should be.
computing
power
that
the
microcontroller
can
provide.
(RAM),
read
only
memory
(ROM),
erasable
Read-Only
Memory (EEPROM),
and
flash
3.3 Bluetooth
Bluetooth is one of the newest networking technology that use a low transmission
power setting, typically 1 milliwatt. Bluetooth technology is ideal for mobile battery
operated devices and systems. Bluetooth can also instantly connect, detect and
communicate to other Bluetooth devices without relying on a user input. Bluetooth
technology primarily relies on two important things; a radio frequency technology that
will allow the communication between two devices, and software with a set of protocols
that will enable and control traffic between two devices in transmitting and receiving data
to each other.
Figure 3.7 Bluetooth Connections: (a)Point to Point (b) Piconet (c) Scatternet
Since every device in a Bluetooth piconet is synchronized in frequencyhopping there is minimal risk of two Bluetooth piconets interfering with each
other. Piconets also change frequencies 1600 times per second making a collision
between two piconets to last only a fraction of a second.
Up to 100 meters
Up to 10 meters
0.1-10 meters
3.4 TCP/IP
3.4.1 TCP/IP Model
Prior to the development of the 7 OSI Layer, there existed an earlier model
called the Transmission Control Protocol/Internet Protocol (TCP/IP). It is the
basic communication language or protocol of the Internet. The TCP/IP model
involves a set of general design guidelines and implementations of specific
networking protocols to allow communication of computers over a network.
Figure 3.10 Encapsulation of application data descending through the TCP/IP layers
(FTP)
and
the
Simple
Transfer
Protocol
comes along with Windows Operating System. IIS allows web pages developed to
be published either on local area network, wide area network or internet based
network. This web application is accomplished by creating virtual directories
wherein requested pages by users are directed to that virtual directory.
3.5.5 Browser
A browser is a web application used for retrieving, presenting and
traversing information resources on the World Wide Web. A protocol is used to
establish an understanding between the requesting party and the browser. This
protocol is called the Hyper Text Transfer Protocol (HTTP).
A browser understands HyperText Markup Language (HTML) codes only.
Usually, upon typing the URL in the browser, we easily see the webpage that we
wish to view. However, behind that, a lot of processes occur before we are able
to view the page. When a URL, also called a domain name, is typed in the
browser, the domain name is analyzed in the Domain Name System. The Domain
Name System (DNS) handles all the public IP addresses and the corresponding
domain names of each and every website available in the web. When the DNS
finds the corresponding IP address, it returns the value to the browser and the
browser directs a request to the web server with the IP address. The web server
processes the request then sends the requested page back to the browser in HTML
format. Finally, the received page is then displayed to the user.
The lungs are responsible for breathing. It is a machine in our body that supplies
oxygen to the blood that transports it to all of the cells of the body for sustaining the
processes each of them are performing. It moves out CO2 out of the lungs, which is the
byproduct of the metabolic process performed by the cells. The lungs under normal
conditions of rest normally breathe in 500ml of air per inhalation. On the average, a
person takes 12 breathes per minute. This translates to 6L/min during one breathing
cycle.
possible to be able to perform his best exhalation through the PEF device. It is expressed
in terms of volumetric flow rate (Liters/min). PEF is ideally recorded by a device that
determines flow rate. It is a lung function exam usually taken at home to monitor the
patients response to medication and lung condition.
The typical peak flow meter device is a mechanical device that has
a spring or a thin metal plate that pushes the cursor as it receives the air
coming from the patients lungs. This cursor moves along the graduations.
On the average, these devices measure from 50 to 700 L/min. PEF devices
can be used at the doctors office or at home depending on the treatment
plan prescribed by the doctor. In most cases, is device is used at home for
lung condition monitoring. It comes with a PEF test chart that is used to
record the value, time and date of each PEF test. This chart is then brought
back to the doctor to be reviewed.
Chapter 4
Design Considerations
4.1 General System Block Diagram
The figure below is the general system block diagram:
This figure gives a description of the whole system, including the different
components it contains. The Peak Flow Meter System includes a flow sensing circuit that
is responsible for obtaining the Peak Expiratory Flow. The data is processed to the MCU
and it performs the necessary operations that translate the signal coming from the sensor
into a digital output that can be displayed to the LCD. The Bluetooth module is
responsible for sending the data to the computer. In the computer, a GUI handles the data
coming from the Bluetooth module. Two key GUIs would be needed for the whole
system; one would be the GUI for the computer receiving the data directly from the
device and the other for the computer handling the server. The third part would be the
Website. The website allows the doctor to view the test results obtained by the device
remotely. The website obtains the data from the server.
For our pressure sensor, the group used the MP3V5004DP Differential
pressure sensor. It has a pressure rating of 3.9KPa and has an output of 0.6 to 3V.
The output voltage of the sensor responds to variations in pressure difference
introduced in it. It has a wide range of applications, moslty revolving around
microcontroller and microprocessor based systems since its output pin can be
directly coupled to the ADC input of the MCU. The sensor also has compensation
for temperature variations within it operating temperature (0 to 85 degrees
celsius) . This is important since changes in temperature is directly proportional to
the pressure introduced to the sensor. For minimizing the effects of noise in the
silicon pressure sensor, an effective general approach would be a low pass filter.
The low pass filter with a cutoff frequency of 650 Hz is recommended for the
system. A 470 pF ceramic capacitor have been determined to give the best results
since it provides a decent output to the ADC of the microcontroller. From the
noise point of view, adequate decoupling is also important. A 1.0 mF ceramic
capacitor in parallel with a 0.01 mF ceramic capacitor works well for this
purpose. Also, with respect to noise, it is preferable to use a linear regulator rather
than a relatively noisier dc regulated power supply 5 volt output.
Recall that,
And,
We now substitute the values which are 27mm and 13.5mm, representing the D1,
and D2 respectively. In order to get the constant for the program of the MCU,
assume a pressure difference of 1PA (P1-P2 = 1) and substitute:
Equation. 4.1
Converting to L/min
x 0.97 (Cd)
A dispersion coefficient Cd is assumed to be .97 for smaller tubes as
provided for Venturi tube specifications.
Finally we get,
Equation 4.2
By relating the constant derived from equation 4.2, which is 10.77592772,
to the voltage level per pressure difference of the sensor, we can now output the
value of the volumetric flow rate. Using the equation from the sensors datasheet,
we can determine the corresponding pressure difference per voltage output. Let P
be the pressure difference,
Equation 4.3
But
Equation 4.4
Equation 4.5
Isolating P we get,
Equation 4.6
Equation 4.7
Dividing both sides by 0.2 to isolate P we get,
Equation 4.8
By using the value of P, solved from determining the flow sensing
circuits Vout and Vs, the value of Q can now be outputted.
Microcontroller because its features fits the system. The pin diagram of PIC16F877a is
show in the figure below.
4.3.1.1
Universal
Synchronous
Asynchronous
Receiver Transmitter
PIC16F877a has two serial I/O modules, one of which is the
USART module. The USART module of PIC16F877a can be configured
as a full-duplex asynchronous system or as a half-duplex synchronous
system that can communicate with peripheral devices such as a personal
computer.
system, the group incorporated the program in the C language and used MikroC
as the compiler. Below is a summary of different commands that can be used for
the system that can be found in the help of MikroC.
Command Name
Type
Lcd_Init
Void
Lcd_Cmd
Void
Usart_Init
Usart_Write
Void
Void
Unsigned
Description
Initializes LCD to a specific port with default
pin settings
Sends command to LCD. Predefined LCD
commands can be found in the MikroC Help.
Initializes USART module with the desired
baud rate.
Sends a data byte via USART module
A function used to test if data in the receive
buffer is ready for reading.
Initializes PICs internal Analog to Digital
Converter module to work with RC clock.
START
Is the flow
rate greater
than
previous
test?
NO
YES
Display result in LCD
and initialize Bluetooth
Is
Bluetooth
module
ready?
YES
Send Data to PC via
Bluetooth
END
NO
4.3.3.2 Bluetooth
The system involves the transmission of data wirelessly through
Bluetooth technology. The group decided to use the EGBT 9830
Bluetooth module due to its availability. The Bluetooth module allows the
microcontroller unit to send the data obtained from the test wirelessly
using the Bluetooth Serial Port Profile (SPP) and be connected directly to
the Universal Synchronous/Asynchronous Receiver/Transmitter (USART)
port of a microcontroller. The product manual provided by the supplier has
given the group the basic design and pin configuration to interface the
module to the MCU. The interfacing of the EGBT 9830 module to the
microcontroller unit is shown below:
START
Initialize
Bluetooth
Address: Send
13 bytes
Is the
address
valid?
NO
YES
Start Bluetooth
Core: Send 7
bytes
Is the
core
ready?
YES
END
NO
Type
InitializeConnection
Void
CloseConnection
Void
ReceiveMessages
Void
SetsUpdate
Void
Description
Initialize parameters to enable the user to
connect to the server
Disconnects the thread connection of the
user from the server.
Called for every time a new message is
received from the thread.
Updates the set number if changes occur
in the database.
FillData
Void
Registration
Void
Complete
Void
UpdateLog
Void
PatientData
Void
RegistrationDetails
Void
Append
Void
AppendRegister
Void
InitializeLog
Void
CloseLog
Void
WrongData
Void
PEFData
Void
Table 4.2 Variables and methods used in the lines of codes of the Chat Client
Type
Description
StatusChangedEventArgs
Class
RetrievePEF
RetrieveDoctors
RetrieveSets
UpdatePEF
OnStatusChanged
StartListening
KeepListening
Connection
Connection
CloseConnection
AcceptClient
Table 4.3 Variables and methods used in the lines of codes of the Chat Server
4.4.3 Database
Database
PatientData
PEFData
DoctorsComments
Description
4.5 Website
Figure 4.20 General Process Flow of the Website
DoctorsName
Login
User
View
Type
Description
Plot
Void
Submit
Void
4.5.1 Database
Database
PatientData
PEFData
DoctorsComments
DoctorsData
Description
4.6.2 Battery
The device is supplied by an 8.6V 2100mAh battery. It is to supply the
Microcontroller, Differential Pressure Sensor, and Bluetooth Module that requires
5V, 3.3V and another 3.3V respectively. When these components are connected
together, they draw 210mA of current. With the current rating of the battery, it
can power up the prototype sufficiently.
Chapter 5
Data and Results
5.1 System Testing
In the testing setup, the device was tested both in patients and in controlled
air. There are 4 patients with 20 tests each. In testing the device using controlled air,
the group used 4 different pressure readings. The transmission accuracy was likewise
tested by sending 90 varying data points in the Chat Client. Lastly, the theoretical
Bluetooth range for class 2 radios was likewise tested in order to find out the
maximum range at which the device is capable of transmitting data to the computer.
The following tests were done to meet the objectives of this thesis.
5.1.1.1.2
5.1.1.1.3
5.1.1.2.2
5.1.1.3 Procedures
1. Turn on the power supply for the Digital Peak Flow Meter Device.
2. Latch the first push button to turn on the microcontroller.
3. Have the patient hold the Venturi Tube at a horizontal position
perpendicular to him/her.
4. Have the patient stand firm or sit upright and inhale at his/her
maximum breathing capacity.
5. Have the patient empty out the air in his/her lungs in the Venturi
Tube.
6. Record the resulting flow rate as seen in the LCD.
7. Repeat steps 3-6 using the Mechanical Peak Flow Meter.
8. Repeat the procedures to 4 patients.
5.1.1.4.1
Trial
1
2
3
4
5
6
7
8
9
10
11
Patient 1
Flow Rate
(Mechanical) L/min
600
370
690
640
670
680
660
690
550
690
630
Flow Rate
(Digital) L/min
608
358
717
677
621
694
656
748
578
694
662
%difference
Accuracy
1.33333333
3.243243243
3.913043478
5.78125
7.313432836
2.058823529
0.606060606
8.405797101
5.0909090901
0.579710145
5.079365079
98.66667
96.75676
96.08696
94.21875
92.68657
97.94118
99.39394
91.5942
94.90909
99.42029
94.92063
12
13
14
15
16
17
18
19
20
650
630
670
690
620
660
650
690
670
652
623
728
753
675.8
720
703
755
690
0.307692308
1.111111111
8.656716418
9.130434783
9
9.090909091
8.153846154
9.420289855
2.985074627
99.69231
98.88889
91.34328
90.86957
91
90.90909
91.84615
90.57971
97.01493
5.1.1.4.2
Trial
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Patient 2
Flow Rate
(Mechanical) L/min
550
650
570
510
520
450
640
610
430
610
620
690
490
510
550
530
520
570
690
540
Flow Rate
(Digital) L/min
588
612.19
563
503
524.45
485
605
605
402
671
653
727
523.9
469.7
580
554
497
601
755
563
%difference
Accuracy
6.909090909
5.816923077
1.228070175
1.37254902
0.855769231
7.777777778
5.46875
0.819672131
6.511627907
10
5.322580645
5.362318841
6.918367347
7.901960784
5.454545455
4.528301887
4.423076923
5.438596491
1.951219512
4.259259259
93.09091
94.18308
98.77193
98.62745
99.14423
92.22222
94.53125
99.18033
93.48837
90
94.67742
94.63768
93.08163
92.09804
94.54545
95.4717
95.57692
94.5614
98.04878
95.74074
5.1.1.4.3
Trial
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Patient 3
Flow Rate
(Mechanical) L/min
400
370
370
490
410
370
390
386
440
440
360
380
360
460
440
410
390
360
370
390
Flow Rate
(Digital) L/min
396.23
403
341
537
433
402
394
370
400
423
380
412
328
502
423
444
417
385
383
424
%difference
Accuracy
0.9425
8.918918919
7.837837838
9.591836735
5.609756098
8.648648649
1.025641026
4.14507772
9.090909091
3.863636364
5.555555556
8.421052632
8.888888889
9.130434783
3.863636364
8.292682927
6.923076923
6.944444444
3.513513514
8.7179
99.0575
91.08108
92.16216
90.40816
94.39024
91.35135
98.97436
95.85492
90.90909
96.13636
94.44444
91.57895
91.11111
90.86957
96.13636
91.70732
93.07692
93.05556
96.48646
91.28205
5.1.1.4.4
Trial
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Patient 4
Flow Rate
(Mechanical) L/min
650
700
650
670
640
630
650
660
690
680
680
670
690
690
Flow Rate
(Digital) L/min
607
768
633
676
601
626
682
689
758
702
721
657
667
754
%difference
Accuracy
6.615384615
9.714285714
2.615384615
0.895522388
6.09375
0.634920635
4.923076923
4.393939394
9.855072464
3.235294118
6.029411765
1.940298507
3.333333333
9.275362319
93.38462
90.28571
97.38462
99.10448
93.90625
99.36508
95.07692
95.60606
90.14493
96.76471
93.97059
98.0597
96.66667
90.72464
680
670
690
660
670
660
15
16
17
18
19
20
644
697
747
644
720
636
5.294117646
4.029850746
8.260869565
2.424242424
7.462686567
3.636363636
94.70588
95.97015
91.73913
97.57576
92.53731
96.36364
5.1.2.2.2
5.1.2.3 Procedures
1. Turn on the power supply for the Digital Peak Flow Meter Device.
2. Latch the first push button to turn on the microcontroller.
3. Set the value of the pressurize container to an initial value.
4. Place the nozzle at the center of the Venturi Tubes entrance.
5. Record the flow rate as shown in the LCD.
6.
Pressure of 10 psi
Trial
Flow Rate (Mechanical) L/min Flow Rate (Digital) L/min
185
186
1
200
195
2
190
201.92
3
195
157.706
4
190
186.16
5
185
172.52
6
190
192.62
7
190
165.27
8
185
168.94
9
190
157
10
190
182.85
11
185
172.52
12
200
172.52
13
185
172.52
14
200
157.7
15
200
198.87
16
200
176.03
17
190
179.47
18
200
168.94
19
200
186.16
20
Average
192.5
177.5358
Table 5.5 PEF Results for Pressure of 10 psi
Theoretica l Experiment al
%difference
100
192.5 177.5358
Theoretica l
192.5
Accuracy 100% %difference 100% 7.7736104% 92.22639%
5.1.2.4.2
Trial
1
2
3
4
5
6
100 7.7736104%
Pressure of 20 psi
345
340
330
340
360
320
350
350
350
350
340
355
345
335
343.25
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Average
383
388
323
360
336
377
326
358
365
367
323
382
350
365
361.6
%difference
Theoretica l Experiment al
343.35 361.6
100 5.345957757%
Theoretica l
343.35
Accuracy 100% %difference 100% 5.345957757% 94.65404%
5.1.2.4.3
Trial
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
100
Pressure of 30 psi
460
500
470
441.5
18
19
20
Average
412
425
409
407.95
%difference
Theoretica l Experiment al
100
509 499.0635
Theoretica l
509
Accuracy 100% %difference 100% 1.952161% 98.04784%
5.1.2.4.4
100 1.952161%
Pressure of 40 psi
Trial
Flow Rate (Mechanical) L/min Flow Rate (Digital) L/min
500
461.82
1
550
457.83
2
530
464.46
3
530
513.26
4
540
522.71
5
500
485.08
6
550
513.26
7
450
504.85
8
460
512.07
9
540
492.59
10
550
445.64
11
520
502.42
12
500
474.88
13
440
503.64
14
500
492.59
15
570
530.84
16
450
569.75
17
460
481.28
18
490
534.29
19
550
518.01
20
509
499.0635
Average
Table 5.8 PEF Results for Pressure of 40 psi.
%difference
Theoretica l Experiment al
100
441.5 407.95
100 7.599093998%
Theoretica l
441.5
Accuracy 100% %difference 100% 7.599093998% 92.40091%
5.1.3.1.2
5.1.3.1.3
5.1.3.2 Materials
5.1.3.2.1
Laptop
5.1.3.2.2
Bluetooth
5.1.3.2.3
Chat Client
5.1.3.2.4
Chat Server
5.1.3.2.5
Router
5.1.3.3 Procedures
5.1.3.3.1
b. Click the Read Value Details and set it the same as the
value of the Bluetooths COM Port.
c. Make sure that the patient has already taken the test
before clicking the Read button.
d. Wait for at least 5 seconds after the test before clicking
the Read button.
e. Click the Update button to add the data in the users
database.
6. Logout the account after use to avoid wrong data from being
stored in the users database.
5.1.3.3.2
Website
7. The Zones are only available for plots with 90 data points.
5.1.3.4.1
Trial
1
2
3
4
5
6
7
8
9
10
11
12
Device
Reading
364.052
383.6865
295.408
276.4126
448.3833
533.1442
528.5347
471.0057
493.8306
332.4328
508.4783
514.4583
Received
Data
364.05
383.6865
295.40
276.1426
448.3833
533.1442
528.53
471.0057
493.8306
332.4328
508.4783
514.4583
Data
Plotted
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Data
Updated
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
543.3727
295.408
442.8924
291.237
332.4328
427.429
324.9888
451.1036
375.6302
313.4196
539.9847
264.8348
291.237
269.4149
490.1002
403.8815
562.1856
295.408
440.1213
337.9082
417.2906
317.3703
402.364
440.1213
415.822
435.9316
343.2963
391.5772
408.4001
405.3934
373.9981
409.8953
467.0931
482.5531
369.0586
276.1426
255.4283
299.5209
350.3515
428.8579
502.427
352.0932
370.7124
474.886
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
543.3727
295.408
442.8924
291.237
332.4328
427.429
324.9888
451.1036
375.6302
313.4
539.9847
264.8348
291.237
269.4149
490.1002
403.8815
562.18
295.408
440.1
337.9082
417.2906
317.3103
402.3
440.1213
415.822
435.9316
343.2963
391.5
408.4
405.3934
373.9981
409.89
467.09
482.55
369.0
276.1426
255
299.5209
350.3515
428.8579
502.427
352.0932
370.7
474.886
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
492.592
544.4978
350.3515
456.4956
449.74
456.4956
527.376
552.3057
481.2837
552.3057
386.8621
418.754
438.7292
460.4983
764.9926
346.841
409.8953
415.822
534.2904
601.0995
534.2904
468.401
529.6908
468.401
607.1749
305.5866
452.4576
522.7157
341.5097
478.7349
543.3727
341.5097
390.0118
447.0169
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
492.5
544.4
350.35
456.495
449.74
456.4956
527.376
552.3057
481.2837
552.3057
386.8621
418.754
438.7292
460.498
764.992
346.841
409.8953
415.822
534.2904
601.099
534.290
468.401
529.6908
468.401
607.1749
305.5866
452.45
522.715
341.5097
478.7349
543.37
341.5097
390.0118
447.016
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
5.1.3.4.2
Trial
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Website
Web
Accessed
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Login
Successful
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
View
Successful
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Plotting
Successful
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
5.1.4.2 Materials
5.1.4.2.1
Laptop
5.1.4.2.2
5.1.4.2.3
Bluetooth
5.1.4.2.4
Measuring Tape
5.1.4.3 Procedures
1. Using the footsteps method, count how many steps are covered for a
certain distance (e.g. 6 steps/ 3 meters). Perform the method for at
least 3 times then take the average. Use this as a reference to measure
distance when performing the test.
2. Power up the Peak Flow Meter Device.
3. Run the Bluetooth application in the Laptop.
4. See if the Bluetooth icon for the Peak Flow Meter Device is shown in
the screen as devices available within the area.
Footstep Method
Trial
Number of Steps
1
6
2
7
3
6
Average
6.33333 6
6steps
2steps / meter
3meters
Bluetooth Visibility
Bluetooth Visibility
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Transmission Successful
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
CHAPTER 6
Conclusion and Recommendation
6.1 Conclusion
In reference to the data and results obtained from the testing done on the device
and under the given time frame, the systems performance met the objectives made
during the early stages of the study. The group was able to use a flow sensing circuit that
measures Peak Expiratory Flow or PEF through the use of differential pressure
measurement. The flow measurements made with the venturi tube, together with the
differential pressure sensor, was able to match the mechanical peak flow meter used
commercially with an accuracy of 90%. The device was able to display the results done
during the tests through the LCD. It was also able to transmit the data wirelessly from the
device to the computer by adapting Bluetooth technology.
A critical part with the development of the thesis was the consultations made to
health care professionals regarding the lung function testing procedures and parameters.
Note that the testing of the PEF values was consulted with a doctor to get the results that
would satisfy the objectives of the study. This gave light to the areas of the system that
needed medical expertise, such as the GUI and Website Layout. For the venturi tube,
consultations made to a mechanical engineer proved to be vital since they gave the
proponents knowledge on the theories regarding flow measurement, specifically
differential pressure flow measurement.
6.2 Recommendation
For future directives, one aspect of the prototype that can be improved would be
its compatibility for WAN. Since the device works on Local Area Network, increasing
the network size can help increase the prototypes effectiveness as far as remote access is
concerned. Also, students looking into this research work can also publish the website,
making it available over the internet.
Another improvement that could be done would be to decrease the device size by
using SMD or Surface Mount Device for the circuit components that would be used in its
development. Decreasing the device dimensions would mean making it more portable.
This in turn could lead to the patients increased chances of taking the test whenever it is
scheduled since it can be brought with them with ease.
For the flow measurement block, one development would be providing a
symmetrical design for the Venturi Tube. This would make the flow measurement
bidirectional. Improvement in this block would add features to the device since it can
now measure other parameters used in spirometry. This would make it ready for
inhalation and not just exhalation.
References:
[1] Chii-Wann Lin, Di-Ho Wang, Hao-Chien Wang, Huey-Dong W. PROTOTYPE
DEVELOPMENT OF DIGITAL SPIROMETER
[2] K.A.Nagaraja, Nanda.S. Electronic Spirometer for the Assessment of Lungs
Functionality
[3] Moonie SA, Sterling DA, Figgs L, Castro M.Retrieved in June 17, 2009 from
website: http://www.ncbi.nlm.nih.gov/pubmed/16457681