Professional Documents
Culture Documents
Thesis Rev 3
Thesis Rev 3
Thesis Rev 3
MANAGEMENT SYSTEM
Authors
Supervisor
Authors
Thesis Supervisor:
Corona virus is a fatal disease so it is difficult for the medication staff to visit the patient
consecutively. We designed a device that can monitor patient’s basic health parameter
such as temperature of body, heart rate, oxygen level in blood. It also have a pill
dispenser which dispense pill after checking patient’s health. Many medical errors are
due to the wrong medications given to the patients as nurses have to sort a large number
of pills daily. This project consists of a smart medical box for automatic pill dispensing
and health monitoring that allows the right medications at the right time. It will help
introverted patients to take their medicines themselves without interacting with the nurse.
It eliminates the need to sort pills into each box slot every week. So the manual filling of
pills will no more a problem. It is a microcontroller- based smart medical box. The box
has an LED display which has an interactive user interface. In this device, data of patients
can be stored including their age, name, and biometrics. Their medicines are scheduled
along with the proper time and medicine name. This programmable device is a smart,
portable, wireless, and embedded hardware device. It also contains basic functionalities
for the health monitoring system such as heart rate, oxygen level, and temperature of the
patient. The main reason behind this project is to help and support nurses who have to
manually give medicines to the patients, elder people, and introverted patients who need
assistance, and as a result, an error is possible. This box is of great use for elderly people
and illiterate patients who are unable to read the name of medicines and forget them to
take on time
i
UNDERTAKING
I certify that research work titled “enter title of your research proposal here” is my own
work. The work has not been presented elsewhere for assessment. Where material has
been used from other sources it has been properly acknowledged / referred.
Signature of Student
UET-18F-BSc-EE-APCOMS-47
Signature of Student
UET-18F-BSc-EE-APCOMS-35
Signature of Student
UET-18F-BSc-EE-APCOMS-07
ii
ACKNOWLEDGEMENTS
First and foremost, we would like to thank our project supervisor, Engr. Kiran
Khurshid. Without her assistance, and dedicated involvement throughout the
process, the completion of this project could not have been possible. We would
like to thank you for your guidance, support, and understanding. You have guided
us through your experience and that helped us a lot in our project. We are also
grateful to all the teachers who have taught us throughout the whole degree. I am
extremely thankful and indebted to all of them for sharing their expertise,
valuable guidance, knowledge, and encouragement. We take this opportunity to
express my gratitude to all of the department faculty members for their help and
support.
.
iii
TABLE OF CONTENTS
Acknowledgement ..............................................................................................iii
List of Tables......................................................................................................vii
Abbreviations ....................................................................................................viii
iv
Chapter Ⅳ: Design Procedure……………………………………... .............. 15
Conclusion……………………………………... ............................................. 33
v
LIST OF FIGURES
Number Page
vi
LIST OF TABLES
Number Page
vii
Abbreviations
RPI: Raspberry Pi
TRX: Transmission
RDX: Receive
viii
ix
CHAPTER 1
Introduction
1.1 Background
The health care system in Pakistan is seen to be more neglected than anything else. There is much
need for improving the basic health care structure in Pakistan by taking adequate steps.
Pakistan’s health care system is still in progress and is focusing on making improvements in the
delivery of health. Pakistan has brought out many reforms in this regard. The health care system
in Pakistan is still not that much efficient as all these reforms are limited. The main reason is the
poor governance, unequal resources, lack of access to medical health, and poor quality.
that is used in various projects to monitor health of patients. This intelligently monitors health of
patients and provide complete information to doctor who can monitor all parameters while using
1.1.1 Introduction
Corona virus is a fatal disease, it is very difficult for the medication staff to visit the patient
consecutively. There is a chance of virus spread in paramedic staff. So, as per the need of time is
to design a machine that will checks patient basic health monitoring such as:
• Temperature
1
It automatically checks the above mentioned conditions and dispenses a pill at the allocated time
as assigned by doctor in a database. Whole system is linked with a database where all the data of
The key objective of our system design is to provide easy means for monitoring patients in
hospital or even in homes. We have designed a system which facilitates the disable and old age
people as well.
We want to design a system that can monitor patients overall health parameters.
Many patients can be monitored by providing easy access tho the doctors.
1.3 Methodology
Pill dispenser
A pill dispenser with three medicine compartments which dispenses a pill by basic motor driving
phenomena. Motor drivers are interfaced with raspberry pi. Patient can set a medicine schedule
through graphical user interface by simply registration his thumb impression and entering basic
information.
On the other hand device also checks basic health parameters through sensors interfaced with
2
Data Base
Device is linked with database where the data collected through sensors and patient’s information
Features a touch screen that clearly display a variety of patient vitals to make it
3
CHAPTER 2
Literature Review
In this section different research papers that are related to COVID Patient Health Monitoring and
Management System are discussed. We have divided our paper work per person. Each person
individually read and understood the paper work. This enhanced the knowledge of each person
about the project. In literature review we read different research papers related to Basic Health
In work by Sommaya and Sidharth monitoring and management of patient is explained in detail
[1]. This paper is about the management of patient. The development of system has been
primarily driven by the needs of large corporations that stand to benefit greatly from the foresight
and predictability.
Today more than 100 countries are inked into exchange of data, news and opinions through
Internet. It means this is a new technology that is under-develop. Zach Supalla, CEO of Particle,
a start-up that’s making it easier to build internet connected hardware (Internet of Things). He has
risen more than $ 1MM Kickstarter and has been featured on CNN and in WSJ, TechCrunch,
Fast Company, Forbes, Fortune, Mashable, and more. Particle was listed as one of Fast
Company’s top 10 most innovative Companies of 2015 in the Internet of Things. IoT is now
used in many health care services to timely develop a link between a patient and a doctor.
4
2.2: Hardware Components
In project different components are used. The working of components is explained in details
below.
2.2.1: Raspberry Pi
The Raspberry Pi is a series of small single board computers developed in the United Kingdom
5
Fig 2.1b: Raspberry pi serial ports
These pins are a physical interface between the Pi and the outside world. Seventeen of the 26 pins
are GPIO pins, the other are power and ground pins.
Several generation of raspberry pi have been released. The first generation (Raspberry Pi 1 model
B) was released in February 2012. It was followed by a simpler and inexpensive model. Model
A. In 2014, the foundation released a board with an improved design in Raspberry Pi 1 Model
Later on Raspberry Pi Zero with smaller size and reduced input/output and GPIO capabilities was
released in November 2015. The Raspberry pi 2 which added more RAM was released in
February 2015. Raspberry Pi 3 Model B released in February 2016 is bundled with on-board Wi-
All models feature a Broadcom system on a chip (Soc), which includes an RM compatible central
processing unit (CPU) and an op-chip graphics processing unit (GPU, a video Core 4).
CPU speed to 1GB RAMS. Secure Digital (SD) cards are used to store the operating system and
program memory. Most board has between one and four USB slots. HDMI and composite video
Date
Chip(SoC)
4.0
Ouput
Ouput
GPIO Pins 40 40 40 40
7
2.2.2: Heart Beat Sensor
Heart beat sensor is designed to give digital output of heart beat when a finger is paced on it.
When the heart beat detector is working, the beat LED flashes in unison with each heartbeat.
This digital output can be connected to raspberry pi through ADC convertor to measure the beats
per minute (BPM) rate. It works on the principle of light modulation by blood flow through
The sensor consists of a super bright green LED and light detector. The Led needs to be super
bright as the maximum light must pass speeding finger and detected by detector. Now, when the
heart pumps a pulse of blood through the blood vessels, the finger becomes slightly more opaque
and so less blight reached the detector. With each heart pulse the detector signal varies. This
variation is converted into electrical pulse. The output signal is also indicated by a LED which
8
Fig 2.2.2b: Working of Heart Beat Sensor
2.2.3: Temperature Sensor
sensors. For example, if you hold an IR sensor in front of your body without establishing any
contact, the sensor detects the temperature of the body based on the merit of its radiation.
9
2.2.3.1: IR sensor GT-906
This is on-contact infrared thermometer for used with Raspberry pi that can communicate with it
through its 12C interface. This sensor comes with a breakout board with all of the components
Parameter Condition
Power Supply 5V
Model GY -906
Sensor MLX90614
Weight 3g
10
Some other specifications of GY -906 are as:
Temperature sensing element for residential, commercial and industrial building air
Factory calibrated in wide temperature range: -40 to +125’C for sensor temperature and
The MCP3008 is a low cost 8-chnnel 10-bit analog to digital converter. With 8 channels you can
read quite a few analog signals from the Pi. This chip is a great if you just need to read simple
analog signals, like from heart beat sensor, temperature sensor or light sensor. The MCP3008
connects to the Raspberry pi using a SPI serial connection. You can use either the hardware SPI
bus, or ny four GPIO pins and software SPI to talk to the MCP3008.
Methodology
3.1 Methodology
Our project “COVID Patient Health Monitoring and Management System” is mostly based on
the electronic system. The equipment used in the machine is easy to use and is user-friendly
so that doctors, nurses, and patients can easily operate them. We need to be clear about the
problem statement and objectives we want to achieve in our project before defining the
During the COVID environment it is difficult for paramedic staff to visit every patient
consecutively to record their health parameters and for medicine dosage so we develop a
device which can make exposure of nursing staff and patients less. And also Mismanagement
in medication for example skipping or over dosage can escalate health issues and can have
prescribed time.
3.3 Objective
Medical technology is enhancing day by day and as a result, new medicines have been
introduced with the appearance of terrible diseases. Nowadays, one in every two-person is
taking medicines. If we suppose that there are a lot of medicines taken by a single patient,
then it is very difficult to remember each medicine and take them at a particular time. In
today’s world, everyone is getting busier that they forget to take their prescribed medicines
12
on time. Moreover, it is very useful for introverted patients to become independent and less
interact with people. It will also assist the job of nurses in the hospitals and can take off the
burden of giving medicines to several patients individually. By using our smart medical box,
we can overcome the above situations. The main aim of our project is to produce a device
that is user-friendly, light in weight, and safer to use. The Following are the main objectives
of the smart medical box for pill dispensing and health monitoring system;
1. It will help doctors by making them sure that the patient has taken the medicine on time or
not.
3. It will help patients to take the right medicines at the allocated time.
Taking medications on time will help in the faster recovery of the patient achieve the
above objectives, we have devised the following methodology for our project. Our
project “Design of Smart Medical Box for Automatic Pill Dispensing and Health
Monitoring System” is mostly based on the electronic system. The equipment used in the
machine is easy to use and is user-friendly so that doctors, nurses, and patients can easily
operate them. So before starting our project, we first need to clear the methodology we
will be going to follow. We need to clear the mechanical design of the project. Moreover,
13
we need to be sure about the main tasks of our project. , how we are going to dispense
the pill, and which method will be more feasible than the other.
There will be three stepper motors for operating the three compartments containing the
There will be an Ultrasonic sensor for detecting the hand of the patients. When the patient’s
hand is detected, it will then operate the stepper motors that will in turn dispense the
respective medicine from the compartment.
Use of the following sensors for the basic health monitoring of the patient. Heart rate sensor,
oxygen sensor, temperature sensor, and a biometric sensor for their respective functionalities
in the system.
There is a database in the system, where the patient’s data related to medicines will be stored.
14
CHAPTER 4
Design Procedure
So after going through all the models and mechanisms, we have selected the below de- sign
for our project. This design is still not 100% feasible but it has minimum limitations and can
fulfill the maximum goals of our project. So, we have started our project with the following
mechanism.
15
4.3 Rotating Disk Dispenser Design
After going through many different research papers, dispenser designs, and brainstorming, we
have decided to go forward with a rotating disk dispenser design. In this design, our two main
problems will be solved. One main problem is the dispensing of one pill at a time and the
second one is the dispensing of pills consisting of different sizes. So below are the solution to
1. In this design, we are going to utilize a disk with a hole big enough to catch a
single pill only. The size of the hole will be exactly equal to the size of the pill. So
by this method, the problem of only one pill dispensing at a time will be solved.
2. Now to dispense pills of varying sizes, we thought to incorporate disks that will be
interchangeable with holes of varying lengths. The size of the holes will be
according to the standardized pill sizes. So now we can dispense different sizes of
pills from the system.
16
Figure 4.3b: Rotating Disk Dispenser Design
4.4 Design Details
The above-mentioned issues were taken into consideration before the start of our design process.
So now we have selected the design of ‘Rotating Disk Dispenser Design’. This design will not
only dispense one pill at a time but also we can dispense different pills of varying sizes using this
design. Our machine will store three-time medications for three different people. It will have a
biometric verification of the patients so that one patient can take only his medicines. Our project
contains basic health and monitoring system which includes different sensors such as an oxygen
sensor, a biometric sensor, a temperature sensor, and a heart rate sensor for the specific functions.
All this data will be recorded in the data cell. The microcontroller interfaces will contain an
1. Hardware
2. Software
17
4.5 Software:
This sensor is usually used to measure the distance and detect the obstacles in the path. It emits
sound waves at a frequency too high for humans to hear. When the waves reflect, the sensor
gives the distance measure concerning time. We will be using this sensor for the detection of
18
4.5.2 Heartrate sensor
The heart rate sensor is to measure the blood pressure of the user. What’s a better way to check
one’s physical condition than checking his blood pressure? We will use an IR sensor to
monitor heart rate. This sensor is used to detect the heartbeat by placing the fingertip on the
receiver and emitter simultaneously. In this project, “Max30102” is used as a Heart rate and
SPO2 Sensor. This sensor is both an integrated pulse oximeter and monitors heart rate. It
contains optical elements, internal LEDs, and photodetectors. It has low-noise electronics with
ambient light rejection. The MAX30102 is easy in the design process for all mobiles and
wearable devices. Its Interface Voltage is 3.3V. We have selected this sensor because it will be
compatible with Raspberry Pi. The Interface Protocol for this sensor is I2C Protocol. The GPIO
2(SDA) and GPIO3 (SCL) are I2C protocol pins on Raspberry Pi so they can easily be interfaced
The temperature sensor is used to detect the temperature of the human body or its sur- rounding’s.
The basic principle of the temperature sensor is to measure the temperature through the thermal
diodes. Thermal diodes change the resistance and then this variation is used to manipulate the
temperature. We use the temperature sensor DS18B20 for measuring the temperature of the body.
19
The DS18B20 is a digital thermometer that provides up to 9-bit to 12-bit Celsius temperature
measurements. It communicates over a 1-twine bus this means that that it calls for most effective
one records line and floor for verbal exchange with the microprocessor. So the interface protocol
for DS18B20 is one twine. It also can power strength without delay from the records line and this
strength is known as parasitic strength. The parasitic strength removes the want for any outside
strength supply. The Interface Voltage is 3.3V. The GPIO 4 Pin is one wire protocol pin. So this
In the biometric sensor, the transducer changes the biometric signal of the person into an
electrical signal. The biometric data of a person includes fingerprint data, voice, iris, and face. In
this project, we have used the Biometric sensor R307. This Fingerprint sensor processing
includes number one functions, fingerprint enrollment, and fingerprint matching. The matching
can be 1:1 or 1:N. For enrolling, the man or woman needs to enter the finger instances. The
sensor will manner the picture of the finger each instances and generates a template primarily
based totally on those instances’ results. After that, the biometric data of the user will be saved.
While matching, the person however enters the finger with inside the sensor via the optical sensor
20
And the gadget will then generate a template in order to be matched with the stored template
from the library. In case of 1:1 matching, the system will observe the live finger facts with the
suitable template precise with inside the module; And for 1: N matching, the system will
searching for the entire finger library for matching the finger. In every cases, the sensor will
The basic procedure of capturing fingerprint images is through IR rays. When the thumb is
placed on the surface it produces an impression on the surface that consists of ridges and
arches.IR rays are used to capture the impression on the surface. Basically IR rays fall on the
surface of the impression and are reflected by capturing the impression. Since IR rays have a
high frequency than visible light so it becomes easier to capture more details of fingerprints.
The Reason for the selection of the R307 biometric sensor is its interface protocol. Its operating
voltage is 5V. But its communication with raspberry pi is at voltage 3.3V (which is supported
with Raspberry Pi). We can directly interface it with Raspberry Pi with the UART interface. The
21
4.5.5 Oxygen sensor
Infrared Pulse oximeters are also called finger pulse oximeters. They are used as oxygen sensors
that measure the amount of oxygen in the human blood. It is done with the help of light. They are
most commonly used in low-cost fingerprint or earlobe devices to measure the oxygen saturation
in the body for home medical use. The oxygen sensor in our project will be used to measure the
oxygen level of the patient. In this project, “Max30102” is used as a Heart rate and SPO2 Sensor.
So the same sensor which is used for heart rate will also be used as an oxygen sensor.
The Graphical user interface is designed using the ‘Qt5’ software. It is very user-friendly so that
everyone can use it. In the GUI, the user will have a home page where the already present user
can sign in through biometric verification, and also a new user can sign up. In the signup option,
the user/patient has to enter the name, gender, age, and weight of the patient. After that, the
biometric data of the patient can be saved and the patient can set his medicine schedule. On the
medicine schedule page, the patient can enter his medicine name, and time in which he has to
take the medicines, and the number of pills he has to take each time. On the doctor’s menu, he
has two options. He can load new medicine and can dispense medicine. In the load medicine
menu, he can enter the medicine name and quantity. In the dispense medicine menu, he has to
select the medicine name which he wants to dispense and enter the quantity of medicine he wants
to dispense at that time. In the patient’s menu, the patient can see his medicine schedule and also
22
go for a health check. In the health check menu, he can check his heart rate and body temperature.
Moreover, It will also show the medicine taken or not by the patient at the given time. As we will
also keep the record of medicine taken or not by the patient it will also display the information in
the database. Following are the GUIs made on the Qt5 software for this project;
23
4.6.3 Medicine Allocation Menu
24
4.6.5 Biometric verification
25
4.6.6.1 Health Management System
26
4.7 Motor Driver Circuitry
We will use a motor driver who controls the speed and direction of the motor. It is cap-
able of controlling three DC motors at the same time. Here, it will control the movement
of the compartments of the smart medicine box. L293D is the driver IC that is used for
motor driving circuitry. L293 and L293D are quadruple high-current half drivers. These
devices are designed to drive a wide range of inductive loads, such as bipolar and DC
stepper motors, relays, solenoids, and other high-current and high-voltage loads. It is used
as a 2-Phase Motor Driver. The sequences used are 0101, 0110, 1001, and 1010. To meet
the specifications of the raspberry pi 3 and dc motor, we have designed a motor driving
circuitry. [16] The microcontroller gives the signal to control the motor’s speed either
high or low then that signal moves to motor driving circuitry. Motor driving circuitry
takes power from the battery to run the motor. This motor driving circuitry includes
L293D as driver IC, which can give whole current 4A which can drive or run 2 motors
at a time.
27
Figure 4.7b: Motor Driver using microcontroller
4.8 Hardware
The hardware in our project consists of developing motor driving circuitry and sensors. In
Power Source
Circuit Boards
Stepper Motors
Pill Containers
28
Figure 4.8a Final Hardware
29
Figure 4.8a Final Hardware
30
CHAPTER 5
The adverse effects of the production of pharmaceutical products on the environment are
very well-known. The extremely toxic effect continues on both animals and humans with
no clear end in sight. Over the past 20 years, international organizations and the
pharmaceutical industries have begun to observe and notice the detrimental impact of
These products enter the environment at many different stages of their life cycle. But
mostly they enter the production phase. One of the main threats of pharmaceutical prod-
ucts is the discharging of antibiotics into the environment. This will as result produce and
promote the natural development of antibiotic-resistant pathogens which are very difficult
and harder to treat. It is a global issue like other environmental issues, but it affects more
Our project will contribute to the pharmaceutical and Medical Industry. It will be more
beneficial in the hospitals where the nurses have to give medicine to the patients daily.
Nurses have to organize all the three-time medicine of each patient separately this can be
hectic and error is possible. Using a smart medical box where the nurses have to fill all
the medicines once and can save the medicine schedule of each patient separately in the
machine. Now with this machine, the patients can take their medicines themselves
because they only have to verify their identity and then the sensors can sense their hand
31
and dispense the medicine. Patients can also keep a check on their health whenever they
want to use the machine. The doctors and nurses can also keep a record of the medicines
People from urban areas are not educated. They cannot even read the medicine’s name
then it becomes very difficult for them to take the right medicines on time. Also, Elder
people forget to take their medicines, so this machine will serve the elder and uneducated
people. It is also very helpful for introverted patients as they don’t have to interact with
the nurses all the time. They can just take their medicines themselves. The basic health
monitoring system provides the facility of health checks at home without going to the
32
Conclusion
This machine is targeted for users who regularly take drugs or vitamin supplements or
nurses who take care of older patients. Our machine stores three-time medications/day for
nine hundred and ninety nine people. It also has a biometric verification of the patients so
that one patient won’t take another person’s medicine. It is capable of to measure the
heart rate, temperature, and oxygen level of the users and record all the data. This tool is
managed via use of Bluetooth and Wi-Fi module gadget, and the nurse no longer needs to
visit the private ward of COVID patients to offer the medicines. This gadget is excellent
to use inside the sanatorium due to the fact that it makes the nurse’s task simpler and
keeps on reminding the patients about the medicine in case they forget to take it timely.
33
References
3. Priyanka Verma, Rajan Mishra, "IoT based Smart Remote Health Monitoring
4. Nurmiza Binti Othman, O. P. (2016). Pill Dispenser with Alarm via smart phone
https://www.verywellhealth.com/best-pill-organizers-4158598
6. What is the Best Type of Pill Organizer? (n.d.). Retrieved from hero:
https://herohealth.com/blog/medication-management/what-is-the-best-type-of-
pill-organizer/
HACKADAY.IO:
https://hackaday.io/project/4900-pill-minder-automatic-pilldispenser/log/15989-
concept-tube
34
8. QIKUN WANG, M. Z. (2016, Dec 12). Automatic Pill Dispenser. Retrieved from
ECE5725-qw99-mz474:
https://courses.ece.cornell.edu/ece5990/ECE5725-Fall2016- Projects/qw99-
mz474/index.html
https://www.oscarchen.info/smart-automatic-pill-dispenser
https://datasheets.maximintegrated.com/en/ds/MAX30102.pdf
11. Programmable Resolution 1-Wire Digital Thermometer. (2019, July). Retrieved from
Maxim Integrated and the Maxim Integrated logo are trademarks of Maxim
35
36