Professional Documents
Culture Documents
PROJECT 2
ADMISSION NO : 190321121823
COURSE : OD19BEE.
Signature………………………….
Date……………………………….
Signature………………………….
Date……………………………….
i
ABSTRACT.
Temeke Regional Referral Hospital receives many patients with different diseases and other vital medical
conditions including spinal cord injured patients and paralyzed patients. This kind of patients cannot move
by themselves from one place to another, so once they lie on the hospital bed it’s difficult to measure their
weight on standing scales due to their medical condition, Since the patient weight is very important
parameter to consider in dose prescription. Therefore, over dosage and under dosage mostly occurs to spinal
cord injured patients and paralyzed patients. The Digital weight measuring system can measure the weight
of paralyzed and spinal cord injured patients without disturbing them and records it.
In this Digital weight measuring system the strain gauge load cell is used to measure the weight of the
patient and It converts the pressure exerted on it into appropriate voltage levels which are then amplified
by Hx711 Amplifier Module. The amplified voltage level is filtered and converted into digital data in the
microcontroller (NodeMCU) which is then displayed on a 20*4 LCD (Liquid Crystal display) and allows
the recording of patient’s weight. The patients weight obtained will be used by Doctors in dose prescription.
The Digital weight measuring system can measure the weight of paralyzed and spinal cord injured patients
without disturbing them and records it and hence assist the Doctors in dose prescription. The prime goal of
this project is to provide high precision patient weight that will be used by Doctors in dose prescription.
Therefore, right amount of system can be given to the paralyzed and spinal cord injured patients, Low cost
weight measuring system with user friendly functionalities.
ii
DEDICATION.
This project is dedicated to experts of Biomedical technology and all students in Electrical Engineering
department to emphasis them to do their best in designing Engineering projects for final year.
iii
ACKNOWLEDGEMENT.
Before all I thank God and appreciate his Grace, I would like to acknowledge my supervisor Dr.
CONSALVA MSIGWA for his advice and direction towards achievement of this project report. I would
like also to acknowledge all lectures and colleagues of Electrical department of DAR ES SALAAM
ISTITUTE OF TECHNOLOGY (DIT).
Lastly many thanks to my Lovely Family and my friends for their encouragement to me to reach where I
have reached.
iv
TABLE OF CONTENTS.
DECLARATION. ............................................................................................................................................................ i
ABSTRACT. ................................................................................................................................................................. ii
DEDICATION.............................................................................................................................................................. iii
ACKNOWLEDGEMENT............................................................................................................................................... iv
LIST OF SYMBOLS. .................................................................................................................................................... vii
LIST OF TABLES........................................................................................................................................................ viii
LIST OF FIGURES........................................................................................................................................................ ix
ABBREVIATIONS ......................................................................................................................................................... x
INTRODUCTION.......................................................................................................................................................... 1
1.0.0. GENERAL INTRODUCTION ................................................................................................................................ 1
1.1.0. PROBLEM STATEMENT..................................................................................................................................... 1
1.2.0 OBJECTIVES ....................................................................................................................................................... 2
1.2.1 MAIN OBJECTIVES ............................................................................................................................................. 2
1.2.2 SPECIFIC OBJECTIVES ........................................................................................................................................ 2
1.3.0 SIGNIFICANCE OF THE PROJECT. ....................................................................................................................... 2
1.4.0 METHODOLOGY ................................................................................................................................................ 2
1.4.1 Literature review........................................................................................................................................... 3
1.4.2 Data collection .............................................................................................................................................. 3
1.4.3 Data Analysis ................................................................................................................................................. 3
1.4.4 Circuit designing............................................................................................................................................ 3
1.4.5 Building prototype ........................................................................................................................................ 3
1.4.6 Testing prototype.......................................................................................................................................... 3
1.4.7 Report writing ............................................................................................................................................... 3
2.0 INTRODUCTION TO LITERATURE REVIEW ............................................................................................................ 4
2.1.0 EXISTING SYSTEM. ............................................................................................................................................. 5
2.1.1 Principle of operation ................................................................................................................................... 5
2.1.2 BLOCK DIAGRAM OF EXISTING SYSTEM ........................................................................................................ 5
2.1.3 ADVANTAGE OF EXISTING SYSTEM ............................................................................................................... 5
2.1.4 DISADVANTAGES OF EXISTING SYSTEM ........................................................................................................ 5
v
2.2.0 PROPOSED SYSTEM ........................................................................................................................................... 5
2.2.1 BLOCK DIAGRAM PROPOSED OF SYSTEM ..................................................................................................... 6
2.2.2 Principle of operation ................................................................................................................................... 6
2.2.3 ADVANTAGE PROPOSED OF SYSTEM ............................................................................................................ 6
2.2.4 DISADVANTAGES PROPOSED OF SYSTEM ..................................................................................................... 6
3.0.0. INTRODUCTION TO DATA COLLECTION............................................................................................................ 7
4.0.0. ANALYSIS INTRODUCTION................................................................................................................................ 9
4.1.0. Control unit. ..................................................................................................................................................... 9
4.2.0. Display unit. ................................................................................................................................................... 10
4.2. Different display units and their qualities .................................................................................................... 11
4.2.2. Qualitative analysis of display unit. ............................................................................................................ 11
4.3. Specifications of a 20x4 LCD display. ............................................................................................................ 11
4.3.0. Storage Unit. .................................................................................................................................................. 12
4.4.0. Push Button. .................................................................................................................................................. 12
4.4.1. Technical specifications of normally open push button switch. ................................................................. 13
4.5.0. Indicating Unit (LED). ..................................................................................................................................... 13
4.6.0. Sensing Unit (Load Cell). ................................................................................................................................ 14
4.7.0. HX711 Module. .............................................................................................................................................. 15
4.8.0. Mechanical Weight. ....................................................................................................................................... 16
4.9.0. Power Supply (Dc Source). ............................................................................................................................. 16
5.0.0. EXPERIMENTAL RESULTS................................................................................................................................ 18
5.1.0. CIRCUIT SIMULATION. .................................................................................................................................... 18
5.2.0. PROTOTYRE TESTING. .................................................................................................................................... 19
6.0.0. CONCLUSION. ................................................................................................................................................ 20
6.1.0. RECOMMENDATION. ..................................................................................................................................... 20
6.2.0. SUGGESTION. ................................................................................................................................................. 20
REFERENCE LIST ....................................................................................................................................................... 22
APPENDICES. ............................................................................................................................................................ 23
1.SYSTEM CODE. ...................................................................................................................................................... 23
vi
LIST OF SYMBOLS.
NAME OF DEVICE. SYMBOL.
Resistor.
Capacitor.
Ground.
PNP Transistor.
NODEMCU.
vii
LIST OF TABLES.
Table 3.1: Table of primary data collected...................................................................................7
viii
LIST OF FIGURES.
Figure 2.1: Digital weight scale......................................................................................................4
ix
ABBREVIATIONS
V represents - Voltage.
MB - Megabytes.
KB - Kilobytes.
ESP8266 - Espressif.
x
CHAPTER ONE
INTRODUCTION
Weight is an important factor in correct dosing - fluids prescriptions and the risk of fluid overload in
underweight patients and failure to reach therapeutic levels with antibiotic prescribing in heavier patients
are two areas which may reveal interesting results if studied with respect to patient weight and dosing.
In this work, I aimed to study design and development of a patient management system. The system will
enable easy accessibility as the bed nor the patient have to move between the rooms. In order to provide
these facilities, patient weight measurement system is designed by placing weight scale system (load cells)
under the bed. Then, this measured patient weight can be displayed on a digital display (LCD), therefore
the displayed weight can be used properly by doctors to provide correct dose prescriptions to this kind of
patients, hence overcoming organ distress, death or under recovery due to over dosage and under dosage.
Therefore, there is need to design a digital weight measuring system that can sweets the medical conditions
of Paralyzed and Spinal cord injured patients and provide the correct patient weight while laying on their
bed, hence correct dose prescription by doctors.
1
1.2.0 OBJECTIVES
1.2.1 MAIN OBJECTIVES
The main objective is to design a digital weight measuring system that can measure the weight of a
paralyzed and spinal cord injured patients without causing any disturbance to their conditions
• The system will be able to record and store the measured weights of several patients and can be
retrieved when required.
• The designed system will be simple to use and environmental friendly to both patients and users.
1.4.0 METHODOLOGY
These are specific procedures or techniques which will guide to the accomplishment of the project. The
following are procedures arranged in manner that will lead into successful completion of this project; -
1. Literature review
2. Data collection
3. Data analysis
4. Circuit designing
5. Building prototype
6. Testing prototype
7. Report writing
2
1.4.1 Literature review
This part involves studying of different academic/scholarly articles, books and other ready
published sources with the aim of exploring more about the existing techniques on weighting scales,
their advantages and disadvantages.
3
CHAPTER TWO
LITERATURE REVIEW
Digital weight measuring system is digital system which is designed for determining the weight or mass of
an object. The weight of an object is commonly measured using metric units in grams (g) and kilogram
(kg) increments, however imperial measurements including pounds (lbs) and ounces (oz) are often used.
The oldest evidence for the existence of measuring systems (weight scales) dates to c. 2400 – 1800 B, C,
E. in Asia. By 1940s various electronic devices were being added to designs to make readings more
accurate.
A digital weight scale is one of the most precise digital instruments. It uses force sensors to measure the
load offered by an object. Weigh scales are used in a multitude of applications ranging from point of sales
terminals to industrial measurement equipment. Weight is an important factor in correct dosing - fluids
prescriptions and the risk of fluid overload in underweight patients and failure to reach therapeutic levels
with antibiotic prescribing in heavier patients are two areas which may reveal interesting results if studied
with respect to patient weight and dosing
4
2.1.0 EXISTING SYSTEM.
The existing system at Temeke Regional Referral Hospital is not favorable to measure the weight of
Paralyzed and Spinal cord injured patients, since the system require the patient to stand on its measuring
plate to be measured, that cannot be tolerated by spinal cord injured and paralyzed patients due to their
serious medical conditions.
MASS
CALIBRATION
POWER SUPPLY DISPLAY
(LCD)
6
CHAPTER THREE
DATA COLLECTION
Mostly data collected were obtained by using Existing records method, at Temeke Regional Referral
Hospital
2021) WEIGHT
1. SPINAL 15 7 2 3 3
CORD
INJURED
PATIENTS
2. PARALYZED 32 7 10 13 2
PATIENTS
7
3.2. Data collection table.
8
CHAPTER FOUR
9
4.1. NodeMCU ESP8266 Specifications & Features.
Specifications Features
Operating voltage 3.3V
UARTs 1
10
4.2. Different display units and their qualities
Parameter 16x2 Display 16x4 Display 20x4 Display
Number of lines 2 4 4
Thus,
According to parameters, 20x4 LCD display will be used so as to display all needed information. 20×4
display meets the requirements in terms of its characters per line, number of lines, operating voltage etc.
Number of lines 4
Operating voltage(V) 5
Brightness Moderate
Dimension(mm) 120x86
11
Figure 4.3. A 20X4 LCD display.
12
In this proposed system, normally open push button switch will be used so as to avoid the system to start
operating without being commanded by user. User has to decide whether he/she is in need to measure
parameter (weight) of the patient.
Therefore, normally open push button switch will be used in the proposed system as per its requirements.
Most common LEDs require a forward operating voltage of between approximately 1.2 to 5V with forward
current rating of about 10 to 30mA. In this proposed system green LED will be used as the indicator to
show that the system is working.
13
4.6.0. Sensing Unit (Load Cell).
There are different types of load cell such as compression weigh module, tension weigh module, strain
gauge load cell, single point load cell.
Compression weigh and tension weigh module enable quick and safe conversion of tanks, hoppers and
conveyors into a scale. Built-in features ensure that safety, performance and precision are maintained.
Strain gauge load cells are used in multiples weighing system, tank scales and conveyors scale.
Single point load cells are used individually in weighing systems, bench scales and filling and packaging
machine.
As per proposed system, single point load cell will be used in this project because one bed in hospital is
used for one patient and not more than one.
A simple formula is usually used to convert the measured mv/V output from the load cell to the measured
force:
14
It’s important to decide what unit your measured force is – grams, kilograms, pounds, etc.
This load cell has a rated output of 1.0±0.15mv/v which corresponds to the sensor’s capacity of 20kg. To
find A we use
A = 20 / 1.0
A = 20
Since the Offset is quite variable between individual load cells, it’s necessary to calculate the offset for
each sensor.
Measure the output of the load cell with no force on it and note the mv/V output measured by the
PhidgetBridge.
15
In the designed system Hx711 Module amplifies the low voltage output of the load cell and seeds it to the
NodeMCU, so that the NodeMCU eventually calculate data obtained from load cell.
So mathematically
𝑣 𝑑𝑟𝑜𝑝 = 1.4𝑣
𝑣 𝑟𝑒𝑔 = 𝑣 𝑟𝑒𝑐 ≅ 7𝑣
𝑣𝑠𝑒𝑐 = 7𝑣 + 1.4𝑣
𝑣𝑠𝑒𝑐 = 8.4𝑣
16
So,𝑣𝑠𝑒𝑐 × 𝑣𝑠𝑒𝑐
𝑣𝑠𝑒𝑐(𝑟𝑚𝑠) = √2 × 8.4𝑣
𝑣𝑠𝑒𝑐(𝑟𝑚𝑠) = 6𝑣
Where
𝑣𝑝 220𝑣
𝑡𝑢𝑟𝑛𝑠 𝑟𝑎𝑡𝑖𝑜 = =
𝑣𝑠 6𝑣
From these points, for the 5V DC power supply design, transformer of current rating 1A and a secondary
voltage of 6V (RMS) selected.
17
5.0.0. EXPERIMENTAL RESULTS.
5.1.0. CIRCUIT SIMULATION.
18
Figure 5.1: System Prototype.
19
CHAPTER FIVE
6.0.0. CONCLUSION.
This digital weight measuring system represents a sustainable and traceable measurement patients’ weight.
This system provides ease of weighing of paralyzed and spinal cord injured patients. Therefore, the right
dose will be provided to the patients with respect to their measured weight.
6.1.0. RECOMMENDATION.
This Digital weight measuring system has to be used to measure the weight of paralyzed and spinal cord
injured patients at Temeke Regional Referral Hospital, since it is quite precise, easily and simple to use and
environmental and user friendly.
6.2.0. SUGGESTION.
The load cell (sensing unit) are quite sensitive to environmental conditions and they may easily be affected
by different factors such as temperature, dust and humidity. Therefore, the load cells should be placed in
containers where the correct measurements can be taken that will reduce the influence of environmental
factors.
20
5.1. The designed system Cost.
1 NodeMCU 1 25000/=
7 Veroboard. 1 4000/=
21
REFERENCE LIST
• Fagbemi, S. Momoh, M. &Saidu, I. 2014/01/01, Digitalization of an Analogue
Weighting Scale Using Microcontroller, IOSR Journal of Environmental Science,
Toxicology and Food Technology.
• Sander, L. A Short History of weighting. Birmingh, England: W. &T. Avery, Ltd.
(1947, revised 1960)
• Petruso, Karl M. ̋ Early weights and weighting in Egypt and the Indus valley˝, M
Bulletin (Boston Museum of Fine Arts.), Vol. 79, (1981), pp. 44-51
22
APPENDICES.
1.SYSTEM CODE.
#include <HX711.h>
#include <LiquidCrystal.h>
const int rs=D0, en=D3, d4=D5, d5=D6, d6=D7,
d7=D8; //most commonly d7 = 2
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
#define DOUT D2
#define CLK D1
HX711 scale;
void loop() {
scale.set_scale(calibration_factor); //Adjust to this calibration
factor
Serial.print("Reading: ");
Serial.print(scale.get_units(), 3);
Serial.print(" kg"); //Change this to kg and re-adjust
the calibration factor if you follow SI units like a sane
person Serial.println();
Serial.print("Zero factor: ");
Serial.print(zero_factor);
showResult("CLEMENT", String(scale.get_units(),
3), 22);
23
}
24