Bachelor of Technology: Design and Prototyping of A Low-Cost Portable Ventilator
Bachelor of Technology: Design and Prototyping of A Low-Cost Portable Ventilator
Bachelor of Technology: Design and Prototyping of A Low-Cost Portable Ventilator
Ventilator
Bachelor of Technology
In
Rashmi Singh
Roll-113EI0307
1
Department of Electrical Engineering
National Institute of Technology, Rourkela
CERTIFICATE
Place-Rourkela
Date-
2
Acknowledgements
Rashmi Singh
B.Tech Electronics and Instrumentation
Department of Electronics and Communication Engineering
NIT Rourkela,Odisha
3
Abstract
The ventilator (also known as a respirator) is a pneumatic and electronics
system designed to monitor, assist, or control pulmonary ventilation, and
respiration intermittently or continuously. It can also be used to control
human body oxygen levels, for example during surgery where blood loss can
result in hypoxia, or lack of sufficient oxygen in the patient´s body; it is best to
have less human interaction.
This device is primarily used in intensive therapy to help improve the patients
breathing by regulating the flow of gas in the lungs.The ventilator is
constantly monitored and adjusted to maintain appropriate arterial pH. This
system requires a set of sensors for pressure, volume, and flow. The
information from the sensors modulates the operations in the MCU. This MCU
receives information from the airways, lungs, and chest wall through the
sensors, and decides how the ventilator pumps. The pneumatic system has
two air supplies that can be oxygen and air, and can come from a pressurized
tank or compressor. Both sources are regulated by two input valves to control
mixture composition, which comes from an air tank where the mixture is kept
at certain pressure limits. If the mixture composition is correct and is in the
right pressure range, the system sends this air to the patient to control
breathing. For this system has an input and output valves connected to lungs
simulator to control pressure in lungs and the respiratory frequency to
maintain patient safety.
4
Contents
Contents 1
List of Abbreviations
List of Figures
List of Tables
Chapter 1
Introduction
1.1Introduction...............................................................................................................................7
Chapter 2
System Background
2.1 System Background............................................................................................................11
Chapter 3
Hardware Design
3.1 System definition.................................................................................................................21
3.1.1 Microcontroller.................................................................................................................23
3.2 Schematics.............................................................................................................................35
Chapter 4
Conclusion
4.1 Conclusions and References.........................................................................................75
6
List of Abbreviations
Abbreviations Description
I:E Inspiratory to Expiratory time ratio
PEEP positive end expiratory pressure
PIP peak inspiratory pressure
MAP Mean Airway Pressure
ACV Assist-Control Ventilation
CMV Continuous mandatory ventilation
SIMV Synchronized Intermittent-
Mandatory Ventilation
PCV Pressure-Controlled Ventilation
PSV Pressure Support Ventilation
BVM Bag Valve Mask
INA Instrumentation Amplifier
MCU Microcontroller unit
CMRR Common mode rejection ratio
PWM Pulse Width Modulation
IDE Integrated development environment
USB Universal Serial Bus
ECG Electrocardiogram
DIP Dual in-line package
OEM Original Equipment Manufacturer
IC Integrated Circuit
NO Normally Open
NC Normally Closed
GUI Graphical User Interface
7
List of figures
List of Tables
3.1 Ventilator classification……………………………………………………………………14
4-1 MPS-2000 Specification…………………………………………………………………..18
8
Chapter 1
Introduction
1.1 Introduction
• TIME
-I - Time: It is the amount of time spent in inspiration(0.5 seconds).
- E - Time: It is the amount of time spent in expiration.
• Volume (200 to 2000 ml)
-It is the amount of tidal volume that a patient receives.
• Pressure (0 to 100 cm of H20)
-It is the measure of impedance to gas flow rate.
9
• Flow ( 4 to 100l/min)
-It is the measure of rate at which gas is delivered to the patient.
• PEEP = positive end expiratory pressure ( 3 to 4 cm of H2O)-It is the
pressure maintained in the airways at the end of exhalation, it keeps
Alveoli from collapsing.
• PIP = peak inspiratory pressure (10 to 14 cm of H20) It is the point of
maximal airway pressure.
• Delta P = It is the difference between PIP – PEEP
• MAP(mean airway pressure),it is the mean pressure applied during
positive-pressure mechanical ventilation.
• Minute Volume-Respiratory minute volume (or minute ventilation or
minute volume) is the volume of gas inhaled (inhaled minute volume) or
exhaled (exhaled minute volume) from a person's lungs per minute. It is
an important parameter in respiratory medicine due to its relationship
with blood carbon dioxide levels.
• Sensitivity-It is defined as the amount of effort in terms of cm of H2O
required to trigger the ventilator to get a breath by the patient.
• Compliance-It is the measurement of elasticity of lungs and chest wall.
10
are in synchronization with the spontaneous respiration. An increase in
amount of work of breathing and a tendency to reduce cardiac output are
among some of the disadvantages of SIMV which has the risk of prolonging the
time period of dependency on ventilator. The work of breathing can be
reduced through the addition of pressure support ventilation to the
spontaneous breaths
1.3.2.PRESSURE MODES
Pressure-Controlled Ventilation (PCV)
In comparison to ACV and SIMV, there is reduced risk of barotraumas in PCV.
This mode of ventilation does not allow the breathes initiated by the patient.
There is an exponential decrease in the inspiratory flow pattern which leads
to improvement in gas exchange and reduction of peak pressures. This mode
of ventilation is undesirable since it has no guarantee for volume at times of
changing lung mechanics
Pressure Support Ventilation (PSV)
This mode of ventilation allows the patient to determine inflation volume and
frequency of respiration but not pressure since this is pressure-controlled
therefore it can only be used to augment spontaneous breathing. Pressure
support can be used to overcome the resistance of ventilator tubing in another
cycle where 5 – 10 cm H20 are generally used during weaning, or to augment
spontaneous breathing. Specialized face masks are used to deliver PSV.
11
Chapter 2
12
2.2 System sensors
The signal output which indicates lung volume or pressure is a differential
signal, but this signal is not the signal which is measured directly from the
lungs. To get the desired signal, it is necessary to convert the pressure to
voltage. The sensor that is suitable for volume measurement is a differential
pressure sensor that accepts values from two sources of pressure
simultaneously. The output from the sensor is proportional to the difference
of the two sources.
Limits and set points — Values for limits and set points for all the controllable
variables and parameters, these values have some appropriate minimum and
maximum possible values which is to be known and displayed.
• Measure units —These parameters after getting modified are reflected after
each measurement is made and also denotes which units are used.
Conversions are included in the system and are valid for pressure.
• Mode of function — The operational mode of the system are cyclically
changed by these parameters. There are two control modes.
• pressure
• time
To use Lab VIEW to acquire different data's like analog and digital data's from
external devices and control different devices like Arduino Uno etc from Lab
VIEW we need to install LINX,NI VISA and Lab VIEW 2013.
Steps for loading LINX Firmware is as follows:-
1.Lab VIEW was launced.
2.Goto TOOLS>>MakersHub>>LINX>>Firmware Wizard
3. The Device Family was selected as Arduino Uno and then goto Next.
4.COM Port was selected as COM21>>Next
13
2.4 Air and oxygen blender and mix control
The MCU makes use of control signals to control the valves through a driver
circuit. Previously ventilator designs were mostly dependant on mechanical
blenders to deliver mixture of gases to a single flow control valve. With the
availability of high-quality flow sensors and processing capabilities, accurate
mixing becomes possible by using separate flow valves for air and oxygen. The
total flow control command signals between the oxygen and air valve is
divided ratio metrically since air contains about 21 percent oxygen.
A medical ventilator can support any of the above five modes.This reference
design supports only the following modes, but algorithms for different modes
of operation can also be done:
14
Chapter 3
Hardware Design
POWER SUPPLY
12 V SUPPLY REGULATOR 5V
ARDUINO UNO
SOLENOID AIR COMPRESSOR AMBU BAG
VALVE @ 12 V
15
3.1.1 Microcontroller
One of the most critical modules in designing a ventilator is signal treatment
and measuring because the ventilator acts according to the information and
data acquired from the sensors and transducers. If this data is not reliable, the
ventilator can perform incorrect operations that can pose a risk on the
patient’s health. It is important to select the appropriate and reliable MCU and
sensors and transducers for accurate and precise performance of
instrumentation applications. The microcontroller used here is ARDUINO
UNO.
ARDUINO UNO
Arduino/Genuino Uno is a microcontroller board which is based on the
ATmega328P. It consists of 14 digital input/output pins out of which 6 can be
used as PWM outputs, there are 6 analog inputs, a 16 MHz quartz crystal, a
USB connection, a power jack, an ICSP header and a reset button. It fulfils
every requirement which is needed to support the microcontroller.To get it
started it is simply required to connect it to a computer or power it using
AC/DC adapter."Uno" means one in Italian and it marks the release of Arduino
Software (IDE) 1.0. Arduino is a single-board microcontroller which makes
the application more accessible which are interactive objects and its
surroundings. The hardware features with an open-source hardware board
designed around an 8-bit Atmel AVR Microcontroller or a 32-bit Atmel ARM.
16
3.1.2 Pressure sensors
It is important to have the correct sensors to accurately measure the control
variables in the ventilator system .The following pressure sensors are used:
DESCRIPTION
The MPS-2000 features silicon pressure sensors in 6-pin dual in-line
packages. All parts in these series are uncompensated high-performance die
mounted on a substrate with a plastic cap. Pins are designed for through-
board assembly. The MPS-2000 is ideal for applications requiring low
hysteresis, high reliability and stability. By applying a constant voltage
excitation, the MPS-2000 pressure sensor produces an output voltage that is
linearly proportional to the input pressure. The user can also provide MPS-
2000 followed by a signal conditioning circuitry for amplification of the
output signal or to maximize OEM value added. The MPS-2000 is compatible
with most noncorrosive gases and dry air.
(a) (b)
17
KEY FEATURES
APPLICATIONS
Blood Pressure Meter
Digital Pressure Gauges
Environmental Monitoring
Consumer & Sports
Medical Instrumentation & Monitoring
Disposable Blood Pressure
Easy to use Gain set with one external resistor (Gain range 1 to 10,000)
Transducer interface
(a) (b)
20
LM 324
LM324 is a 14 pin IC which consists of four independent operational
amplifiers constituted in a single package. Op-amps are defined as high gain
voltage amplifier with differential input and a single-ended output. The output
voltage is higher than the voltage difference between input terminals of an op-
amp.The requirement of dual supply is eliminated because this IC is powered
by single mode supply. They find applications as amplifiers, comparators,
oscillators, rectifiers etc.
21
or normally closed. It is similar to relays and motors which are a form of an
inductive load. They are of two types Normally Open or Normally Closed.
Normally refers to the situation when there is no current in the solenoid. If
some water is forcefully applied in a NC (Normally Closed) solenoid valve,the
flow of water is blocked. On providing power to the magnet of the solenoid
with some amount of current or voltage, the valve will get opened and there
will be a flow of water. For NO (Normally Open) valves the operation is exactly
the opposite.
22
Figure 4.1.7 Ambu Bag
Standard Components
Mask
The BVM contains an air chamber which is flexible and is attached to a face
mask through a shutter valve. When the face mask is properly applied the
device forces air through into the patient's lungs when the "bag" is squeezed,
and when the bag is released, it gets self inflated from the other end, thereby
taking in either ambient air or oxygen flow which is supplied by a regulated
cylinder thereby allowing lungs of the patient to deflate to changes in the
external temperature.
Bag and Valve
A bag-valve mask can be used without being attached to an oxygen tank to
provide "room air" (21% oxygen) to the patient, however manual resuscitator
devices also can be connected to a separate bag reservoir which can be filled
with pure oxygen from a compressed oxygen source – this can increase the
amount of oxygen delivered to the patient to nearly 100%.
Bag-valve masks come in different sizes to fit infants, children, and adults. The
face mask size may be independent of the bag size.Most types of the device are
disposable and therefore single use, while others are designed to be cleaned
and reused.
Method of Operation
Manual resuscitators cause the gas inside the inflatable bag portion to be
force-fed to the patient via a one-way valve when compressed by the rescuer;
the gas is then ideally delivered through a mask and into the patient's trachea,
bronchus and into the lungs. In order to be effective, a bag valve mask must
deliver between 500 and 800 millilitres of air to a normal male adult patient's
lungs, but if supplemental oxygen is provided 400 ml may still be
23
adequate.Squeezing the bag once every 5 to 6 seconds for an adult or once
every 3 seconds for an infant or child provides an adequate respiratory
rate (10–12 respirations per minute in an adult and 20 per minute in a child
or infant)
Professional rescuers are taught to ensure that the mask portion of the BVM is
properly sealed around the patient's face (that is, to ensure proper "mask
seal"); otherwise, pressure needed to force-inflate the lungs is released to the
environment. This is difficult when a single rescuer attempts to maintain a
face mask seal with one hand while squeezing the bag with other. Therefore,
common protocol uses two rescuers: one rescuer to hold the mask to the
patient's face with both hands and focus entirely on maintaining a leak-proof
mask seal, while the other rescuer squeezes the bag and focuses on breath
(or tidal volume) and timing
3.2 Schematics
In this section electrical connections are presented by schematic blocks and
their respective operations using LabVIEW 2013 as GUI.
3.2.1 Controlling solenoid valve with Arduino
Hardware Requirements
1.Solenoid valve : 12V / 0.5 A NC valves. They are working fine on domestic
pressure.
2.Adapters
3.Power source : A 12V power supply for this project to power both the
Arduino and the solenoid
4.Transistor : BC 139
5.Resistor : A simple 1 kilo ohm resistor
6.Diode : A normal IN4007 was used.
7.Wires : To connect everything
8.Breadboard : To support everything
Software :LabVIEW 2013
24
Figure 3.2.1 Schematic of Controlling solenoid valve with Arduino
Steps required for Controlling solenoid valve with Arduino
25
voltages caused when a magnetic coil abruptly loses power if the snubber
diode is not placed properly.
The snubber is always placed from the negative side of the coil to the positive
side. It is ensured that the side with the White stripe is connected to
power/positive side of the solenoid.
Step 5 – Power to the Solenoid
Now when the connections to the diode is rightly done,the solenoid is
powered by 12 V dc supply. The solenoid gets constant power because low
side switching is used to turn on and off this solenoid.
Step 7 – Base Resistor
A base resistor is a resistor that is placed on the base pin of the transistor.
This resistor limits the current going to the base of the transistor If there is no
resistor placed on the base side this will consequently lead to the blowing up
of the transistor. Here we have used 1K resistor.
Step 8 – Connecting To The Arduino
Now connecting the digital pins of the Arduino to the driver circuit is done
26
Figure 3.2.2The complete hardware schematic for controlling solenoid
valve with arduino.
• The air from the compressor is used to fill up an Ambu Bag which provides
positive pressure to a patient who is not breathing or who is breathing
inadequately.
• Mounting pressure sensor on the reservoir bag of the Ambu bag and
checking the pressure inside it and display the value of pressure on a GUI
using LabVIEW.
27
IMPLEMENTATION AND RESULTS
Air from compressor was given to the Ambu bag,through a solenoid valve.The
on/off solenoid valve was operated according to the control signals given by
Arduino from its digital pin 2.The inspiratory time and expiratory time was
set on a GUI in LabVIEW.On setting the inspiratory time as 2 seconds the
solenoid valve was on for 2 seconds and air from compressor was used to fill
the Ambu bag through the valve and after a time lapse of 2 seconds the valve
gets closed for an expiratory of 2 seconds.The cycle then repeats itself.
28
Steps for implementing LabVIEW Block Diagram and Front Panel
Step 2.On right clicking on the block diagram window,structures palette was
selected and while loop was opened.
Step 3.In the similar fashion from the Structures palette flat sequence was
selected.It is put inside the while loop.
Step 4.On right clicking again on the block diagram window,Maker Hub was
selected.Under this Linx palette,open and close Linx file were selected.
Step5.Open Linx vi was kept outside of While loop and its Baud rate was
selected as 9600 baud per second and the Serial port was selected as
Com21(I/O).
Step 6.Again on right clicking on the block diagram window,Maker Hub was
selected.Under this,Linx palette was opened,Peripherals palette was
selected,under this palette digital write vi was selected and opened.
Step 7.The Digital Write vi was kept inside one of the flat sequence frame.The
DO channel was selected as pin2 in the front panel.The output value of digital
write vi was given a Boolean value as TRUE indicating the valve connected to
pin 2 remains open first.
Step 8.On right clicking on the block diagram window,under the Timing
Palette,Wait for ms vi was selected.It was provided with a value of 2000ms in
the front panel.
29
Figure 3.2.5.Hardware Implementation of Time-Cycled Ventilation
30
Step 5: Close expiratory valve.
Pressure from compressor was given to the pressure sensor,a threshold limit
was set as 2.5psi(for testing purpose),when the pressure reached 2.5 psi the
expiratory valve was opened and inspiratory valve was closed,after the
elapsed expiratory time,the inspiratory valve was opened and expiratory
valve was closed.
The pressure sensor used was MPS-2000.The output from the pressure sensor
was fir amplified using an instrumentation amplifier(LM 324) with gain =
𝑅1 𝑅3
(1+2* ) , the 10K potentiometer is varied such that the gain is linear and for
𝑅𝑔 𝑅2
2.5 psi pressure we get approximately 2.5 volts output.This output is then
given to the analog pin of the arduino for further processing and comparing it
with the threshold limit(pressure)set by the user.When the pressure reaches
above 2.5 psi,the expiratory valve opens and inspiratory valve closes.
R1=22kΏ
R2=R3=10KΏ
Rgain =10K POTENTIOMETER
31
A GUI was implemented in LabVIEW to control the solenoid valves(here taken
LEDs for testing purpose) according to the above mentioned steps to
implement pressure cycled ventilation.
32
Steps for implementing LabVIEW Block Diagram and Front Panel
Step 2.On right clicking on the block diagram window,structures palette was
selected and while loop was opened.
Step 3.In the similar fashion from the Structures palette flat sequence was
selected.It is put inside the while loop.
Step 4.On right clicking again on the block diagram window,Maker Hub was
selected.Under this Linx palette,open and close Linx file were selected.
Step5.Open Linx vi was kept outside of While loop and its Baud rate was
selected as 9600 baud per second and the Serial port was selected as
Com21(I/O).
Step 6.Again on right clicking on the block diagram window,Maker Hub was
selected.Under this,Linx palette was opened,Peripherals palette was
selected,under this palette digital write vi was selected and opened.
Step 7.The Digital Write vi was kept inside one of the flat sequence frame.The
DO channel was selected as pin2 and pin 4 in the front panel.The output value
of one of the digital write vi was given a Boolean value as TRUE indicating the
valve connected to pin 2 remains open first and the output value of the other
digital write vi was given a Boolean value as FALSE indicating the valve
connected to pin 4 remains closed.
Step 8.On right clicking on the block diagram window,under the Timing
Palette,Wait for ms vi was selected.It was provided with a value of 1000ms in
the front panel.
33
Step10.The output voltage from Analog Read vi was then compared with the
preset pressure set as 2.5 psi.Case structures vi from the Structures palette
was used in this case.
Step 11. If the value of voltage output was greater than or equal to 2.5
psi,then the conditions under true were being executed.Under the TRUE
condition of the case structure vi, Digital Write vi was selected. The output
value of one of the digital write vi(pin 2) was given a Boolean value as FALSE
indicating the valve connected to pin 2 remains closed and the output value of
the other digital write vi was given a Boolean value as TRUE indicating the
valve connected to pin 4 opens for expiration to take place.
CIRCUIT DESIGN
34
The pressure sensor used was MPS-2000.The output from the pressure sensor
was seen to vary from 0.6millivolts to 0.9 miilivolts.The signal from pressu re
sensor was amplified using an instrumentation amplifier AD620 with gain as
49.4KΏ
− 1, the 1K potentiometer or a 100 Ώ resistor is varied such that the
𝑅𝑔
gain is set as 495.This output is then given to the analog pin of the arduino for
further processing and comparing it with the threshold limit(pressure)set by
the user.When the pressure reaches above 0.02 psi,the expiratory valve opens
and inspiratory valve closes.Proper calibration was done since the output
from instrumentation amplifier is voltage and is then being compared with
preset pressure which is in psi.
35
Figure 3.2.10.AD 620 Instrumentation Amplifier and Pressure Sensor
WORK DONE
• The air from the compressor is used to fill up an Ambu Bag which provides
positive pressure to a patient who is not breathing or who is breathing
inadequately.
• Mounting pressure sensor on the reservoir bag of the Ambu bag and
checking the pressure inside it and display the value of pressure on a GUI
using LabVIEW.
Air from compressor was given to the Ambu bag through a solenoid valve.The
on/off solenoid was operated according to the control signals given by
arduino from its digital pin 2.The inspiratory time and expiratory time and
pressure was set on a GUI in LabVIEW.On setting the inspiratory time as 3
seconds the solenoid valve was on for 3 seconds and air from compressor was
used to fill the Ambu bag through the valve and after a pressure threshold was
36
reached ,the valve gets closed for an expiratory time of 3 secondsUntil the
preset pressure is reached the valve was kept on.The cycle then repeats itself.
Step 2.On right clicking on the block diagram window,structures palette was
selected and while loop was opened.
Step 3.In the similar fashion from the Structures palette flat sequence was
selected.It is put inside the while loop.
37
Step 4.On right clicking again on the block diagram window,Maker Hub was
selected.Under this Linx palette,open and close Linx file were selected.
Step5.Open Linx vi was kept outside of While loop and its Baud rate was
selected as 9600 baud per second and the Serial port was selected as
Com21(I/O).
Step 6.Again on right clicking on the block diagram window,Maker Hub was
selected.Under this,Linx palette was opened,Peripherals palette was
selected,under this palette digital write vi was selected and opened.
Step 7.The Digital Write vi was kept inside one of the flat sequence frame.The
DO channel was selected as pin2 in the front panel.The output value of the
digital write vi was given a Boolean value as TRUE indicating the valve
connected to pin 2 remains open first. In this Analog Read vi from the Linx
palette was also selected and Analog channel was selected as A0.
Step 8.The output voltage from Analog Read vi was calibrated and then
compared with the preset pressure set as 0.02 psi.Case structures vi from the
Structures palette was used in this case.When the preset pressure was
reached inside Ambu bag the TRUE case was implemented
Step 9.Under the TRUE case a flat sequence vi was selected which had two
frames,in both the frames Digital Write vi was selected.When the preset
pressure was reached the output value of digital write pin connected to pin 2
was made to turn off by initializing it with a FALSE Boolean value.
Step 10.On right clicking on the block diagram window,under the Timing
Palette,Wait for ms vi was selected.It was provided with a value of 2000 ms in
the front panel.After the time was elaspsed,the control switched to next
sequence where the valve was turned on by initializing TRUE boolean value to
digital write pin.
38
Figure 3.2.13.Hardware Implementation of Pressure-Cycled Ventilation
39
CHAPTER 4
CONCLUSION
Thus a Low Cost Portable Ventilator was developed which operates in two
modes or two cycling mechanism namely Time-cycled and pressure
cycled.The Ventilator thus designed is low cost because it operates without
the use of sophisticated electronic components and heavy electronic systems
required in ICUs.Ventilators are designed very carefully keeping in mind that
no harm is caused to the patient and his life is not endangered.
The ventilator modes so designed is observed to operate in any environment
without getting affected by the environmental disturbances.The electronics
system designed provides accurate and precise values of various parameters
required during ventilation.The values of the parameters set by the user and
patient is taken by the system and runs precisely according to the set values.
In the absence or failure of power there can also be a provision of manual
respiration through Ambu bag if required. Some electronics systems are
designed to be equipped with air compressors and backup batteries to
provide ventilation during abnormal cases like defective gas supplies and
power failure etc.
40
References
[1]. Abdul Mohsen Al Husseini, Heon Ju Lee,” Design and Prototyping of a
Low-cost Portable Mechanical Ventilator”,Massachusetts Institute of
Technology,Department of Mechanical Engineering,Boston University, School
of Medicine, Proceedings of the 2010 Design of Medical Devices Conference
DMD2010 April 13-15, 2010, Minneapolis, MN, USA.
[2]Timothy J. Bristle, CRNA, MSN Shawn Collins, CRNA, DNP, PhD,” Anesthesia
and Critical Care Ventilator Modes: Past, Present, and Future”, AANA
Journal,Vol. 82, Page No. 5, ,October 2014.
[4] Mike Fogarty, Joseph Orr, Dwayne Westenskow, Lara Brewer, Derek
Sakata ,“Electric Blower Based Portable Ventilator”,
41
42