You are on page 1of 19

ASSIGNMENT 2 FRONT SHEET

Qualification TEC Level 5 HND Diploma in Computing

Unit number and title Unit 43: Internet of Things

Submission date Date Received 1st submission

Re-submission Date Date Received 2nd submission

Student Name Tran Minh Quang Student ID GCH200620

Class GCH1101 Assessor name Le Ngoc Anh

Student declaration

I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that
making a false declaration is a form of malpractice.

Student’s signature

Grading grid

P5 P6 P7 M5 M6 D3 D4
 Summative Feedback:  Resubmission Feedback:

Grade: Assessor Signature: Date:


Internal Verifier’s Comments:

Signature & Date:


Table of Contents
Introduction.................................................................................................................................................................4
Task 1: Develop the IoT application.............................................................................................................................4
I. Give out for your selection an appropriate set of tools, frameworks, devices for your solution.....................4
Hardware:............................................................................................................................................................4
Framework:..........................................................................................................................................................5
Devices.................................................................................................................................................................8
II. Develop your solution, write down your sketch and upload it on your devices..............................................8
Solution................................................................................................................................................................8
Block diagram......................................................................................................................................................9
Working principle................................................................................................................................................9
III. Testing results:...........................................................................................................................................12
Advantage:.........................................................................................................................................................12
Disadvantage:....................................................................................................................................................12
Task 2: Test and evaluate the user feedback.............................................................................................................13
User feedback........................................................................................................................................................13
Evaluate.................................................................................................................................................................18
Conclusion.................................................................................................................................................................18
References.................................................................................................................................................................18

Figure 1: NodeMCU.....................................................................................................................................................4
Figure 2: Heart rate and blood oxygen sensor.............................................................................................................5
Figure 3: Blynk.............................................................................................................................................................5
Figure 4: Arduino.........................................................................................................................................................6
Figure 5: Block diagram...............................................................................................................................................9
Figure 6: Heart Rate and Blood Oxygen Measurement System.................................................................................11
Figure 7: Blynk app....................................................................................................................................................11
Figure 8: Blynk app....................................................................................................................................................12
Figure 9: Survey questions.........................................................................................................................................13
Figure 10: Survey questions.......................................................................................................................................14
Figure 11: Survey questions.......................................................................................................................................15
Figure 12: Survey results............................................................................................................................................16
Figure 13: Survey results............................................................................................................................................16
Figure 14: Survey results............................................................................................................................................17
Figure 15: Survey results............................................................................................................................................17
Introduction:
Following the COVID-19 epidemic, the majority of individuals are now more concerned about their health. In
addition, the signs of COVID-19 are becoming increasingly difficult to identify. One of the most significant hazards
of COVID-19 is low blood oxygen levels, which can result in death if not addressed quickly. In addition, the oxygen
level in the patient's blood must be monitored continually. If the patient's oxygen level falls below 94%, an
emergency is required. How can the patient continually monitor their oxygen level? People with COVID-19 require
a gadget that allows them to monitor their oxygen level everywhere, so they can alert their doctor or family in the
event of an emergency.

And in this exercise, we will demonstrate our IoT system project named the Heart Rate and Blood Oxygen
Measurement System in order to be able to achieve that reduction.

Task 1: Develop the IoT application


I. Give out for your selection an appropriate set of tools, frameworks, devices for
your solution
First of all, for this project to work, we will be using the following parts:

Hardware:
-NodeMCU:

Figure 1: NodeMCU

-Max30100 : Heart rate and blood oxygen sensor


Figure 2: Heart rate and blood oxygen sensor

Framework:
In terms of the coding environment, Blynk IoT and Arduino will be used to connect the hardware and
software.

Figure 3: Blynk
Figure 4: Arduino

And here is the code implementation we will use while we prepare for this project:

#define BLYNK_PRINT Serial

#define BLYNK_TEMPLATE_ID "TMPLtKKTEwIi"

#define BLYNK_DEVICE_NAME "Oxygen lvl Scale"

#define BLYNK_AUTH_TOKEN "JR28Etjdfg8WMZw_RCM8qhksOU-fjHNH"

#include <WiFi.h>

#include <WiFiClient.h>

#include <BlynkSimpleEsp32.h>

#include <Wire.h>

#include "MAX30100_PulseOximeter.h"

#define REPORTING_PERIOD_MS 1000


char auth[] = BLYNK_AUTH_TOKEN;

char ssid[] = "Greenwich_GUEST";

char pass[] = "greenwichvn@123";

PulseOximeter pox;

float BPM, SpO2;

uint32_t tsLastReport = 0;

void onBeatDetected(){ Serial.println("Beat Detected!");}

void setup()

Serial.begin(115200);

pinMode(19, OUTPUT);

Blynk.begin(auth, ssid, pass);

Serial.print("Initializing Pulse Oximeter..");

if (!pox.begin()){Serial.println("FAILED");for(;;);}

else{Serial.println("SUCCESS");pox.setOnBeatDetectedCallback(onBeatDetected);}

pox.setIRLedCurrent(MAX30100_LED_CURR_7_6MA);

void loop()

pox.update();

Blynk.run();

BPM = pox.getHeartRate();

SpO2 = pox.getSpO2();
if (millis() - tsLastReport > REPORTING_PERIOD_MS && SpO2 > .1)

Serial.print("Heart rate:");Serial.print(BPM);

Serial.print(" bpm / SpO2:");Serial.print(SpO2);

Serial.println(" %");

Blynk.virtualWrite(V20, BPM);

Blynk.virtualWrite(V30, SpO2);

tsLastReport = millis();

Devices:
For remote control, we'll be utilising a basic smartphone with the Blynk IoT software loaded.

II. Develop your solution, write down your sketch and upload it on your devices
Solution:
To address this issue, IoT technology is being used to develop a system for measuring heart rate and blood
oxygen levels. To maintain appropriate monitoring, the device continually detects the oxygen level of the blood.
This system design continually monitors the wearer's blood oxygen level in order to track the condition and deliver
timely notifications to carers and medical experts who need to monitor the wearer's health. As long as the battery-
powered gadget is turned on, it will continually check the blood oxygen level.

To address this issue, IoT technology is being used to develop a system for measuring heart rate and blood
oxygen levels. To maintain appropriate monitoring, the device continually detects the oxygen level of the blood.
This system design continually monitors the wearer's blood oxygen level in order to track the condition and deliver
timely notifications to carers and medical experts who need to monitor the wearer's health. As long as the battery-
powered gadget is turned on, it will continually check the blood oxygen level.
Block diagram:

Figure 5: Block diagram

Working principle:
- Pins 18 and 21 of the NodeMCU are used to read the pulse oximeter and heart rate sensor.
- The microcontroller will determine whether or not the data is legitimate.
- Send heart rate data to virtual pin 20 and oximeter data to virtual pin 30 on Blynk over WiFi.
- Data will be broadcast to all devices, including cellphones, via Blynk's platform.
Figure 6: Heart Rate and Blood Oxygen Measurement System

Figure 7: Blynk app


Figure 8: Blynk app

III. Testing results:


This gadget detects blood oxygen levels as well as heart rate. The Blynk app continually displays measured
parameters. When you finish measuring, the most recent measurement is presented. If your heart rate exceeds
120 beats per minute or your oxygen level falls below 95%, a notification will be issued to the Blynk app and
anybody with an account linked to the device.

Advantage:
- Continuously monitor device rhythms and oxygen levels and deliver rapid warnings if the measurement
information exceeds the instrument's limitations.
- All devices linked to the measuring device that have an account can get notifications and observe the
user's measurement parameters.
- The gadget is small, portable, cheap, and convenient to use.

Disadvantage:
- Measurements must be done numerous times, and the repeatability of the parameter must be
monitored to acquire reliable results.
- The item has an unstable casing, avoid dropping it or getting wet when using it.

Task 2: Test and evaluate the user feedback


To objectively evaluate the device for measuring blood oxygen concentration and heart rate, we conducted
a survey. The survey aims to collect the best information about the system, thereby serving as a basis for analysis
and building a new system to solve the system's shortcomings. Therefore, the required survey includes the
following objectives:

- Access to professional expertise and operating environment for measuring equipment for blood oxygen
concentration and heart rate.

- Learn the roles, functions, tasks and how the system works

- Indicate the limitations and inadequacies of the system that need to be changed.

User feedback:

Figure 9: Survey questions


Figure 10: Survey questions
Figure 11: Survey questions

We conducted a survey and got results from everyone:

The majority of respondents found it to be a useful device, a product that brings a lot of value to consumers.
Figure 12: Survey results

With the subject of whether the gadget is important for people, particularly the pandemic Covid-19, we
obtained the number of 86,7 percent of individuals believe it is necessary in real life. We feel that our approach is
appropriate for the circumstance based on this data.

Figure 13: Survey results

The following question shows 66.7% of individuals believing that our product is a good choice as a personal
device or in clinics. Others are sceptical that our products can produce the desired results because the pricing is
reasonable.
Figure 14: Survey results

When patients test our equipment, practically all of them rate its quality as good or very good. There is no
unpleasant sensation when using this equipment.

Figure 15: Survey results

Some people have given us comments that they would want us to improve on in the future. Almost
everyone wishes to improve the UX and UI of the gadget, such as the interface. Another possibility is that people
want to know the outcomes' average. These suggestions will help us to improve our gadget and deliver a better
experience for our consumers.
Evaluate:
Based on customer feedback, it is found that this device is essential for users in the process of patient care.
Not only can you save time and money, but you can also take care of family members as well as timely support
patients.

Besides those advantages, our products still have some shortcomings that need to be overcome. The most
important part of the system is the blood oxygen level sensor and heart rate, and the main concern is that the
blood oxygen concentration and heart rate are sometimes incorrectly measured due to the influence of physical
influences and many other factors. other factors influence. This will affect the warning process of the device, the
worst result is that the false notification system makes the patient and the patient's family as well as the
monitoring doctors worry. In addition, when measuring too much will affect the sensor, even damage. Therefore,
it is necessary to take measures to protect the sensor equipment.

The design also needs improvement. The design needs to be stronger and more rigid.

Conclusion:
This project taught me a lot of things, including how to work as part of a team, how to develop my
collaboration abilities, and, most significantly, how to learn about and get started on constructing an IoT device.
Despite some production issues, the final product was built and operated well. My team will continue to improve
our goods and IoT understanding in the future.

References
There are no sources in the current document.
Index of comments

2.1 Your group's IoT system can monitor the blood oxygen level and heart rate which can be applied for monitoring covid
19 patients.

Although the group is able to demonstrate the idea using real hardware. However, the idea is quite simple, and not innovative
since it is already available in the market. It also did not mention the control algorithm and warning condition.

The survey is only a few questions. Strength and weakness are provided., but very simple. Mostly use the rating system
to collect feedback. You should use more people and open questions to collect more data.

It also mentions the advantages and disadvantages of the feedback.

You might also like